@extends('layouts.admin') @section('page-title', 'Payroll Details') @section('content')

Payroll Details

Salary Breakdown

Basic Salary ${{ number_format($payroll->basic_salary, 2) }}
Allowances +${{ number_format($payroll->allowances, 2) }}
Overtime +${{ number_format($payroll->overtime ?? 0, 2) }}
Deductions -${{ number_format($payroll->deductions, 2) }}
Tax -${{ number_format($payroll->tax ?? 0, 2) }}
Net Salary ${{ number_format($payroll->net_salary, 2) }}

Payroll Info

Employee

{{ $payroll->employee->first_name }} {{ $payroll->employee->last_name }}

Period

{{ $payroll->payroll_period }}

Gross Salary

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

Status

{{ ucfirst($payroll->status) }}
@if($payroll->payment_date)

Payment Date

{{ \Carbon\Carbon::parse($payroll->payment_date)->format('M d, Y') }}

@endif
@endsection