@extends('layouts.app') @section('title', 'Payroll: ' . $period->name) @section('content')
← Back to Payroll

{{ $period->name }} Payroll Register

Dates: {{ $period->start_date->format('d M Y') }} - {{ $period->end_date->format('d M Y') }} • Payment: {{ $period->payment_date->format('d M Y') }}
@if($period->status !== 'finalized')
@csrf
@else Payroll Finalized & Paid @endif
Total Gross Earnings

৳ {{ number_format($period->total_gross, 2) }}

Basic + HRA + Medical + Conveyance + OT
Total Deductions & Tax

৳ {{ number_format($period->total_deductions, 2) }}

Statutory deductions & income tax
Net Take-Home Disbursed

৳ {{ number_format($period->total_net, 2) }}

{{ $period->items->count() }} Employees Processed
Individual Employee Salary Slips
{{ $period->items->count() }} Slips
@foreach($period->items as $item) @endforeach
Employee Basic House Rent Medical + Conv Overtime (Hrs/Pay) Tax & Deductions Net Salary (BDT) Status Payslip
{{ $item->employee->full_name ?? 'Staff' }}
{{ $item->employee->employee_code ?? '' }} • {{ $item->employee->department->name ?? '' }}
৳ {{ number_format($item->basic_salary, 2) }} ৳ {{ number_format($item->house_rent, 2) }} ৳ {{ number_format($item->medical + $item->conveyance, 2) }} @if($item->overtime_hours > 0) {{ $item->overtime_hours }}h (৳{{ number_format($item->overtime_pay, 0) }}) @else 0h @endif ৳ {{ number_format($item->deductions, 2) }} ৳ {{ number_format($item->net_salary, 2) }} @if($item->payment_status === 'paid') Paid @else Pending @endif Payslip
@endsection