
<?php
    /** @var \App\Models\Asset $asset */
    // Empty string, not null, on the edit screen: an already-assigned tag
    // never needs a preview, and asset-tag-preview.js treats a blank
    // data-asset-tag-input as "nothing to fetch" rather than firing a
    // request against an empty URL.
    $tagPreviewUrl = $editing ? '' : route('assets.tag-preview');
    $specRows = $asset->specifications ?: [];

    // Always at least 3 rows so the fieldset never looks broken with nothing
    // to type into, whether creating fresh or editing an asset with no
    // specifications recorded yet.
    while (count($specRows) < 3) {
        $specRows[] = ['', ''];
    }

    $specRows = collect($specRows)->map(function ($value, $key) {
        return is_int($key) ? ['', ''] : [$key, $value];
    })->values()->all();
?>

<?php if (isset($component)) { $__componentOriginalc2b90d2de2606783471c065fc1520057 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc2b90d2de2606783471c065fc1520057 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.fieldset','data' => ['legend' => 'Identity']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.fieldset'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['legend' => 'Identity']); ?>
    <div class="row g-3">
        <div class="col-md-4">
            <?php if (isset($component)) { $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.input','data' => ['name' => 'asset_tag','label' => 'Asset Tag','value' => $asset->asset_tag,'autocomplete' => 'off','style' => 'text-transform: uppercase','dataAssetTagInput' => ''.e($tagPreviewUrl).'','help' => $editing ? 'The primary identifier for this asset. Must stay unique.' : 'Auto-generated — edit if you need a specific tag instead.']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'asset_tag','label' => 'Asset Tag','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($asset->asset_tag),'autocomplete' => 'off','style' => 'text-transform: uppercase','data-asset-tag-input' => ''.e($tagPreviewUrl).'','help' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($editing ? 'The primary identifier for this asset. Must stay unique.' : 'Auto-generated — edit if you need a specific tag instead.')]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $attributes = $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $component = $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
        </div>

        <div class="col-md-4">
            <?php if (isset($component)) { $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.input','data' => ['name' => 'name','label' => 'Asset Name','value' => $asset->name,'placeholder' => 'Dell Latitude 5440','autocomplete' => 'off','required' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'name','label' => 'Asset Name','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($asset->name),'placeholder' => 'Dell Latitude 5440','autocomplete' => 'off','required' => true]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $attributes = $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $component = $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
        </div>

        <div class="col-md-4">
            <?php if (isset($component)) { $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.input','data' => ['name' => 'serial_number','label' => 'Serial Number','value' => $asset->serial_number,'autocomplete' => 'off','help' => 'Optional. Must be unique.']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'serial_number','label' => 'Serial Number','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($asset->serial_number),'autocomplete' => 'off','help' => 'Optional. Must be unique.']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $attributes = $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $component = $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
        </div>

        <div class="col-md-4">
            <?php if (isset($component)) { $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.input','data' => ['name' => 'mac_address','label' => 'MAC Address','value' => $asset->mac_address,'autocomplete' => 'off','help' => 'Optional. Must be unique.']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'mac_address','label' => 'MAC Address','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($asset->mac_address),'autocomplete' => 'off','help' => 'Optional. Must be unique.']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $attributes = $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $component = $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
        </div>
    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc2b90d2de2606783471c065fc1520057)): ?>
<?php $attributes = $__attributesOriginalc2b90d2de2606783471c065fc1520057; ?>
<?php unset($__attributesOriginalc2b90d2de2606783471c065fc1520057); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc2b90d2de2606783471c065fc1520057)): ?>
<?php $component = $__componentOriginalc2b90d2de2606783471c065fc1520057; ?>
<?php unset($__componentOriginalc2b90d2de2606783471c065fc1520057); ?>
<?php endif; ?>

