@extends('template.layouts.template-base')
@section('title')
Payslip Generate | {{ config('setting.website_name') ?: config('app.name') }}
@endsection
@section('content')
@php
$staffType = old('staff_type', request('staff_type', 'Client'));
$payslipType = old('payslip_type', request('payslip_type', 'bulk'));
$clientId = old('clients', request('clients', $selectedClient?->id));
$projectId = old('projects', request('projects', $selectedProject?->id));
$staffId = old('staff_id', request('staff_id', $selectedStaff?->id));
@endphp
No paysheet records were found for the selected payroll month and employee selection.
@else
Generated Payslips ({{ $payslips->count() }})
{{ \Carbon\Carbon::createFromFormat('Y-m', $month)->format('F Y') }}
@if(($filters['payslip_type'] ?? '') === 'bulk')
{{-- Emails every payslip below, one PDF per employee (same mail as the row's Send Mail) --}}
@endif
@foreach($payslips as $payslip)