@props([ 'item' => null, 'prefix' => 'new', 'categories' => [], 'branchs' => [], 'departments' => [], 'locations' => collect(), 'parentAssets' => collect(), 'assetTypes' => \App\Support\Asset\AssetType::options(), ]) @php $isEdit = $item !== null; $selectedType = old('asset_type', $item?->asset_type ?? \App\Support\Asset\AssetType::FIXED); $parentCateId = $isEdit ? ($item->asset_category?->parentCategory?->id ?? $item->asset_category_id) : null; $subCateId = $isEdit && $item->asset_category?->parentCategory ? $item->asset_category_id : null; @endphp
@if(! $isEdit)
{{ __('Paste one serial / asset tag per line — e.g. 20 Ceiling Fans = 20 lines. Each line creates one trackable asset record.') }}
@endif
{{ __('For trackable assets, creates separate unit records.') }}
{{ __('Pcs, Ream, Kg, Box, etc.') }}
{{ __('Revoke on employee offboard') }}
{{ __('Allow assignment to employee (usually off for AC, CCTV, router)') }}