<?php if (! ($editing)): ?>
    <?php if (isset($component)) { $__componentOriginalc2b90d2de2606783471c065fc1520057 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc2b90d2de2606783471c065fc1520057 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.fieldset','data' => ['legend' => 'Initial Status']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.fieldset'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['legend' => 'Initial Status']); ?>
        <div class="row g-3">
            <div class="col-md-6">
                <?php if (isset($component)) { $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.select','data' => ['name' => 'status','label' => 'Status','selected' => $asset->status?->value,'options' => collect(\App\Enums\AssetStatus::assignableOnCreate())->mapWithKeys(fn ($status) => [$status->value => $status->label()])->all(),'help' => 'An asset starts in stock, or already under repair or damaged if that is the truth on arrival.','required' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.select'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'status','label' => 'Status','selected' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($asset->status?->value),'options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(collect(\App\Enums\AssetStatus::assignableOnCreate())->mapWithKeys(fn ($status) => [$status->value => $status->label()])->all()),'help' => 'An asset starts in stock, or already under repair or damaged if that is the truth on arrival.','required' => true]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?>
<?php $attributes = $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?>
<?php unset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?>
<?php $component = $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?>
<?php unset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?>
<?php endif; ?>
            </div>

            <div class="col-md-6">
                <?php if (isset($component)) { $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.select','data' => ['name' => 'condition','label' => 'Condition','selected' => $asset->condition?->value,'options' => \App\Enums\AssetCondition::options(),'required' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.select'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'condition','label' => 'Condition','selected' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($asset->condition?->value),'options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(\App\Enums\AssetCondition::options()),'required' => true]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?>
<?php $attributes = $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?>
<?php unset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?>
<?php $component = $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?>
<?php unset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?>
<?php endif; ?>
            </div>
        </div>
     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc2b90d2de2606783471c065fc1520057)): ?>
<?php $attributes = $__attributesOriginalc2b90d2de2606783471c065fc1520057; ?>
<?php unset($__attributesOriginalc2b90d2de2606783471c065fc1520057); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc2b90d2de2606783471c065fc1520057)): ?>
<?php $component = $__componentOriginalc2b90d2de2606783471c065fc1520057; ?>
<?php unset($__componentOriginalc2b90d2de2606783471c065fc1520057); ?>
<?php endif; ?>
<?php else: ?>
    
    <?php if (isset($component)) { $__componentOriginalc2b90d2de2606783471c065fc1520057 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc2b90d2de2606783471c065fc1520057 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.fieldset','data' => ['legend' => 'Condition']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.fieldset'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['legend' => 'Condition']); ?>
        <?php if (isset($component)) { $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.select','data' => ['name' => 'condition','label' => 'Condition','selected' => $asset->condition?->value,'options' => \App\Enums\AssetCondition::options(),'required' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.select'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'condition','label' => 'Condition','selected' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($asset->condition?->value),'options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(\App\Enums\AssetCondition::options()),'required' => true]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?>
<?php $attributes = $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?>
<?php unset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?>
<?php $component = $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?>
<?php unset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?>
<?php endif; ?>
     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc2b90d2de2606783471c065fc1520057)): ?>
<?php $attributes = $__attributesOriginalc2b90d2de2606783471c065fc1520057; ?>
<?php unset($__attributesOriginalc2b90d2de2606783471c065fc1520057); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc2b90d2de2606783471c065fc1520057)): ?>
<?php $component = $__componentOriginalc2b90d2de2606783471c065fc1520057; ?>
<?php unset($__componentOriginalc2b90d2de2606783471c065fc1520057); ?>
<?php endif; ?>
<?php endif; ?>

