{!! html()->form('PUT', route('asset-hierarchy-sub-unit.update', base64_encode($subUnit->id)))->id('assetHierarchySubUnitForm')->open() !!}
{!! html()->label('Unit *', 'unit_id')->toHtml() !!} {!! html()->select('unit_id', $units->toArray(), $selectedUnitId)->id('unit_id')->class('form-control select2') !!}
{!! html()->label('Sub Unit Name *', 'sub_unit_name')->toHtml() !!} {!! html()->text('sub_unit_name')->name('sub_unit_name')->class('form-control')->value($subUnit->sub_unit_name)->placeholder('Enter Sub Unit Name') !!}
{!! html()->label('Created By')->toHtml() !!} {!! html()->text('created_by')->class('form-control')->value($subUnit->creator->full_name ?? '-')->attribute('readonly', true) !!}
{!! html()->label('Created At')->toHtml() !!} {!! html()->text('created_at')->class('form-control')->value($subUnit->created_at->format(config('constants.date_format')))->attribute('readonly', true) !!}
{!! html()->label('Last Modified By')->toHtml() !!} {!! html()->text('modified_by')->class('form-control')->value($subUnit->modifier->full_name ?? '-')->attribute('readonly', true) !!}
{!! html()->label('Last Modified At')->toHtml() !!} {!! html()->text('modified_at')->class('form-control')->value($subUnit->modified_at->format(config('constants.date_format')))->attribute('readonly', true) !!}
{!! html()->form()->close() !!}