@extends('dashboard.layouts.app') @section('content')
@if (session('error')) @endif
Staff Information

Full Name : {{ $staff ? $staff->full_name ?? '' : '' }}

Mobile : {{ $staff ? $staff->mobile ?? '' : '' }}

Role : {{ $staff ? $staff->role->name ?? '' : '' }}

Designation : {{ $staff ? $staff->designation->title ?? '' : '' }}

Staff No : {{ $staff ? $staff->staff_no ?? '' : '' }}

Email : {{ $staff->email ?? '' }}

Department : {{ $staff ? $staff->department->name ?? '' : '' }}

Date of Joining : {{ $staff ? $staff->date_of_joining ?? '' : '' }}

Month : {{ $payrollGenerate->payroll_month }}

Year : {{ $payrollGenerate->payroll_year }}

Status : {{ $payrollGenerate->payroll_status ?? '' }}

Payment Mode : {{ $payrollGenerate->payment_mode ?? '' }}

Payroll Summary

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

{{ number_format($payrollGenerate->total_earning, 2) }}

{{ number_format($payrollGenerate->total_deduction, 2) }}

{{ number_format($payrollGenerate->gross_salary, 2) }}

{{ number_format($payrollGenerate->tax, 2) }}

{{ number_format($payrollGenerate->net_salary, 2) }}

Earnings
@if ($earnings->isNotEmpty()) @foreach ($earnings as $earning) @endforeach
Description Amount ($)
{{ $earning->type_name }} {{ number_format($earning->amount, 2) }}
@else

No earnings recorded.

@endif
Deductions
@if ($deductions->isNotEmpty()) @foreach ($deductions as $deduction) @endforeach
Description Amount ($)
{{ $deduction->type_name }} {{ number_format($deduction->amount, 2) }}
@else

No deductions recorded.

@endif
@endsection