{!! html()->form('PUT', route('asset-hierarchy-unit.update', base64_encode($unit->id)))->id('assetHierarchyUnitForm')->open() !!}
{!! html()->label('Business Site *', 'business_site_id')->toHtml() !!} {!! html()->select('business_site_id', ['' => 'Select Business Site'] + $businessSites->toArray(), $selectedBusinessSiteId)->id('business_site_id')->class('form-control')->required() !!}
{!! html()->label('Unit Name *', 'unit_name')->toHtml() !!} {!! html()->text('unit_name')->name('unit_name')->class('form-control')->value($unit->unit_name)->placeholder('Enter Unit Name')->required() !!}
{!! html()->label('Created By')->toHtml() !!} {!! html()->text('created_by')->class('form-control')->value($unit->creator->full_name ?? '-')->attribute('readonly', true) !!}
{!! html()->label('Created At')->toHtml() !!} {!! html()->text('created_at')->class('form-control')->value($unit->created_at->format(config('constants.date_format')))->attribute('readonly', true) !!}
{!! html()->label('Last Modified By')->toHtml() !!} {!! html()->text('modified_by')->class('form-control')->value($unit->modifier->full_name ?? '-')->attribute('readonly', true) !!}
{!! html()->label('Last Modified At')->toHtml() !!} {!! html()->text('modified_at')->class('form-control')->value($unit->modified_at->format(config('constants.date_format')))->attribute('readonly', true) !!}
{!! html()->form()->close() !!}