{!! html()->form('PUT', route('production-unit.update', base64_encode($unit->id)))->id('productionUnitForm')->open() !!}
{!! html()->label('Site Name *', 'master_site_id')->toHtml() !!} {!! html()->select('master_site_id', ['' => 'Select Site'] + $masterSites)->class('form-control')->value($unit->siteRelation?->master_site_id ?? '')->id('master_site_id') !!}
{{-- Production Unit Name --}}
{!! html()->label('Production Unit Name *', 'production_unit_name')->toHtml() !!} {!! html()->text('production_unit_name')->class('form-control')->value(old('production_unit_name', $unit->production_unit_name))->placeholder('Enter Production Unit Name') !!}
{{-- Created By --}}
{!! html()->label('Created By')->toHtml() !!} {!! html()->text('created_by')->class('form-control')->attribute('readonly', true)->value($unit->creator->full_name ?? 'N/A') !!}
{{-- Created At --}}
{!! html()->label('Created At')->toHtml() !!} {!! html()->text('created_at')->class('form-control')->attribute('readonly', true)->value(\Carbon\Carbon::parse($unit->created_at)->format(config('constants.date_format'))) !!}
{{-- Last Modified By --}}
{!! html()->label('Last Modified By')->toHtml() !!} {!! html()->text('modified_by')->class('form-control')->attribute('readonly', true)->value($unit->modifier->full_name ?? 'N/A') !!}
{{-- Last Modified At --}}
{!! html()->label('Last Modified At')->toHtml() !!} {!! html()->text('last_modified_at')->class('form-control')->attribute('readonly', true)->value(\Carbon\Carbon::parse($unit->updated_at)->format(config('constants.date_format'))) !!}
{!! html()->form()->close() !!}