@extends('layouts.app') @section('content')
@if($history->inventory)
Inventory Information
{{ $history->inventory->name ?? 'N/A' }}
@if($history->inventory->code) {{ $history->inventory->code }} @endif
@if($history->inventory->description)

{{ $history->inventory->description }}

@endif
@endif
Serial Information
@if($history->aset && $history->aset->serial_number)

{{ $history->aset->serial_number }}

@else

N/A

@endif
@if($history->aset && $history->aset->status)

{{ $history->aset->status }}

@else

Unknown

@endif
@if($history->aset && $history->aset->location)

{{ $history->aset->location->name }}

@else

Others

@endif
Holder Information
@if($history->holder)
{{ $history->holder->name }}
@if($history->holder->email)

{{ $history->holder->email }}

@endif @else
Unknown Holder
@endif
@if($history->holder && $history->holder->department)

{{ $history->holder->department }}

@endif
Record Information

{{ $history->receivedate->setTimezone('Asia/Kuala_Lumpur')->format('d/m/Y H:i:s') }}

@if($history->createdBy) {{ $history->createdBy->name }} @else Unknown @endif

{{ $history->created_at->setTimezone('Asia/Kuala_Lumpur')->format('d/m/Y H:i:s') }}

@if($history->updated_at && $history->updated_at != $history->created_at)

{{ $history->updated_at->setTimezone('Asia/Kuala_Lumpur')->format('d/m/Y H:i:s') }}

@if($history->updatedBy)

{{ $history->updatedBy->name }}

@endif
@endif
@endsection @push('styles') @endpush