@extends('dashboard.layouts.app') @section('content')
Upedia
123 Academy Street, City, Country
Payroll Invoice {{ $payrollInvoice->invoice_no }}
Invoice Date: {{ $payrollInvoice->created_at->format('Y-m-d') }}
Payroll Period: {{ $payrollInvoice->month }}/{{ $payrollInvoice->year }}
Information
@if ($payrollInvoice)

Invoice Number: {{ $payrollInvoice->invoice_no ?? '' }}

Month: {{ $payrollInvoice->month ?? '' }}

Year: {{ $payrollInvoice->year ?? '' }}

Total: {{ $payrollInvoice->total ?? '' }}

@else

No information available.

@endif
Payroll Details
@foreach ($payrollInvoice->payrollGenerates as $generate) @endforeach
Staff Basic Salary Total Earnings Total Deductions Tax Net Salary Payment Status
{{ $generate->staff->first_name ?? '' }} {{ $generate->staff->last_name ?? '' }} {{ number_format($generate->basic_salary, 2) }} {{ number_format($generate->total_earning, 2) }} {{ number_format($generate->total_deduction, 2) }} {{ number_format($generate->tax, 2) }} {{ number_format($generate->net_salary, 2) }} {{ ucfirst($generate->payroll_status) }}

Invoice Total: {{ number_format($payrollInvoice->total, 2) }}

Final Total: {{ number_format($payrollInvoice->total, 2) }}
@endsection