@extends('layouts.app') @section('title', 'Payroll Management') @section('subtitle', 'Manage employee payroll and salary processing') @section('content')
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif

Total Payrolls

{{ $stats['total_payrolls'] }}

Draft

{{ $stats['draft_payrolls'] }}

Paid

{{ $stats['paid_payrolls'] }}

Total Net Salary

TZS {{ number_format($stats['total_net_salary'], 0) }}

Create Payroll

Payroll Records

@forelse($payrolls as $payroll) @empty @endforelse
Employee Period Basic Salary Advance Gross Salary Deductions Net Salary Status Actions
{{ $payroll->user->initials }}
{{ $payroll->user->full_name }}
{{ $payroll->user->employee_id }}
{{ $payroll->formatted_period }} TZS {{ number_format($payroll->basic_salary, 0) }} TZS {{ number_format($payroll->advance_salary ?? 0, 0) }} TZS {{ number_format($payroll->gross_salary, 0) }} TZS {{ number_format($payroll->total_deductions, 0) }} TZS {{ number_format($payroll->net_salary, 0) }} {{ ucfirst($payroll->status) }}
@if($payroll->status !== 'paid') @endif

No payroll records found

Create your first payroll or generate monthly payrolls.

{{ $payrolls->links() }}
@endsection