@extends("client.layouts.app") @section("title", __("client.services.title")) @section("content")

{{ __('client.services.page_title') }}

{{ __('client.services.page_subtitle') }}

{{ __('client.services.order_new') }}
@if($total >= \App\Support\ClientListFilter::TOOLBAR_FROM || $filtered) @include('client.partials.list-toolbar', [ 'action' => route('client.services.index'), 'tabs' => ['param' => 'status', 'counts' => $statusCounts, 'current' => $status], 'search' => ['value' => request('q', ''), 'placeholder' => __('client.list.search_services')], 'selects' => count($types) > 1 ? [['name' => 'type', 'label' => __('client.list.all_types'), 'value' => $type, 'options' => collect($types)->mapWithKeys(fn ($t) => [$t => __('admin.products.type_'.$t)])->all()]] : [], 'sorts' => ['newest' => __('client.list.sort_newest'), 'oldest' => __('client.list.sort_oldest'), 'due' => __('client.list.sort_due'), 'domain' => __('client.list.sort_domain'), 'amount' => __('client.list.sort_amount')], 'sort' => $sort, 'paginator' => $services, 'filtered' => $filtered, ]) @endif
@forelse($services as $s) @empty @if($filtered) @else @endif @endforelse
{{ __('common.table.product') }} {{ __('common.table.domain') }} {{ __('common.table.billing_cycle') }} {{ __('common.table.amount') }} {{ __('common.table.next_due') }} {{ __('common.table.status') }}
{{ $s->product?->name ?? "N/A" }} @include('client.services.partials.tool-links', ['svc' => $s]) {{ $s->domain ?? "-" }} {{ $s->billing_cycle ?? "-" }} {{ display_money_fmt($s->amount) }} {{ $s->next_due_date?->format(date_fmt()) ?? "-" }} {{ __('client.status.' . strtolower($s->status)) }} {{ __('common.actions.view') }}

{{ __('client.list.no_matches') }}

{{ __('client.list.clear_filters') }}
🛒

{{ __('client.services.no_services') }}

{{ __('client.services.order_first') }}
@if($services instanceof \Illuminate\Pagination\LengthAwarePaginator && $services->hasPages())
{{ $services->links() }}
@endif @endsection