@php $baseQuery = \App\Models\DFEPayment::query() ->where('payment_gateway', 'razorpay') ->where('payment_mode', 'razorpay_qr_code'); $tabs = [ 'all' => [ 'label' => 'All', 'count' => (clone $baseQuery)->count(), ], 'active' => [ 'label' => 'Active', 'count' => (clone $baseQuery) ->where('data->qr_code->status', 'active') ->count(), ], 'closed' => [ 'label' => 'Closed', 'count' => (clone $baseQuery) ->where('data->qr_code->status', 'closed') ->count(), ], ]; @endphp
@foreach ($tabs as $key => $tab) @endforeach
{{ $this->table }}