{{-- Filter of the admin invoice list (#2957 slice 6d, card #3020). Included by invoice/index on admin.invoice.index only. Same GET parameters as the old filter box: q (Invoice::scopeSearch matches company name, e-mail and number), type (-1 all, invoice status type) and status (-1 all, paid 1 / 0). --}} @php $typeOptions = [ '-1' => __('invoice.all'), Invoice::_get('statusTypes')['normal'] => __('invoice.typeNormal'), Invoice::_get('statusTypes')['credit'] => __('invoice.typeCredit'), ]; $statusOptions = ['-1' => __('invoice.all'), '1' => __('invoice.onlyPaid'), '0' => __('invoice.onlyNotPaid')]; $type = (string) request('type', '-1'); $status = (string) request('status', '-1'); @endphp