@php $types = ['New' => 'New', 'Renewal' => 'Renewal']; $payTypes = ['Cash' => 'Cash', 'Online' => 'Online']; @endphp @extends('admin.layouts.layouts') @section('title', 'Edit | License Document') @section('content')
{!! Form::model($documentData, [ 'route' => ['license-document.update', $documentData->id], 'method' => 'PUT', 'class' => 'license-document-edit', 'id' => 'license-document-edit', 'enctype' => 'multipart/form-data', ]) !!}
{!! Form::label('location_id', 'Location', ['class' => 'form-label']) !!} * {!! Form::select('location_id', $locations, old('location_id', $documentData->location_id), [ 'class' => 'form-control', 'placeholder' => 'Select Location', 'id' => 'location_id', 'data-parsley-required' => true, 'data-parsley-required-message' => 'The location field is required.', 'data-parsley-errors-container' => '#location_id_error', ]) !!}
{!! Form::label('name', 'Issue Authority', ['class' => 'form-label']) !!} * {!! Form::text('name', old('name', $documentData->name), [ 'class' => 'form-control', 'placeholder' => 'Enter Issue Authority', 'id' => 'name', 'data-parsley-required' => true, 'data-parsley-required-message' => 'The issue authority field is required.', 'data-parsley-errors-container' => '#name_error', ]) !!}
{!! Form::label('type', 'Type', ['class' => 'form-label']) !!} * {!! Form::select('type', $types, old('type', $documentData->type), [ 'class' => 'form-control', 'placeholder' => 'Select Type', 'id' => 'type', 'data-parsley-required' => true, 'data-parsley-required-message' => 'The type field is required.', 'data-parsley-errors-container' => '#typeError', ]) !!}
{!! Form::label('license_name', 'License Name', ['class' => 'form-label']) !!} * {!! Form::text('license_name', old('license_name', $documentData->license_name), [ 'class' => 'form-control', 'placeholder' => 'Enter License Name', 'id' => 'license_name', 'data-parsley-required' => true, 'data-parsley-required-message' => 'The license name field is required.', 'data-parsley-errors-container' => '#license_name_error', ]) !!}
{!! Form::label('license_type', 'License Type', ['class' => 'form-label']) !!} * {!! Form::select('license_type', $licenseTypes, old('license_type', $documentData->license_type_id), [ 'class' => 'form-control', 'placeholder' => 'Select License Type', 'id' => 'license_type', 'data-parsley-required' => true, 'data-parsley-required-message' => 'The license type field is required.', 'data-parsley-errors-container' => '#license_type_error', ]) !!}
{!! Form::close() !!}
@endsection @section('page-js') @endsection