@extends('layouts.user') @section('title', __('hr.advance_report')) @section('page_title', __('hr.advance_report')) @section('breadcrumb', __('hr.hr_payroll')) @section('content')

{{ __('hr.advance_outstanding_report') }}

{{ __('hr.advance_outstanding_report_description') }}

{{ __('hr.export_pdf') }}

{{ __('hr.total_outstanding_advance') }}

৳ {{ number_format($totalOutstanding, 2) }}

{{ __('hr.total_adjusted_advance') }}

৳ {{ number_format($totalAdjusted, 2) }}

{{ __('hr.reset') }}
@forelse($advances as $advance) @empty @endforelse
{{ __('hr.date') }} {{ __('hr.employee') }} {{ __('hr.account') }} {{ __('hr.amount') }} {{ __('hr.adjusted') }} {{ __('hr.remaining') }} {{ __('hr.status') }}
{{ optional($advance->advance_date)->format('d M Y') }}
{{ $advance->employee?->name }}
{{ $advance->employee?->employee_code }}
{{ $advance->account?->name ?? '-' }} ৳ {{ number_format($advance->amount, 2) }} ৳ {{ number_format($advance->adjusted_amount, 2) }} ৳ {{ number_format($advance->remaining_amount, 2) }} {{ ucwords(str_replace('_', ' ', $advance->status)) }}
{{ __('hr.no_advance_found') }}
@if($advances->hasPages())
{{ $advances->links() }}
@endif
@endsection