@extends('layouts.app') @section('title', 'Transactions History') @section('content')
@if(session('success'))
{{ session('success') }}
@endif @forelse($transactions as $tx) @empty @endforelse
Date Type Item & Variation Quantity Officer (If Issuance) Operator
{{ $tx->created_at->format('d M Y, h:i A') }} @if($tx->type === 'in') Stock In @elseif($tx->type === 'return') Received Back @else Stock Out @endif {{ $tx->variation->item->name ?? 'Deleted Item' }}
Size/Type: {{ $tx->variation->value ?? 'N/A' }}
{{ $tx->quantity }} @if($tx->officer) {{ $tx->officer->name }} ({{ $tx->officer->belt_number }}) @else -- @endif {{ $tx->user->name ?? 'System' }}
No transactions recorded yet.
@endsection