<div class="card">
    <div class="card-body">
        <form method="GET" class="row align-items-end">
            <div class="col-md-5 mb-3">
                <label class="form-label">Müşteri</label>
                <select name="client_id" class="form-control default-select">
                    <option value="">Tüm müşteriler</option>
                    @foreach($clients as $client)
                        <option value="{{ $client->id }}" @selected((string) request('client_id') === (string) $client->id)>{{ $client->company_name }}</option>
                    @endforeach
                </select>
            </div>
            <div class="col-md-3 mb-3">
                <label class="form-label">Durum</label>
                <select name="status" class="form-control default-select">
                    <option value="">Tümü</option>
                    @foreach(['processing' => 'İşleniyor', 'completed' => 'Tamamlandı', 'failed' => 'Hatalı', 'queued' => 'Kuyrukta'] as $key => $label)
                        <option value="{{ $key }}" @selected(request('status') === $key)>{{ $label }}</option>
                    @endforeach
                </select>
            </div>
            <div class="col-md-4 mb-3 d-flex gap-2">
                <button class="btn btn-primary">Filtrele</button>
                <a href="{{ url()->current() }}" class="btn btn-light">Temizle</a>
            </div>
        </form>
    </div>
</div>
