@extends('layouts.page') @section('title') Relief Indents New Relief Indent @endsection @section('navs') @endsection @section('content') @include ('common.flash')
{!! Form::open(['url' => route('relief_indent.save')]) !!} {!! Form::hidden('request_id', $relief_request->id) !!} @csrf {!! EasyForm::setErrors($errors) !!} {!! EasyForm::setColSizes(2, 10) !!} @if($relief_request) {!! EasyForm::select('zone', $relief_indent->label('zone'), old('zone', $zone), AppHelper::options('zones'), ['readOnly' => 'true'])!!} {!! EasyForm::select('entity', $relief_indent->label('entity'), old('entity', $entity), AppHelper::options('entities'), ['readOnly' => 'true'])!!} {!! EasyForm::select('batch', $relief_indent->label('batch'), old('batch', $batch), AppHelper::options('relief_indent_active_batches'), ['readOnly' => 'true'])!!} {!! EasyForm::select('special_type', $relief_indent->label('special_type'), old('special_type', 'no'), AppHelper::options('relief_special_types'), ['readOnly' => 'true'])!!} @else {!! EasyForm::select('zone', $relief_indent->label('zone'), old('zone', ''), [$zone => AppHelper::dropdown($zone,'zones')])!!} {!! EasyForm::dependent('entity', $relief_indent->label('entity'), old('entity', ''), AppHelper::options('relief_zones'), 'zone')!!} {!! EasyForm::select('special_type', $relief_indent->label('special_type'), old('special_type', ''), AppHelper::options('relief_special_types'))!!} {!! EasyForm::select('batch', $relief_indent->label('batch'), old('batch', ''), AppHelper::options('relief_indent_active_batches'))!!} @endif {!! EasyForm::submit('Create') !!} {!! Form::close() !!}
@endsection