@extends('layout.mainlayout') @section('content')
{{-- BALANCE --}}
🌴 Current Paid Leave Balance: {{ number_format($balance, 2) }} days
{{-- FILTER --}}
{{-- TABLE --}}
@forelse($logs as $log) @empty @endforelse
Date Action Days Before After(Balance) Reason
{{ $log->created_at->format('d M Y H:i') }} @if ($log->action === 'earned') Credit @elseif($log->action === 'deducted') Paid Leave @elseif($log->action === 'lwp') LWP @elseif($log->action === 'adjusted') Adjustment @endif {{ $log->days }} {{ $log->balance_before ?? '-' }} {{ $log->balance_after ?? '-' }} {{ $log->reason ?? '-' }}
No leave history found
{{ $logs->links('vendor.pagination.no-arrows') }}
@endsection @push('scripts') @endpush