@extends('layouts.backend') @section('content')

{{ __('Payroll Runs') }}

@include('partials.flash')
@if($canGeneratePayroll ?? false)
{{ __('Generate Payroll Draft') }}
@csrf
@endif
{{ __('Reset') }}
@forelse($runs as $run) @empty @endforelse
{{ __('Period') }}{{ __('Frequency') }}{{ __('Items') }}{{ __('Gross') }}{{ __('Deductions') }}{{ __('Net') }}{{ __('Status') }}{{ __('Finalized By') }}{{ __('Actions') }}
{{ $run->period_label ?: $run->period_start.' - '.$run->period_end }}
{{ $run->period_start }} to {{ $run->period_end }}
{{ __(ucfirst($run->pay_frequency)) }} {{ $run->items_count }} {{ number_format((float)$run->gross_total, 2) }} {{ number_format((float)$run->deduction_total, 2) }} {{ number_format((float)$run->net_total, 2) }} {{ __(ucfirst($run->status)) }} {{ $run->processor?->name ?: '-' }}
{{ __('No payroll runs found.') }}
{{ $runs->links('pagination::bootstrap-5') }}
@endsection