<?php if (isset($component)) { $__componentOriginalc2b90d2de2606783471c065fc1520057 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc2b90d2de2606783471c065fc1520057 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.fieldset','data' => ['legend' => 'Classification']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.fieldset'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['legend' => 'Classification']); ?>
    <div class="row g-3">
        <div class="col-md-4">
            <?php if (isset($component)) { $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.select','data' => ['name' => 'category_id','label' => 'Category','placeholder' => 'Choose a category','selected' => $asset->category_id,'options' => $categories->mapWithKeys(fn ($category) => [$category->id => $category->qualifiedName()])->all(),'dataAssetTagCategory' => true,'required' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.select'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'category_id','label' => 'Category','placeholder' => 'Choose a category','selected' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($asset->category_id),'options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($categories->mapWithKeys(fn ($category) => [$category->id => $category->qualifiedName()])->all()),'data-asset-tag-category' => true,'required' => true]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?>
<?php $attributes = $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?>
<?php unset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?>
<?php $component = $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?>
<?php unset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?>
<?php endif; ?>
        </div>

        <div class="col-md-4">
            <?php if (isset($component)) { $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.select','data' => ['name' => 'location_id','label' => 'Location','placeholder' => 'No location','selected' => $asset->location_id,'options' => $locations->pluck('name', 'id')->all()]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.select'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'location_id','label' => 'Location','placeholder' => 'No location','selected' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($asset->location_id),'options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($locations->pluck('name', 'id')->all())]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?>
<?php $attributes = $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?>
<?php unset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?>
<?php $component = $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?>
<?php unset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?>
<?php endif; ?>
        </div>

        <div class="col-md-4">
            <?php if (isset($component)) { $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.select','data' => ['name' => 'team_id','label' => 'Team','placeholder' => 'No team','selected' => $asset->team_id,'options' => $teams->pluck('name', 'id')->all(),'help' => 'Which team owns this asset on the books.']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.select'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'team_id','label' => 'Team','placeholder' => 'No team','selected' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($asset->team_id),'options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($teams->pluck('name', 'id')->all()),'help' => 'Which team owns this asset on the books.']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?>
<?php $attributes = $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?>
<?php unset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?>
<?php $component = $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?>
<?php unset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?>
<?php endif; ?>
        </div>
    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc2b90d2de2606783471c065fc1520057)): ?>
<?php $attributes = $__attributesOriginalc2b90d2de2606783471c065fc1520057; ?>
<?php unset($__attributesOriginalc2b90d2de2606783471c065fc1520057); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc2b90d2de2606783471c065fc1520057)): ?>
<?php $component = $__componentOriginalc2b90d2de2606783471c065fc1520057; ?>
<?php unset($__componentOriginalc2b90d2de2606783471c065fc1520057); ?>
<?php endif; ?>

<?php if (isset($component)) { $__componentOriginalc2b90d2de2606783471c065fc1520057 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc2b90d2de2606783471c065fc1520057 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.fieldset','data' => ['legend' => 'Technical Information']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.fieldset'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['legend' => 'Technical Information']); ?>
    <div class="row g-3">
        <div class="col-md-6">
            <?php if (isset($component)) { $__componentOriginaldab510762a7038f405ecef85d75dbcb5 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginaldab510762a7038f405ecef85d75dbcb5 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.datalist','data' => ['name' => 'manufacturer','label' => 'Manufacturer','value' => $asset->manufacturer,'options' => $manufacturerSuggestions,'placeholder' => 'Dell','help' => 'Start typing, or enter a new one.']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.datalist'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'manufacturer','label' => 'Manufacturer','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($asset->manufacturer),'options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($manufacturerSuggestions),'placeholder' => 'Dell','help' => 'Start typing, or enter a new one.']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginaldab510762a7038f405ecef85d75dbcb5)): ?>
