@foreach($visibleColumns as $columnKey) @endforeach @if($showActions ?? true) @endif @forelse($rows as $row) @php $voucher = $row['voucher']; [$sbg,$sfg] = $voucher->getStatusColor(); $extraData = $voucher->extra_data ?? []; @endphp @foreach($visibleColumns as $columnKey) @endforeach @if($showActions ?? true) @endif @empty @endforelse
$columnKey === 'amount', ])>{{ $columnLabels[$columnKey] ?? ucfirst(str_replace('_', ' ', $columnKey)) }}Actions
$columnKey === 'amount', 'text-muted' => in_array($columnKey, ['reference', 'narration', 'dimensions', 'accounts', 'customer_jobs'], true), ]) style="font-size:13px;max-width:260px"> @if($columnKey === 'voucher_number' && ($showActions ?? true)) {{ $row['cells'][$columnKey] }} @if(!empty($extraData['reversed_by'])) Reversed @endif @if(!empty($extraData['reversed_from'])) Reversal @endif @elseif($columnKey === 'status') {{ $row['cells'][$columnKey] }} @else
{{ $row['cells'][$columnKey] }}
@endif
@if(auth()->user()->hasPermission('vouchers','edit')) @endif @if($approvalReq && ($voucher->isDraft() || $voucher->isSubmitted()) && auth()->user()->hasPermission('vouchers','approve'))
@csrf
@endif @if(auth()->user()->hasPermission('vouchers','delete'))
@csrf @method('DELETE')
@endif

No {{ $label }} vouchers found.

@if(($showActions ?? true) && auth()->user()->hasPermission('vouchers','create')) Create First {{ $label }} @endif