@extends('layouts.app') @section('title', 'Equipment Details - ' . ($serial ?? '')) @section('content')
Equipment Details: {{ $serial }}
Back to Search
@if($found && $device)
Equipment Found
{{ $device->status }}
Master ID {{ $device->rental_device_code }}
Matched Equipment {{ $device->matched_type ?? '-' }}
Serial Number {{ $device->matched_value ?? $serial }}@if($device->isEquipmentVerified($device->matched_type, $device->matched_value))✅@endif
Status {{ $device->status }}
Customer {{ $device->customer->customer_name ?? '-' }}
Location Type {{ $device->location_type }}
Location {{ $device->getFormattedLocation() }}
Last Updated {{ $device->updated_at ? $device->updated_at->format('d M Y H:i') : '-' }}
Movement History
@if(isset($device->movements) && count($device->movements) > 0) {{ count($device->movements) }} movement{{ count($device->movements) > 1 ? 's' : '' }} @endif
@forelse($device->movements ?? [] as $movement) @empty @endforelse
Date Equipment / Action Serial Number From To Status By Notes Actions
{{ $movement->created_at ? $movement->created_at->format('d M Y H:i') : '-' }} {{ $movement->equipment_type ?? 'Full Package' }} @if($movement->serial_number) {{ $movement->serial_number }} @else - @endif {{ $movement->fromWarehouse->warehouse_name ?? $movement->fromSite->site_name ?? '-' }} {{ $movement->toWarehouse->warehouse_name ?? $movement->toSite->site_name ?? '-' }} @switch(strtoupper($movement->status ?? '')) @case('APPROVED') @case('COMPLETED') {{ ucfirst(strtolower($movement->status)) }} @break @case('PENDING') Pending @break @case('REJECTED') Rejected @break @default {{ $movement->status ?? '-' }} @endswitch {{ $movement->requester->name ?? '-' }} {{ $movement->reason ?? '-' }}
No movement history for this equipment.
@else
No Equipment Found

No equipment matches serial "{{ $serial }}".

Search Equipment
@endif @endsection