<?php $attributes = $__attributesOriginaldab510762a7038f405ecef85d75dbcb5; ?>
<?php unset($__attributesOriginaldab510762a7038f405ecef85d75dbcb5); ?>
<?php endif; ?>
<?php if (isset($__componentOriginaldab510762a7038f405ecef85d75dbcb5)): ?>
<?php $component = $__componentOriginaldab510762a7038f405ecef85d75dbcb5; ?>
<?php unset($__componentOriginaldab510762a7038f405ecef85d75dbcb5); ?>
<?php endif; ?>
        </div>

        <div class="col-md-6">
            <?php if (isset($component)) { $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.input','data' => ['name' => 'model','label' => 'Model','value' => $asset->model,'placeholder' => 'Latitude 5440','autocomplete' => 'off']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'model','label' => 'Model','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($asset->model),'placeholder' => 'Latitude 5440','autocomplete' => 'off']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $attributes = $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $component = $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
        </div>
    </div>

    <div class="ams-fieldset__legend mt-3">Specifications</div>
    <p class="ams-fieldset__hint">
        Attributes specific to this kind of asset — RAM, CPU, storage, screen
        size, IMEI. Optional, and however many rows you need.
    </p>

    <div data-specs-container>
        <?php $__currentLoopData = $specRows; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => [$specKey, $specValue]): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="row g-2 mb-2" data-specs-row>
                <div class="col-5">
                    <label class="visually-hidden" for="spec_key_<?php echo e($index); ?>">Attribute</label>
                    <input type="text"
                           id="spec_key_<?php echo e($index); ?>"
                           name="spec_key[]"
                           class="form-control form-control-sm"
                           placeholder="Attribute, e.g. RAM"
                           value="<?php echo e($specKey); ?>">
                </div>
                <div class="col-6">
                    <label class="visually-hidden" for="spec_value_<?php echo e($index); ?>">Value</label>
                    <input type="text"
                           id="spec_value_<?php echo e($index); ?>"
                           name="spec_value[]"
                           class="form-control form-control-sm"
                           placeholder="Value, e.g. 16 GB"
                           value="<?php echo e($specValue); ?>">
                </div>
                <div class="col-1 d-flex align-items-center">
                    <button type="button"
                            class="btn btn-sm btn-icon text-secondary"
                            data-specs-remove
                            title="Remove row">
                        <i class="bi bi-dash-circle" aria-hidden="true"></i>
                        <span class="visually-hidden">Remove row</span>
                    </button>
                </div>
            </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

        
        <button type="button" class="btn btn-sm btn-outline-secondary mt-1" data-specs-add>
            <i class="bi bi-plus-lg" aria-hidden="true"></i>Add row
        </button>
    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc2b90d2de2606783471c065fc1520057)): ?>
<?php $attributes = $__attributesOriginalc2b90d2de2606783471c065fc1520057; ?>
<?php unset($__attributesOriginalc2b90d2de2606783471c065fc1520057); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc2b90d2de2606783471c065fc1520057)): ?>
<?php $component = $__componentOriginalc2b90d2de2606783471c065fc1520057; ?>
<?php unset($__componentOriginalc2b90d2de2606783471c065fc1520057); ?>
<?php endif; ?>

<?php if (isset($component)) { $__componentOriginalc2b90d2de2606783471c065fc1520057 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc2b90d2de2606783471c065fc1520057 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.fieldset','data' => ['legend' => 'Purchase Information']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.fieldset'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['legend' => 'Purchase Information']); ?>
    <div class="row g-3">
        <div class="col-md-6">
            <?php if (isset($component)) { $__componentOriginaldab510762a7038f405ecef85d75dbcb5 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginaldab510762a7038f405ecef85d75dbcb5 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.datalist','data' => ['name' => 'vendor','label' => 'Vendor','value' => $asset->vendor,'options' => $vendorSuggestions,'placeholder' => 'Where it was purchased from','help' => 'Start typing, or enter a new one.']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.datalist'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'vendor','label' => 'Vendor','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($asset->vendor),'options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($vendorSuggestions),'placeholder' => 'Where it was purchased from','help' => 'Start typing, or enter a new one.']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginaldab510762a7038f405ecef85d75dbcb5)): ?>
