@extends('layouts.business.pdf.pdf_layout') @section('pdf_title')
@include('business::print.header')

{{ __('Payroll Report List') }}

@endsection @section('pdf_content') @foreach ($payrolls as $payroll) @endforeach @if ($payrolls->count() > 0) @endif
{{ __('Employee') }} {{ __('Date') }} {{ __('Slip No') }} {{ __('Amount') }} {{ __('Payment') }} {{ __('Status') }}
{{ $payroll->employee->name ?? '' }} {{ formatted_date($payroll->date) }} {{ $payroll->puid }} {{ currency_format($payroll->amount, currency: business_currency()) }} {{ $payroll->payment_type->name ?? 'Cash' }} {{ $payroll->status == 'unpaid' ? 'Unpaid' : 'Paid' }}
{{ __('Total') }} {{ currency_format($payrolls->sum('amount'), currency: business_currency()) }}
@endsection