@extends('layouts.app') @section('title', 'Pending Approvals') @section('content')
@forelse($transactions as $transaction) @empty @endforelse
Date Account Category Amount Reference Recorded By Actions
{{ $transaction->date->format('d M Y') }} {{ $transaction->account?->name }} {{ $transaction->category?->name }} {{ number_format($transaction->amount, 2) }} {{ $transaction->reference ?? '-' }} {{ $transaction->recorder?->full_name }}
@if(auth()->user()->id !== $transaction->recorded_by && auth()->user()->can('finance.approve'))
@csrf
@else Own transaction @endif
No pending transactions.
{{ $transactions->links() }}
@push('scripts') @endpush @endsection