<?php $attributes = $__attributesOriginaldab510762a7038f405ecef85d75dbcb5; ?>
<?php unset($__attributesOriginaldab510762a7038f405ecef85d75dbcb5); ?>
<?php endif; ?>
<?php if (isset($__componentOriginaldab510762a7038f405ecef85d75dbcb5)): ?>
<?php $component = $__componentOriginaldab510762a7038f405ecef85d75dbcb5; ?>
<?php unset($__componentOriginaldab510762a7038f405ecef85d75dbcb5); ?>
<?php endif; ?>
        </div>

        <div class="col-md-3">
            <?php if (isset($component)) { $__componentOriginal46532ebd00ae7b86696e70e5b4242363 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal46532ebd00ae7b86696e70e5b4242363 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.date','data' => ['name' => 'purchase_date','label' => 'Purchase Date','value' => $asset->purchase_date]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.date'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'purchase_date','label' => 'Purchase Date','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($asset->purchase_date)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal46532ebd00ae7b86696e70e5b4242363)): ?>
<?php $attributes = $__attributesOriginal46532ebd00ae7b86696e70e5b4242363; ?>
<?php unset($__attributesOriginal46532ebd00ae7b86696e70e5b4242363); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal46532ebd00ae7b86696e70e5b4242363)): ?>
<?php $component = $__componentOriginal46532ebd00ae7b86696e70e5b4242363; ?>
<?php unset($__componentOriginal46532ebd00ae7b86696e70e5b4242363); ?>
<?php endif; ?>
        </div>

        <div class="col-md-3">
            <?php if (isset($component)) { $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.input','data' => ['name' => 'purchase_cost','label' => 'Purchase Cost','type' => 'number','step' => '0.01','min' => '0','value' => $asset->purchase_cost,'autocomplete' => 'off']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'purchase_cost','label' => 'Purchase Cost','type' => 'number','step' => '0.01','min' => '0','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($asset->purchase_cost),'autocomplete' => 'off']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $attributes = $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $component = $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
        </div>

        <div class="col-md-3">
            <?php if (isset($component)) { $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.input','data' => ['name' => 'currency','label' => 'Currency','value' => $asset->currency,'maxlength' => '3','placeholder' => 'INR','autocomplete' => 'off','help' => 'ISO code, e.g. INR or USD.']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'currency','label' => 'Currency','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($asset->currency),'maxlength' => '3','placeholder' => 'INR','autocomplete' => 'off','help' => 'ISO code, e.g. INR or USD.']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $attributes = $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $component = $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
        </div>

        <div class="col-md-4">
            <?php if (isset($component)) { $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.input','data' => ['name' => 'invoice_number','label' => 'Invoice Number','value' => $asset->invoice_number,'autocomplete' => 'off']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'invoice_number','label' => 'Invoice Number','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($asset->invoice_number),'autocomplete' => 'off']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $attributes = $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $component = $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
        </div>

        <div class="col-md-4">
            <?php if (isset($component)) { $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.input','data' => ['name' => 'po_number','label' => 'PO Number','value' => $asset->po_number,'autocomplete' => 'off']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'po_number','label' => 'PO Number','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($asset->po_number),'autocomplete' => 'off']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $attributes = $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $component = $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
        </div>
    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc2b90d2de2606783471c065fc1520057)): ?>
<?php $attributes = $__attributesOriginalc2b90d2de2606783471c065fc1520057; ?>
<?php unset($__attributesOriginalc2b90d2de2606783471c065fc1520057); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc2b90d2de2606783471c065fc1520057)): ?>
<?php $component = $__componentOriginalc2b90d2de2606783471c065fc1520057; ?>
<?php unset($__componentOriginalc2b90d2de2606783471c065fc1520057); ?>
<?php endif; ?>

<?php if (! ($editing)): ?>
    <?php if (isset($component)) { $__componentOriginalc2b90d2de2606783471c065fc1520057 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc2b90d2de2606783471c065fc1520057 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.fieldset','data' => ['legend' => 'Warranty']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.fieldset'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['legend' => 'Warranty']); ?>
        <p class="ams-fieldset__hint">
            Optional. Fill in both dates to record this asset's initial
            Manufacturer Warranty at the same time — no separate trip to the
            Warranty screen needed. Leave both blank to add coverage later.
        </p>

        <div class="row g-3">
            <div class="col-md-6">
                <?php if (isset($component)) { $__componentOriginal46532ebd00ae7b86696e70e5b4242363 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal46532ebd00ae7b86696e70e5b4242363 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.date','data' => ['name' => 'warranty_start_date','label' => 'Warranty Start Date']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.date'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'warranty_start_date','label' => 'Warranty Start Date']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal46532ebd00ae7b86696e70e5b4242363)): ?>
