Page 57 - Laravel5_v1
P. 57
<div class="panel-body">
{!! Form::open(array('url' => 'books','files' => true)) !!}
<div class="col-xs-8">
<div class="form-group">
ื
<?= Form::label('title', 'ชอหนังสือ'); ?>
<?= Form::text('title', null, ['class' => 'form-
ื
control', 'placeholder' => 'ชอหนังสือ']); ?>
</div>
</div>
<div class="col-xs-4">
<div class="form-group">
{!! Form::label('price', 'ราคา'); !!}
{!! Form::text('price',null,['class' => 'form-
control','placeholder' => 'เช่น 100, 100.25']); !!}
</div>
</div>
<div class="col-xs-4">
<div class="form-group">
{!! Form::label('typebooks_id', 'ประเภทหนังสือ'); !!}
<?= Form::select('typebooks_id',
App\TypeBooks::lists('name', 'id'), null, ['class' => 'form-control',
ุ
'placeholder' => 'กรณาเลือกประเภทหนังสือ...']); ?>
</div>
</div>
<div class="col-xs-4">
<div class="form-group">
ู
{!! Form::label('image', 'รปภาพ'); !!}
<?= Form::file('image', null, ['class' => 'form-
control']) ?>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<?= Form::submit('บันทึก', ['class' => 'btn btn-
primary']); ?>
</div>
</div>
{!! Form::close() !!}
</div>