@extends('layouts.master') @section('content')
{{ $title }}
A list of employees for PAYE Return.
@if(isset($error) || session('error'))
{{ $error ?? session('error') }}
@endif
{{ $title }}
@if($earn_def !== null) @endif @foreach($data as $item) @if ($item->pamEmp) @php if($earn_def !== null){ $earningTotal = App\Models\PamPayslipEarn::where('payslip_id', $item->id)->where('earn_def_id', $earn_def->id) ->sum('amount'); } @endphp @if($earn_def !== null) @endif @endif @endforeach
TPIN Name of Employee Nature of employment Gross emoluments Chargeable emoluments{{$earn_def->code}} AllowanceTotal Tax Credit Tax Deducted Tax Adjusted
{{ $item->pamEmp->pamHRUser->tpin}} {{ $item->pamEmp->pamHRUser->first_name}} {{ $item->pamEmp->pamHRUser->last_name}} {{ $item->pamEmp->pamEmpContract->name }} {{ $item->gross_earnings }} {{ $item->taxable_income }}{{ $earningTotal }} {{ $item->tax_paid }}
@endsection