<?php $attributes = $__attributesOriginal46532ebd00ae7b86696e70e5b4242363; ?>
<?php unset($__attributesOriginal46532ebd00ae7b86696e70e5b4242363); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal46532ebd00ae7b86696e70e5b4242363)): ?>
<?php $component = $__componentOriginal46532ebd00ae7b86696e70e5b4242363; ?>
<?php unset($__componentOriginal46532ebd00ae7b86696e70e5b4242363); ?>
<?php endif; ?>
            </div>

            <div class="col-md-6">
                <?php if (isset($component)) { $__componentOriginal46532ebd00ae7b86696e70e5b4242363 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal46532ebd00ae7b86696e70e5b4242363 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.date','data' => ['name' => 'warranty_end_date','label' => 'Warranty End Date']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.date'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'warranty_end_date','label' => 'Warranty End Date']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal46532ebd00ae7b86696e70e5b4242363)): ?>
<?php $attributes = $__attributesOriginal46532ebd00ae7b86696e70e5b4242363; ?>
<?php unset($__attributesOriginal46532ebd00ae7b86696e70e5b4242363); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal46532ebd00ae7b86696e70e5b4242363)): ?>
<?php $component = $__componentOriginal46532ebd00ae7b86696e70e5b4242363; ?>
<?php unset($__componentOriginal46532ebd00ae7b86696e70e5b4242363); ?>
<?php endif; ?>
            </div>
        </div>
     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc2b90d2de2606783471c065fc1520057)): ?>
<?php $attributes = $__attributesOriginalc2b90d2de2606783471c065fc1520057; ?>
<?php unset($__attributesOriginalc2b90d2de2606783471c065fc1520057); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc2b90d2de2606783471c065fc1520057)): ?>
<?php $component = $__componentOriginalc2b90d2de2606783471c065fc1520057; ?>
<?php unset($__componentOriginalc2b90d2de2606783471c065fc1520057); ?>
<?php endif; ?>

    <?php if (isset($component)) { $__componentOriginalc2b90d2de2606783471c065fc1520057 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc2b90d2de2606783471c065fc1520057 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.fieldset','data' => ['legend' => 'Invoice / Purchase Document','hint' => 'Optional. Attach the invoice, PO or any other document for this asset now — more can be added later from the asset\'s Documents section.']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.fieldset'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['legend' => 'Invoice / Purchase Document','hint' => 'Optional. Attach the invoice, PO or any other document for this asset now — more can be added later from the asset\'s Documents section.']); ?>
        <div class="row g-3">
            <div class="col-md-4">
                <?php if (isset($component)) { $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.select','data' => ['name' => 'document_type','label' => 'Document Type','selected' => 'invoice','options' => \App\Enums\AssetDocumentType::options()]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.select'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'document_type','label' => 'Document Type','selected' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('invoice'),'options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(\App\Enums\AssetDocumentType::options())]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?>
<?php $attributes = $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?>
<?php unset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?>
<?php $component = $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?>
<?php unset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?>
<?php endif; ?>
            </div>

            <div class="col-md-8">
                <?php if (isset($component)) { $__componentOriginalc991e6deb327f0254c95051bd36ee5bd = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc991e6deb327f0254c95051bd36ee5bd = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.file','data' => ['name' => 'document','label' => 'Document','accept' => '.pdf,.jpg,.jpeg,.png','help' => 'PDF, JPG or PNG, up to 10 MB.']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.file'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'document','label' => 'Document','accept' => '.pdf,.jpg,.jpeg,.png','help' => 'PDF, JPG or PNG, up to 10 MB.']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc991e6deb327f0254c95051bd36ee5bd)): ?>
<?php $attributes = $__attributesOriginalc991e6deb327f0254c95051bd36ee5bd; ?>
<?php unset($__attributesOriginalc991e6deb327f0254c95051bd36ee5bd); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc991e6deb327f0254c95051bd36ee5bd)): ?>
<?php $component = $__componentOriginalc991e6deb327f0254c95051bd36ee5bd; ?>
<?php unset($__componentOriginalc991e6deb327f0254c95051bd36ee5bd); ?>
<?php endif; ?>
            </div>
        </div>
     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc2b90d2de2606783471c065fc1520057)): ?>
