{!! Form::label('request_number', 'Request Number:') !!} {!! Form::text('request_number', null, [ 'class' => 'form-control', 'readonly' => true ]) !!} Request number will be generated automatically
{!! Form::label('date', 'Date:') !!}
{!! Form::text('date', isset($po) ? $po->date : \Carbon\Carbon::now()->toDateString(), ['class' => ($errors->has('date')) ? 'form-control is-invalid' : 'form-control', 'id' => 'date']) !!} @if ($errors->has('date')) {{ $errors->first('date') }} @endif
{!! Form::label('request_type', 'Request Type:') !!} {!! Form::select('request_type', $requestTypes, null, ['class' => ($errors->has('request_type')) ? 'form-control is-invalid' : 'form-control', 'id' => 'request_type']) !!} @if ($errors->has('request_type')) {{ $errors->first('request_type') }} @endif
{!! Form::label('other_info', 'Other Information:') !!} {!! Form::textarea('other_info', null, ['class' => ($errors->has('other_info')) ? 'form-control is-invalid' : 'form-control', 'id' => 'other_info', 'rows' => 3, 'placeholder' => 'Enter any additional information']) !!} @if ($errors->has('other_info')) {{ $errors->first('other_info') }} @endif
{!! Form::label('files', 'Attach Files:') !!}
{!! Form::file('files[]', ['class' => 'custom-file-input', 'id' => 'files', 'multiple' => true, 'accept' => '.pdf,.doc,.docx,.xls,.xlsx,.jpg,.jpeg,.png,.gif']) !!} {!! Form::label('files', 'Choose files', ['class' => 'custom-file-label']) !!}
You can upload multiple files (PDF, Word, Excel, Images)
Items (Optional)
NO MATERIAL NAME QUANTITY Action
You can add items now or leave it empty - items can be added or modified in the next step
{!! Form::submit(__('crud.save'), ['class' => 'btn btn-danger btn-flat btn-lg']) !!} @lang('crud.cancel')
@section('css') @parent @endsection @section('scripts') @parent @endsection