@extends('layouts.app') @section('content')

{{ __('employee.financials') }}

{{ $employee->first_name }} {{ $employee->last_name }}

{{ __('employee.totalPaid') }}

{{ format_currency((float)$totalPaid, $employee->currency?->code) }}

{{ __('employee.totalUnpaid') }}

{{ format_currency((float)$totalUnpaid, $employee->currency?->code) }}

@forelse($financials as $fin) @empty @endforelse
{{ __('employee.effectiveDate') }} {{ __('employee.type') }} {{ __('employee.amount') }} {{ __('common.status') }} {{ __('employee.description') }}
{{ $fin->effective_date ? calendar_date($fin->effective_date) : '-' }} {{ __('employee.' . $fin->type) }} {{ in_array($fin->type, ['deduction', 'advance']) ? '-' : '+' }}{{ format_currency((float)$fin->amount, $fin->currency?->code) }} @if(isset($fin->is_paid)) {{ $fin->is_paid ? __('employee.isPaid') : __('employee.isUnpaid') }} @else - @endif {{ $fin->description ?? '-' }}
{{ __('employee.noFinancials') }}
{{ $financials->withQueryString()->links() }}
@endsection