<?php $attributes = $__attributesOriginalc2b90d2de2606783471c065fc1520057; ?>
<?php unset($__attributesOriginalc2b90d2de2606783471c065fc1520057); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc2b90d2de2606783471c065fc1520057)): ?>
<?php $component = $__componentOriginalc2b90d2de2606783471c065fc1520057; ?>
<?php unset($__componentOriginalc2b90d2de2606783471c065fc1520057); ?>
<?php endif; ?>
<?php endif; ?>

<?php if (isset($component)) { $__componentOriginalc2b90d2de2606783471c065fc1520057 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc2b90d2de2606783471c065fc1520057 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.fieldset','data' => ['legend' => 'Notes']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.fieldset'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['legend' => 'Notes']); ?>
    <?php if (isset($component)) { $__componentOriginalcd97a59301ba78d56b3ed60dd41409ab = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalcd97a59301ba78d56b3ed60dd41409ab = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.textarea','data' => ['name' => 'notes','label' => 'Notes','value' => $asset->notes,'rows' => 3,'help' => 'Visible to every user who can view this record.']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.textarea'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'notes','label' => 'Notes','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($asset->notes),'rows' => 3,'help' => 'Visible to every user who can view this record.']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalcd97a59301ba78d56b3ed60dd41409ab)): ?>
<?php $attributes = $__attributesOriginalcd97a59301ba78d56b3ed60dd41409ab; ?>
<?php unset($__attributesOriginalcd97a59301ba78d56b3ed60dd41409ab); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalcd97a59301ba78d56b3ed60dd41409ab)): ?>
<?php $component = $__componentOriginalcd97a59301ba78d56b3ed60dd41409ab; ?>
<?php unset($__componentOriginalcd97a59301ba78d56b3ed60dd41409ab); ?>
<?php endif; ?>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc2b90d2de2606783471c065fc1520057)): ?>
<?php $attributes = $__attributesOriginalc2b90d2de2606783471c065fc1520057; ?>
<?php unset($__attributesOriginalc2b90d2de2606783471c065fc1520057); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc2b90d2de2606783471c065fc1520057)): ?>
<?php $component = $__componentOriginalc2b90d2de2606783471c065fc1520057; ?>
<?php unset($__componentOriginalc2b90d2de2606783471c065fc1520057); ?>
<?php endif; ?>

<?php if (isset($component)) { $__componentOriginalc2b90d2de2606783471c065fc1520057 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc2b90d2de2606783471c065fc1520057 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.fieldset','data' => ['legend' => 'Availability']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.fieldset'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['legend' => 'Availability']); ?>
    <?php if (isset($component)) { $__componentOriginal43da204543437953b216481011f1ac88 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal43da204543437953b216481011f1ac88 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.checkbox','data' => ['name' => 'is_active','label' => 'Asset is active','checked' => $asset->is_active,'help' => 'Inactive assets keep their history but are not offered when assigning to an employee.']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.checkbox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'is_active','label' => 'Asset is active','checked' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($asset->is_active),'help' => 'Inactive assets keep their history but are not offered when assigning to an employee.']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal43da204543437953b216481011f1ac88)): ?>
<?php $attributes = $__attributesOriginal43da204543437953b216481011f1ac88; ?>
<?php unset($__attributesOriginal43da204543437953b216481011f1ac88); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal43da204543437953b216481011f1ac88)): ?>
<?php $component = $__componentOriginal43da204543437953b216481011f1ac88; ?>
<?php unset($__componentOriginal43da204543437953b216481011f1ac88); ?>
<?php endif; ?>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc2b90d2de2606783471c065fc1520057)): ?>
<?php $attributes = $__attributesOriginalc2b90d2de2606783471c065fc1520057; ?>
<?php unset($__attributesOriginalc2b90d2de2606783471c065fc1520057); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc2b90d2de2606783471c065fc1520057)): ?>
<?php $component = $__componentOriginalc2b90d2de2606783471c065fc1520057; ?>
<?php unset($__componentOriginalc2b90d2de2606783471c065fc1520057); ?>
<?php endif; ?>
<?php /**PATH /Users/aviii/Desktop/Aumni AMS/resources/views/assets/_form.blade.php ENDPATH**/ ?>