@extends('layouts.app') @section('title', __('billing::messages.catalogue.title')) @php use App\Modules\Billing\Models\BillableService; $canManage = auth()->user()?->can('create', BillableService::class) ?? false; $hasFilters = collect([$search, request('category'), $status])->filter(fn ($v): bool => (string) $v !== '')->isNotEmpty(); @endphp @section('content')
{{ __('billing::messages.catalogue.subtitle') }}
| {{ __('billing::messages.catalogue.code') }} | {{ __('billing::messages.catalogue.name') }} | {{ __('billing::messages.catalogue.category') }} | {{ __('billing::messages.catalogue.tax_rate') }} | {{ __('billing::messages.catalogue.unit_price') }} | @if ($canManage){{ __('common.actions') }} | @endif
|---|---|---|---|---|---|
| {{ $service->code }} | {{ $service->name }} @if (! $service->is_active) {{ __('billing::messages.catalogue.withdrawn') }} @endif @if (! $service->is_discountable) {{ __('billing::messages.items.not_discountable') }} @endif | {{ $service->category->label() }} | {{ $service->taxRate?->label() ?? __('billing::messages.catalogue.no_tax') }} | {{ $service->unit_price->toMajor() }} | @if ($canManage)
{{-- Withdraw, not delete: the entry is also the
record of what was offered and at what price. --}}
{{-- The question is asked where the button is: one
dialog naming a price could be any of thirty rows. --}}
|
@endif
|
{{ __('billing::messages.catalogue.empty') }} {{ __('billing::messages.catalogue.empty_text') }} |
|||||
{{ __('billing::messages.catalogue.withdrawn_hint') }}
@endif