{{-- HAVAYOLU → UÇAK BİLETİ bağları (yalnız hizmet kategorisi "Havayolu" olan tedarikçide). Bağlı sabit kalemler (Uçak Bileti ürünleri ekranında atanır) ve bu havayoluyla yapılmış son uçak bileti satışları. Beklenen: $supplier --}} @php $fpItems = \App\Models\Product\FlightProduct::byAgency((int) $supplier->agency_id) ->whereHas('airlines', fn ($q) => $q->where('suppliers.id', $supplier->id)) ->orderBy('sort_order')->get(['id', 'name', 'price', 'tax_rate', 'tax_included']); $fpSales = \App\Models\Sale\Sale::byAgency((int) $supplier->agency_id) ->where('airline_supplier_id', $supplier->id) ->latest('id')->limit(8) ->get(['id', 'sale_code', 'title', 'status', 'total_amount', 'currency', 'flight_details', 'operation_step', 'product_type_id']); $fpSaleCount = \App\Models\Sale\Sale::byAgency((int) $supplier->agency_id)->where('airline_supplier_id', $supplier->id)->count(); $fpStatus = app(\App\Services\Sale\SaleStatusService::class); @endphp