@extends('layout')@section('c')@php $u=url('/'); @endphp

Payroll — {{ $run->period }} {{ ucfirst($run->status) }}

⬇ Export CSV (bank upload)
Gross pay{{ number_format($t['gross'],2) }}
PAYE{{ number_format($t['paye'],2) }}
NSSF (employee + employer){{ number_format($t['nssf_ee']+$t['nssf_er'],2) }}
Net pay{{ number_format($t['net'],2) }}
@if($run->status=='draft')
@csrf @foreach($slips as $s)@endforeach
EmployeeBasicBonusOther ded.GrossPAYENSSFSHIFHousingNet
{{ $s->full_name }} {{ number_format($s->gross,2) }}{{ number_format($s->paye,2) }}{{ number_format($s->nssf_employee,2) }}{{ number_format($s->shif,2) }}{{ number_format($s->housing_employee,2) }}{{ number_format($s->net_pay,2) }}

@csrf
@csrf
@else
@foreach($slips as $s)@endforeach
EmployeeGrossPAYENSSFSHIFHousingNet
{{ $s->full_name }}{{ number_format($s->gross,2) }}{{ number_format($s->paye,2) }}{{ number_format($s->nssf_employee,2) }}{{ number_format($s->shif,2) }}{{ number_format($s->housing_employee,2) }}{{ number_format($s->net_pay,2) }} 📄 Payslip
@if($run->status=='approved')

Mark salaries as paid

@csrf
@endif @if($run->journal_entry_id)
Posted to the ledger as journal entry #{{ $run->journal_entry_id }}.@if($run->payment_journal_id) Payment posted as journal entry #{{ $run->payment_journal_id }}.@endif
@endif @endif @endsection