Beispiel #1
0
<?php

$regions = \App\Region::lists('name', 'id')->sortBy('name');
$institutions = \App\Institution::lists('name', 'id')->sortBy('name');
?>

<div class="col-md-8 col-md-offset-2">

@if($submitButtonText=='Update')

    <div class="form-group">
        {!! Form::label('name', 'School Name : ') !!}
        {!! Form::text('name', null, ['placeholder' => 'School Name',
                                      'class' => 'form-control',
                                      'value' => '{{ old("name") }}']) !!}
    </div>

    <div class="form-group">
        {!! Form::label('year_establish', 'Year Establish : ') !!}
        {!! Form::input('date', 'year_establish', null, ['placeholder' => '', 'class' => 'form-control']) !!}
    </div>

    <div class="form-group">
        {!! Form::label('status', 'Status : ') !!}
        {!! Form::select('status', array('Cluster Head' => 'Cluster Head',
                                        'Polytechnic College' => 'Polytechnic College',
                                        'College' => 'College',
                                        'Institute' => 'Institute'
                                      ), $status,
                                      ['class' => 'form-control']) !!}
    </div>