@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
{{ __('Classification') }}
{{ __('Basic information') }}
@if(! $isEdit)
{{ __('Bulk register with unique IDs') }}
{{ __('Paste one serial / asset tag per line — e.g. 20 Ceiling Fans = 20 lines. Each line creates one trackable asset record.') }}
@endif
{{ __('Pcs, Ream, Kg, Box, etc.') }}
{{ __('Location & ownership') }}
{{ __('Digital / license details') }}
{{ __('Fleet / vehicle details') }}
{{ __('Purchase & warranty') }}