@extends('admin.layouts.app') @section('title', get_setting('site_name').' | কর্মী/কর্মকর্তার পাওনা তথ্য') @section('content') @php $funds = $funds ?? []; $leave = $leave ?? []; $employee = $employee ?? []; $fmt = fn ($v) => number_format((float) ($v ?? 0), 2, '.', ''); $securityPrincipal = (float) ($funds['security_principal'] ?? 0); $securityInterest = (float) ($funds['security_interest'] ?? 0); $interestPeriod = ''; if (! empty($funds['security_calc']['periods'])) { $unit = ($funds['security_calc']['period_unit'] ?? 'year') === 'month' ? 'মাস' : 'বছর'; $interestPeriod = ((int) $funds['security_calc']['periods']).' '.$unit; } $leavePeriod = (($leave['encashable_days'] ?? 0) > 0) ? number_format((float) $leave['encashable_days'], 0).' দিন' : ''; $oldSheet = old('sheet', []); $joiningDisplay = $employee['joining_date'] ?? '—'; $serviceDisplay = $service_length ?? '—'; @endphp