@use('App\Enums\PaymentType') @use('App\Enums\PermissionName')

{{ __('Payments') }}

@include('payments.partials.stats')
{{-- One row per employee per month, or every payment on its own. --}}

{{ __('Salary, bonus, advance and the rest paid to someone in one month sit on one line. Open a line to see each payment.') }}

{{ __('Each payment on its own line.') }}

@foreach ($employees as $employee) @endforeach @if ($locations->isNotEmpty()) @foreach ($locations as $location) @endforeach @endif @foreach ($types as $type) @endforeach @foreach ($statuses as $status) @endforeach @foreach ($methods as $method) @endforeach @can(PermissionName::CreatePayments->value) {{ __('Record payment') }} @endcan
value}_text", 'title' => $type->label(), 'orderable' => false, 'searchable' => false, 'className' => 'dt-right tabular-nums'], PaymentType::cases()), ['data' => 'total_text', 'name' => 'total_amount', 'title' => __('Total'), 'searchable' => false, 'className' => 'dt-right'], ['data' => 'details', 'title' => '', 'orderable' => false, 'searchable' => false, 'className' => 'dt-right'], ]) }}" data-details-columns="{{ json_encode([ ['data' => 'type_badge', 'title' => __('Type')], ['data' => 'amount_text', 'title' => __('Amount')], ['data' => 'method_text', 'title' => __('Paid via')], ['data' => 'date_text', 'title' => __('Date')], ['data' => 'status_badge', 'title' => __('Status')], ['data' => 'actions', 'title' => __('Actions'), 'className' => 'text-end'], ]) }}" >