@php
$epfDeduction = $deductions->where('type.name', 'EPF')->first();
$socsoDeduction = $deductions->where('type.name', 'SOCSO')->first();
$eisDeduction = $deductions->where('type.name', 'EIS')->first();
$employerEPF = $epfDeduction ? ($epfDeduction->amount * 12/11) : 0;
$employerSOCSO = $socsoDeduction ? ($socsoDeduction->amount * 1.75) : 0;
$employerEIS = $eisDeduction ? $eisDeduction->amount : 0;
@endphp
EPF (E'YER)
{{ number_format($employerEPF, 2) }}
SOCSO (E'YER)
{{ number_format($employerSOCSO, 2) }}
EIS (E'YER)
{{ number_format($employerEIS, 2) }}