@extends('layouts.dashboard') @section('title', 'Approval History - PO Approval System') @section('page-title', 'Approval History') @section('content')

Your Approval History

All purchase orders you have approved or rejected

{{ $history->where('action', 'approved')->count() }}
Approved (This Page)
{{ $history->where('action', 'rejected')->count() }}
Rejected (This Page)
{{ $history->total() }}
Total Records
@if($history->count() > 0) @foreach($history as $item) @endforeach
Date & Time Document No Company Category Action Remarks
{{ $item->action_date->format('d M Y H:i') }} {{ $item->document_no }} {{ $item->company }} {{ $item->category }} {{ ucfirst($item->action) }} {{ $item->remarks ?: '-' }}
@else

No History Found

You haven't performed any approval or rejection actions yet.

@endif
@endsection