@extends('dashboard.layouts.app') @section('page-title') Payroll Details - {{ $staff->full_name }} @endsection @section('content')
Staff Information
Name:

{{ $staff->full_name }}

Department:

{{ optional($staff->department)->name ?? '-' }}

Job Title:

{{ optional($staff->jobTitle)->name ?? '-' }}

Staff ID:

{{ $staff->staff_no ?? '-' }}

Email:

{{ $staff->email }}

Phone:

{{ $staff->mobile }}

Joining Date:

{{ $staff->date_of_joining }}

Basic Salary:

{{ number_format($staff->basic_salary, 2) }}

Payroll Summary - {{ \Carbon\Carbon::createFromDate($payrollRun->year, $payrollRun->month, 1)->format('F Y') }}
Gross Salary
{{ number_format($PayRollStaff->gross_salary, 2) }}
Bonuses
+{{ number_format($PayRollStaff->bonuses, 2) }}
Penalties
-{{ number_format($PayRollStaff->penalties, 2) }}
Net Salary
{{ number_format($PayRollStaff->net_salary, 2) }}
@if($PayRollStaff->notes)
Notes:

{{ $PayRollStaff->notes }}

@endif
Bonuses Breakdown
@if($bonusesList->isEmpty())

No bonuses recorded.

@else
@foreach($bonusesList as $bonus) @endforeach
Rule Type Value
{{ optional($bonus->rule)->name ?? '-' }} {{ optional($bonus->rule)->units ?? '-' }} {{ optional($bonus->rule)->value ?? '-' }}
@endif
Penalties Breakdown
@if($penaltiesList->isEmpty())

No penalties recorded.

@else
@foreach($penaltiesList as $penalty) @endforeach
Rule Type Value
{{ optional($penalty->rule)->name ?? '-' }} {{ optional($penalty->rule)->units ?? '-' }} {{ optional($penalty->rule)->value ?? '-' }}
@endif
@endsection