@extends('layouts.portal') @section('title', __('Payrolls')) @push('styles') @include('accounting.journal._styles') @endpush @section('content')
@include('partials.portal-header')

{{ __('Payrolls') }}

{{ __('Saving a payroll immediately posts its accounting entry.') }}

{{ __('Create payroll') }}
@include('payroll._messages')

{{ __('Salaries payable') }}

@if($filters['sales_invoice_id'] ?? null)@endif {{ __('Clear') }}
@forelse($payrolls as $payroll) @empty @endforelse
#{{ __('Date') }}{{ __('Description') }}{{ __('Sales Invoice') }}{{ __('Payment') }}{{ __('Total') }}{{ __('Journal entry') }}
PAY-{{ $payroll->id }}{{ $payroll->payroll_date->toDateString() }}{{ $payroll->description }} @if($payroll->salesInvoice){{ $payroll->salesInvoice->document_number }}@else — @endif {{ $payroll->paymentMethod->name }}{{ number_format((float) $payroll->total, 2) }} {{ $payroll->journalEntry->display_number }} {{ __('Edit') }}
{{ __('No payrolls yet.') }}
{{ $payrolls->links() }}
@endsection