@forelse($activeBatches as $batch)

Batch Number: {{ $batch->batch_number }}

{{ $batch->total }} Vouchers

{{ $batch->voucher_title ? $batch->voucher_title : 'N/A' }} @if(!empty($batch->title_range))
Range: {{ $batch->title_range }} @endif


@php $voucherTypes = config('sps.voucher_type', []); @endphp {{ $voucherTypes[$batch->voucher_type] ? $voucherTypes[$batch->voucher_type] : $batch->voucher_type }}

@if(($batch->voucher_type ? $batch->voucher_type : '') == 1) {{ $batch->voucher_value }}% @else ₹{{ number_format($batch->voucher_value ? $batch->voucher_value : 0, 2) }} @endif


@if(!empty($batch->vehicle_types) && count($batch->vehicle_types) > 0)
@foreach($batch->vehicle_types as $vehicle)
{{ $vehicle['name'] }}
@endforeach
@else All Vehicle Types @endif

{{ isset($batch->start_date) ? date('d-m-Y', strtotime($batch->start_date)) : 'N/A' }}

{{ isset($batch->expiry_date) ? date('d-m-Y', strtotime($batch->expiry_date)) : 'N/A' }}

@empty
No active voucher batches found.
@endforelse
@if($activeBatches->lastPage() > 1)
Showing {{ $activeBatches->firstItem() ? $activeBatches->firstItem() : 0 }} to {{ $activeBatches->lastItem() ? $activeBatches->lastItem() : 0 }} of {{ $activeBatches->total() }} batches
@endif