{{-- resources/views/reports/pdf/transaction-history.blade.php --}} Transaction History Report

Transaction History Report

Generated on: {{ date('F d, Y \a\t H:i') }}

@if(isset($date_from) || isset($date_to))

Date Range: {{ $date_from ?? 'Start' }} to {{ $date_to ?? 'End' }}

@endif

{{ $transactions->count() }}

Total Transactions

{{ $transactions->where('type', 'check_out')->count() }}

Check-outs

{{ $transactions->where('type', 'check_in')->count() }}

Check-ins

{{ $transactions->unique('laptop_id')->count() }}

Unique Laptops

@foreach($transactions as $transaction) @endforeach
Date/Time Type Laptop Student Staff Member Condition Notes
{{ $transaction->transaction_time->format('M d, Y') }}
{{ $transaction->transaction_time->format('H:i:s') }}
{{ $transaction->type === 'check_out' ? 'Check Out' : 'Check In' }} {{ $transaction->laptop->asset_tag }}
{{ $transaction->laptop->brand }} {{ $transaction->laptop->model }}
{{ $transaction->student->full_name }}
ID: {{ $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 @if($transaction->notes) {{ Str::limit($transaction->notes, 50) }} @endif @if($transaction->damage_description)
Damage: {{ Str::limit($transaction->damage_description, 30) }} @endif