{{-- resources/views/reports/transaction-history.blade.php --}} @extends('layouts.base') @section('content')
| Date/Time | Type | Laptop | Student | Staff | Condition | Notes |
|---|---|---|---|---|---|---|
| {{ $transaction->transaction_time->format('M d, Y H:i') }} | {{ ucfirst(str_replace('_', ' ', $transaction->type)) }} |
{{ $transaction->laptop->asset_tag }}
{{ $transaction->laptop->brand }} {{ $transaction->laptop->model }} |
{{ $transaction->student->full_name }}
{{ $transaction->student->student_id }} |
{{ $transaction->user->name }} | @if($transaction->type === 'check_out') Before: {{ ucfirst($transaction->condition_before ?? 'N/A') }} @else After: {{ ucfirst($transaction->condition_after ?? 'N/A') }} @endif | {{ $transaction->notes ?? '-' }} |
| No transactions found. | ||||||
Report generated on {{ now()->format('F d, Y \a\t H:i') }} by {{ auth()->user()->name }}
@if(request('date_from') || request('date_to'))Filtered by date range: {{ request('date_from') ?: 'Start' }} to {{ request('date_to') ?: 'End' }}
@endif