From 51b40b24fe5a9bf3ca2cd9d76ab7dce290b59411 Mon Sep 17 00:00:00 2001 From: Petri Saarinen Date: Sun, 29 Nov 2026 10:53:10 +0200 Subject: [PATCH] Give the UI an indigo look with cards, status badges and empty states - Dark indigo header and tinted page background; the mobile main menu gets its own row, in the same order as the keyboard reaches it. - Page titles with an icon chip (x-page-title, x-page, x-page-header) and card sections (x-panel, the card utility); x-table styled as a card with an indigo header row in AppServiceProvider::styleTables(). - Job and task statuses, late work, unapproved hours and stock states as badges with icon and text (x-status-badge, x-jobs.status, x-jobs.task-status), never colour alone. - Empty lists as x-empty-state; dashboard quick link tiles, week hour bars and trend arrows; Kanban columns and task cards edged by status; calendar today column and bar accents; quick sale, reports and machine console restyled; signed-out pages show the app name. - Focus rings use the primary colour in both themes (white in the header). - Document the components in CLAUDE.md; test the status badges. Co-Authored-By: Claude Opus 5.5 --- CLAUDE.md | 1 + .../Presentation/Livewire/⚡export.blade.php | 22 ++--- .../Presentation/Livewire/⚡index.blade.php | 4 +- .../Livewire/⚡job-months.blade.php | 8 +- .../Presentation/Livewire/⚡index.blade.php | 4 +- .../Livewire/⚡price-list.blade.php | 8 +- .../Presentation/Livewire/⚡prices.blade.php | 10 +-- .../Livewire/⚡product-form.blade.php | 4 +- .../Livewire/⚡service-form.blade.php | 4 +- .../Livewire/⚡service-unit-form.blade.php | 4 +- .../Livewire/⚡vat-rate-form.blade.php | 4 +- .../Livewire/⚡work-type-form.blade.php | 4 +- .../⚡workflow-template-form.blade.php | 6 +- .../Livewire/⚡workflow-templates.blade.php | 6 +- .../Livewire/⚡billing-unit-form.blade.php | 4 +- .../Livewire/⚡contact-form.blade.php | 4 +- .../Presentation/Livewire/⚡form.blade.php | 6 +- .../Presentation/Livewire/⚡index.blade.php | 4 +- .../Presentation/Livewire/⚡show.blade.php | 15 ++-- .../Presentation/Livewire/⚡home.blade.php | 83 ++++++++++--------- .../Livewire/⚡management.blade.php | 53 +++++++----- .../Presentation/Livewire/⚡form.blade.php | 2 +- .../Presentation/Livewire/⚡job.blade.php | 4 +- .../Presentation/Livewire/⚡mine.blade.php | 4 +- .../Presentation/Livewire/⚡count.blade.php | 8 +- .../Presentation/Livewire/⚡counts.blade.php | 10 +-- .../Presentation/Livewire/⚡groups.blade.php | 6 +- .../Presentation/Livewire/⚡index.blade.php | 4 +- .../Livewire/⚡item-form.blade.php | 4 +- .../Presentation/Livewire/⚡item.blade.php | 12 +-- .../Livewire/⚡task-materials.blade.php | 2 +- .../Presentation/Livewire/⚡board.blade.php | 33 ++++---- .../Livewire/⚡calendar.blade.php | 21 ++--- .../Presentation/Livewire/⚡form.blade.php | 4 +- .../Presentation/Livewire/⚡index.blade.php | 23 +++-- .../Presentation/Livewire/⚡quick.blade.php | 4 +- .../Presentation/Livewire/⚡show.blade.php | 48 ++++++----- .../Livewire/⚡task-checklist.blade.php | 2 +- .../Livewire/⚡task-form.blade.php | 4 +- .../Livewire/⚡task-images.blade.php | 6 +- .../Livewire/⚡tasks-from-template.blade.php | 4 +- .../Livewire/⚡console-picker.blade.php | 6 +- .../Presentation/Livewire/⚡console.blade.php | 18 ++-- .../Presentation/Livewire/⚡form.blade.php | 4 +- .../Presentation/Livewire/⚡index.blade.php | 6 +- .../⚡maintenance-item-form.blade.php | 4 +- .../Livewire/⚡maintenance.blade.php | 8 +- .../Livewire/⚡production-process.blade.php | 2 +- .../Presentation/Livewire/⚡show.blade.php | 8 +- .../Presentation/Livewire/⚡bell.blade.php | 6 +- .../Presentation/Livewire/⚡hours.blade.php | 8 +- .../Livewire/⚡profitability.blade.php | 14 ++-- .../Livewire/⚡reimbursements.blade.php | 8 +- .../Presentation/Livewire/⚡sales.blade.php | 8 +- .../Livewire/⚡stock-usage.blade.php | 12 +-- .../Livewire/⚡stock-value.blade.php | 10 +-- .../Livewire/⚡unbilled.blade.php | 10 +-- .../Presentation/Livewire/⚡index.blade.php | 8 +- .../Presentation/Livewire/⚡orders.blade.php | 4 +- .../Presentation/Livewire/⚡sell.blade.php | 22 ++--- .../Presentation/Livewire/⚡company.blade.php | 4 +- .../Livewire/⚡holidays.blade.php | 4 +- .../Livewire/⚡approvals.blade.php | 6 +- .../Presentation/Livewire/⚡task.blade.php | 4 +- .../Presentation/Livewire/⚡week.blade.php | 24 +++--- .../Livewire/⚡console-login.blade.php | 4 +- .../Livewire/⚡forgot-password.blade.php | 6 +- .../Presentation/Livewire/⚡form.blade.php | 6 +- .../Presentation/Livewire/⚡index.blade.php | 4 +- .../Presentation/Livewire/⚡login.blade.php | 6 +- .../Livewire/⚡pin-switch.blade.php | 4 +- .../Presentation/Livewire/⚡pin.blade.php | 4 +- .../Livewire/⚡reset-password.blade.php | 6 +- app/Providers/AppServiceProvider.php | 22 +++++ resources/css/app.css | 16 ++++ .../components/catalog/item-actions.blade.php | 2 +- .../views/components/checkbox-group.blade.php | 2 +- .../views/components/empty-state.blade.php | 15 ++++ .../inventory/stock-status.blade.php | 22 ++--- .../components/jobs/customer-picker.blade.php | 2 +- .../views/components/jobs/status.blade.php | 24 ++++++ .../components/jobs/task-status.blade.php | 18 ++++ .../views/components/nav-group.blade.php | 12 +-- .../views/components/page-header.blade.php | 48 +++++++++++ .../views/components/page-title.blade.php | 13 +++ resources/views/components/page.blade.php | 21 +++++ resources/views/components/panel.blade.php | 52 ++++++++++++ .../views/components/password-field.blade.php | 2 +- .../views/components/profile-menu.blade.php | 18 ++-- .../reports/period-filter.blade.php | 2 + .../views/components/status-badge.blade.php | 24 ++++++ resources/views/components/tabs.blade.php | 2 +- .../views/components/tabs/panel.blade.php | 2 +- .../components/users/pin-fields.blade.php | 4 +- resources/views/layouts/app.blade.php | 16 ++-- resources/views/layouts/console.blade.php | 4 +- .../views/partials/guest-brand.blade.php | 7 ++ .../views/partials/locale-switch.blade.php | 2 +- .../Feature/Modules/Jobs/StatusBadgesTest.php | 27 ++++++ 99 files changed, 702 insertions(+), 388 deletions(-) create mode 100644 resources/views/components/empty-state.blade.php create mode 100644 resources/views/components/jobs/status.blade.php create mode 100644 resources/views/components/jobs/task-status.blade.php create mode 100644 resources/views/components/page-header.blade.php create mode 100644 resources/views/components/page-title.blade.php create mode 100644 resources/views/components/page.blade.php create mode 100644 resources/views/components/panel.blade.php create mode 100644 resources/views/components/status-badge.blade.php create mode 100644 resources/views/partials/guest-brand.blade.php create mode 100644 tests/Feature/Modules/Jobs/StatusBadgesTest.php diff --git a/CLAUDE.md b/CLAUDE.md index 146e42b..df961e5 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -41,6 +41,7 @@ Read `docs/architecture.md` (Finnish) before adding or changing domain code. `ap Accessibility is a contractual acceptance criterion. It covers the whole UI: navigation, forms, tables, reports, notifications, dialogs, login, and every business process. Every new or changed view must meet these rules: - **UI components are TallStackUI.** Read the component's page in `vendor/tallstackui/tallstackui/.ai/components/` (index: `.ai/index.md`) before writing a tag; never guess props. Every form control has a visible `label` prop; TallStackUI shows the `wire:model` validation error under it. Placeholder text is not a label. Submit buttons use the `submit` prop, never `type="submit"`. +- **Look and layout**: the header is dark indigo (`bg-primary-950`), pages sit on `bg-canvas` / `dark:bg-canvas-dark` (`resources/css/app.css`). A page's h1 is `` (or `` with `actions` slot inside ``); sections are cards (`` or the `card` CSS utility on your own `
`); never a card inside a card, and `` is already a card (styled in `AppServiceProvider::styleTables()`). Statuses are `` (job and task statuses: ``, ``), empty lists ``. A page's main action is a primary (default colour) button, others `subtle color="black"`. Focus rings are `outline-primary-600` / `dark:outline-primary-300` (white in the header). - **TallStackUI accessibility gaps and the project fixes** (keep them; the axe tests catch regressions): - ``: its reveal button has no name. Use `` (`resources/views/components/password-field.blade.php`). - ``: unnamed `role="switch"`. Use `resources/views/partials/theme-toggle.blade.php`, which drives `tallstackui_darkTheme({ default: 'system' })` on `` (localStorage `dark-theme`; an inline script in the layout applies it before paint). diff --git a/app/Modules/Billing/Presentation/Livewire/⚡export.blade.php b/app/Modules/Billing/Presentation/Livewire/⚡export.blade.php index 8d7b7dd..f35986a 100644 --- a/app/Modules/Billing/Presentation/Livewire/⚡export.blade.php +++ b/app/Modules/Billing/Presentation/Livewire/⚡export.blade.php @@ -318,7 +318,7 @@ new class extends Component

{{ __('billing.export.back') }}

-

{{ $this->heading() }}

+ {{ $this->heading() }}

@if ($export->isDraft())

{{ __('billing.export.period_help') }}

@error('period') @@ -362,7 +362,7 @@ new class extends Component
@if ($export->hasProblems()) -

+

@@ -380,11 +380,11 @@ new class extends Component

{{ __('billing.invoices.title') }}

@if ($export->invoices === []) -

{{ __('billing.invoices.none') }}

+ {{ __('billing.invoices.none') }} @endif @foreach ($export->invoices as $invoiceNumber => $invoice) -
+

{{ __('billing.invoices.heading', ['number' => $invoiceNumber + 1, 'customer' => $invoice->customerName]) }}

@@ -428,7 +428,7 @@ new class extends Component - + @@ -463,7 +463,7 @@ new class extends Component
{{ __('billing.jobs.months_caption', ['job' => $job->label()]) }}
{{ __('billing.jobs.month') }} {{ __('billing.jobs.amount') }}
- + @@ -488,7 +488,7 @@ new class extends Component aria-label="{{ __('billing.jobs.billable_label', ['work_type' => $row->name]) }}" aria-describedby="hours-help-{{ $job->jobId }}" @error('hours.'.$job->jobId.'.'.$row->workTypeId) aria-invalid="true" aria-errormessage="{{ $fieldId }}-error" @enderror - class="w-20 rounded-md border border-zinc-400 bg-white px-2 py-1.5 text-right text-zinc-900 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700 aria-invalid:border-red-700 dark:border-zinc-500 dark:bg-zinc-900 dark:text-zinc-100 dark:aria-invalid:border-red-400" + class="w-20 rounded-md border border-zinc-400 bg-white px-2 py-1.5 text-right text-zinc-900 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:focus-visible:outline-primary-300 aria-invalid:border-red-700 dark:border-zinc-500 dark:bg-zinc-900 dark:text-zinc-100 dark:aria-invalid:border-red-400" /> @if ($row->isAdjusted) ({{ __('billing.jobs.adjusted') }}) @@ -512,7 +512,7 @@ new class extends Component
{{ __('billing.jobs.hours_caption', ['job' => $job->label()]) }}
{{ __('billing.jobs.work_type') }} {{ __('billing.jobs.approved_hours') }} {{ __('billing.jobs.billable_hours') }}
- + @@ -557,7 +557,7 @@ new class extends Component
{{ __('billing.jobs.expenses_caption', ['job' => $job->label()]) }}
{{ __('billing.jobs.expense') }} {{ __('billing.jobs.amount') }}
- + @@ -630,7 +630,7 @@ new class extends Component

{{ __('billing.available.intro') }}

@if ($export->availableJobs === []) -

{{ __('billing.available.none') }}

+ {{ __('billing.available.none') }} @else @interact('column_job', $available) diff --git a/app/Modules/Billing/Presentation/Livewire/⚡index.blade.php b/app/Modules/Billing/Presentation/Livewire/⚡index.blade.php index b16f744..c83d739 100644 --- a/app/Modules/Billing/Presentation/Livewire/⚡index.blade.php +++ b/app/Modules/Billing/Presentation/Livewire/⚡index.blade.php @@ -87,7 +87,7 @@ new class extends Component
-

{{ __('billing.index.title') }}

+ {{ __('billing.index.title') }}

{{ __('billing.index.intro') }}

@@ -102,7 +102,7 @@ new class extends Component

{{ $statusMessage }}

@if ($this->exports === []) -

{{ __('billing.index.none') }}

+ {{ __('billing.index.none') }} @else @interact('column_number', $export) diff --git a/app/Modules/Billing/Presentation/Livewire/⚡job-months.blade.php b/app/Modules/Billing/Presentation/Livewire/⚡job-months.blade.php index 0820ead..61bf47d 100644 --- a/app/Modules/Billing/Presentation/Livewire/⚡job-months.blade.php +++ b/app/Modules/Billing/Presentation/Livewire/⚡job-months.blade.php @@ -78,11 +78,11 @@ new class extends Component

{{ __('billing.job_months.back') }}

-

{{ $this->heading() }}

+ {{ $this->heading() }}

{{ __('billing.job_months.intro') }}

-
+

{{ __('billing.job_months.summary') }}

{{ __('billing.job_months.customer') }}
@@ -113,7 +113,7 @@ new class extends Component

{{ __('billing.job_months.billed_title', ['count' => count($billing->billed)]) }}

@if ($billing->billed === []) -

{{ __('billing.job_months.none_billed') }}

+ {{ __('billing.job_months.none_billed') }} @else @interact('column_month', $month) @@ -137,7 +137,7 @@ new class extends Component @endif
-
+

{{ __('billing.job_months.unbilled_title', ['month' => $this->monthLabel($billing->currentMonth)]) }}

@if ($billing->unbilled === []) diff --git a/app/Modules/Catalog/Presentation/Livewire/⚡index.blade.php b/app/Modules/Catalog/Presentation/Livewire/⚡index.blade.php index c3966b2..4d66a7f 100644 --- a/app/Modules/Catalog/Presentation/Livewire/⚡index.blade.php +++ b/app/Modules/Catalog/Presentation/Livewire/⚡index.blade.php @@ -114,7 +114,7 @@ new class extends Component
-

{{ __('catalog.title') }}

+ {{ __('catalog.title') }}
@@ -139,7 +139,7 @@ new class extends Component

diff --git a/app/Modules/Catalog/Presentation/Livewire/⚡price-list.blade.php b/app/Modules/Catalog/Presentation/Livewire/⚡price-list.blade.php index aa0d492..dc107d4 100644 --- a/app/Modules/Catalog/Presentation/Livewire/⚡price-list.blade.php +++ b/app/Modules/Catalog/Presentation/Livewire/⚡price-list.blade.php @@ -121,7 +121,7 @@ new class extends Component ?>
-

{{ __('catalog.prices.title') }}

+ {{ __('catalog.prices.title') }}
@@ -130,7 +130,7 @@ new class extends Component
@if ($this->consumerProducts === []) -

{{ __('catalog.products.none') }}

+ {{ __('catalog.products.none') }} @else @interact('column_name', $product) @@ -191,7 +191,7 @@ new class extends Component

{{ __('catalog.price_list.other_products') }}

@if ($this->otherProducts === []) -

{{ __('catalog.products.none') }}

+ {{ __('catalog.products.none') }} @else @interact('column_name', $product) @@ -217,7 +217,7 @@ new class extends Component @endif
-
+

{{ __('catalog.mileage.title') }}

{{ $this->mileageRateCents === null diff --git a/app/Modules/Catalog/Presentation/Livewire/⚡prices.blade.php b/app/Modules/Catalog/Presentation/Livewire/⚡prices.blade.php index 90a2ad1..770d7d4 100644 --- a/app/Modules/Catalog/Presentation/Livewire/⚡prices.blade.php +++ b/app/Modules/Catalog/Presentation/Livewire/⚡prices.blade.php @@ -346,7 +346,7 @@ new class extends Component

-

{{ __('catalog.prices.title') }}

+ {{ __('catalog.prices.title') }}

{{ __('catalog.prices.intro') }}

@@ -405,7 +405,7 @@ new class extends Component wire:change="saveRate({{ $row->workTypeId }}, $event.target.value)" aria-label="{{ __('catalog.prices.rate_label', ['name' => ($row->serviceName !== null ? $row->serviceName.': ' : '').$row->name, 'unit' => $group->serviceUnitName]) }}" @error('rates.'.$row->workTypeId) aria-invalid="true" aria-describedby="rate-{{ $row->workTypeId }}-error" @enderror - class="w-24 rounded-md border border-zinc-400 bg-white px-2 py-1.5 text-right text-zinc-900 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700 aria-invalid:border-red-700 dark:border-zinc-500 dark:bg-zinc-900 dark:text-zinc-100 dark:aria-invalid:border-red-400" + class="w-24 rounded-md border border-zinc-400 bg-white px-2 py-1.5 text-right text-zinc-900 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:focus-visible:outline-primary-300 aria-invalid:border-red-700 dark:border-zinc-500 dark:bg-zinc-900 dark:text-zinc-100 dark:aria-invalid:border-red-400" /> @error('rates.'.$row->workTypeId)

{{ $message }}

@@ -427,7 +427,7 @@ new class extends Component

{{ __('catalog.products.help') }}

@if ($this->products === []) -

{{ __('catalog.products.none') }}

+ {{ __('catalog.products.none') }} @else @interact('column_name', $product) @@ -522,7 +522,7 @@ new class extends Component
-
+

{{ __('catalog.expense_markup.section') }}

@@ -552,7 +552,7 @@ new class extends Component
-
+

{{ __('catalog.internal_cost.section') }}

diff --git a/app/Modules/Catalog/Presentation/Livewire/⚡product-form.blade.php b/app/Modules/Catalog/Presentation/Livewire/⚡product-form.blade.php index 7e18a2b..fb8e4f8 100644 --- a/app/Modules/Catalog/Presentation/Livewire/⚡product-form.blade.php +++ b/app/Modules/Catalog/Presentation/Livewire/⚡product-form.blade.php @@ -179,9 +179,9 @@ new class extends Component ?>
-

{{ $this->heading() }}

+ {{ $this->heading() }} - + {{-- TallStackUI's native select does not tie its label to the control, so aria-label names it. --}} diff --git a/app/Modules/Catalog/Presentation/Livewire/⚡service-form.blade.php b/app/Modules/Catalog/Presentation/Livewire/⚡service-form.blade.php index 19ae175..dd14fe9 100644 --- a/app/Modules/Catalog/Presentation/Livewire/⚡service-form.blade.php +++ b/app/Modules/Catalog/Presentation/Livewire/⚡service-form.blade.php @@ -87,13 +87,13 @@ new class extends Component
-

{{ $this->heading() }}

+ {{ $this->heading() }} @if ($unitName !== '')

{{ __('catalog.fields.service_unit') }}: {{ $unitName }}

@endif
- +
diff --git a/app/Modules/Catalog/Presentation/Livewire/⚡service-unit-form.blade.php b/app/Modules/Catalog/Presentation/Livewire/⚡service-unit-form.blade.php index ef081bf..fb4c4bf 100644 --- a/app/Modules/Catalog/Presentation/Livewire/⚡service-unit-form.blade.php +++ b/app/Modules/Catalog/Presentation/Livewire/⚡service-unit-form.blade.php @@ -89,11 +89,11 @@ new class extends Component
-

{{ $this->heading() }}

+ {{ $this->heading() }}
- + @unless ($isShared) diff --git a/app/Modules/Catalog/Presentation/Livewire/⚡vat-rate-form.blade.php b/app/Modules/Catalog/Presentation/Livewire/⚡vat-rate-form.blade.php index 39907fd..aa58526 100644 --- a/app/Modules/Catalog/Presentation/Livewire/⚡vat-rate-form.blade.php +++ b/app/Modules/Catalog/Presentation/Livewire/⚡vat-rate-form.blade.php @@ -103,13 +103,13 @@ new class extends Component ?>
-

{{ $this->heading() }}

+ {{ $this->heading() }} @if ($vatRateId !== null)

{{ __('catalog.vat_rates.change_help') }}

@endif - +
-

{{ $this->heading() }}

+ {{ $this->heading() }} @if ($unitName !== '')

{{ __('catalog.fields.service_unit') }}: {{ $unitName }}

@endif
- + @if ($this->services !== []) diff --git a/app/Modules/Catalog/Presentation/Livewire/⚡workflow-template-form.blade.php b/app/Modules/Catalog/Presentation/Livewire/⚡workflow-template-form.blade.php index 5c199a0..a63a5c9 100644 --- a/app/Modules/Catalog/Presentation/Livewire/⚡workflow-template-form.blade.php +++ b/app/Modules/Catalog/Presentation/Livewire/⚡workflow-template-form.blade.php @@ -311,7 +311,7 @@ new class extends Component ?>
-

{{ $this->heading() }}

+ {{ $this->heading() }} @@ -334,7 +334,7 @@ new class extends Component @endforeach -
+

{{ __('catalog.workflows.steps') }}

{{ __('catalog.workflows.steps_help') }}

@@ -350,7 +350,7 @@ new class extends Component @foreach ($form->steps as $index => $step) {{-- The index is part of the key: a moved step is rendered anew, so its fields bind to their new position. --}}
  • -
    +
    {{ __('catalog.workflows.step_legend', ['number' => $index + 1]) }}
    -

    {{ __('catalog.workflows.title') }}

    + {{ __('catalog.workflows.title') }}
    @@ -138,7 +138,7 @@ new class extends Component wire:click="toggleActive({{ $template->id }})" @checked($template->isActive) aria-label="{{ __('catalog.actions.active_named', ['name' => $template->name]) }}" - class="size-4 rounded border-zinc-400 text-primary-600 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700 dark:border-zinc-500 dark:bg-zinc-800" + class="size-4 rounded border-zinc-400 text-primary-600 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:focus-visible:outline-primary-300 dark:border-zinc-500 dark:bg-zinc-800" /> @@ -147,6 +147,6 @@ new class extends Component
  • @empty -

    {{ __('catalog.workflows.none') }}

    + {{ __('catalog.workflows.none') }} @endforelse
    diff --git a/app/Modules/Customers/Presentation/Livewire/⚡billing-unit-form.blade.php b/app/Modules/Customers/Presentation/Livewire/⚡billing-unit-form.blade.php index 31a045d..0bfc463 100644 --- a/app/Modules/Customers/Presentation/Livewire/⚡billing-unit-form.blade.php +++ b/app/Modules/Customers/Presentation/Livewire/⚡billing-unit-form.blade.php @@ -91,14 +91,14 @@ new class extends Component
    -

    {{ $this->heading() }}

    + {{ $this->heading() }}

    {{ __('customers.customer_label') }}: {{ $customerName }}

    - + diff --git a/app/Modules/Customers/Presentation/Livewire/⚡contact-form.blade.php b/app/Modules/Customers/Presentation/Livewire/⚡contact-form.blade.php index 9a1c0f8..da7986d 100644 --- a/app/Modules/Customers/Presentation/Livewire/⚡contact-form.blade.php +++ b/app/Modules/Customers/Presentation/Livewire/⚡contact-form.blade.php @@ -88,14 +88,14 @@ new class extends Component
    -

    {{ $this->heading() }}

    + {{ $this->heading() }}

    {{ __('customers.customer_label') }}: {{ $customerName }}

    - + diff --git a/app/Modules/Customers/Presentation/Livewire/⚡form.blade.php b/app/Modules/Customers/Presentation/Livewire/⚡form.blade.php index 3399901..dbe5ed8 100644 --- a/app/Modules/Customers/Presentation/Livewire/⚡form.blade.php +++ b/app/Modules/Customers/Presentation/Livewire/⚡form.blade.php @@ -120,11 +120,11 @@ new class extends Component ?>
    -

    + {{ __($customerId === null ? 'customers.create_title' : 'customers.edit_title') }} -

    + - +
    -

    {{ __('customers.title') }}

    + {{ __('customers.title') }}
    @@ -85,7 +85,7 @@ new class extends Component

    @if ($this->customers->total() === 0) -

    {{ __('customers.empty') }}

    + {{ __('customers.empty') }} @else @interact('column_name', $customer) diff --git a/app/Modules/Customers/Presentation/Livewire/⚡show.blade.php b/app/Modules/Customers/Presentation/Livewire/⚡show.blade.php index 67d05e7..2d8ee1f 100644 --- a/app/Modules/Customers/Presentation/Livewire/⚡show.blade.php +++ b/app/Modules/Customers/Presentation/Livewire/⚡show.blade.php @@ -211,8 +211,11 @@ new class extends Component
    + +
    -

    {{ $this->customer->name }}

    + {{ $this->customer->name }}
    @endif -
    +
    {{ __('customers.fields.type') }}
    {{ __('customers.types.'.$this->customer->type->value) }} @@ -272,7 +275,7 @@ new class extends Component

    {{ $statusMessage }}

    -
    +

    {{ __('customers.contacts.title') }} @@ -287,7 +290,7 @@ new class extends Component

    @if ($this->contacts === []) -

    {{ __('customers.contacts.empty') }}

    + {{ __('customers.contacts.empty') }} @else
      @foreach ($this->contacts as $contact) @@ -345,7 +348,7 @@ new class extends Component @endif
    -
    +

    {{ __('customers.billing_units.title') }} @@ -360,7 +363,7 @@ new class extends Component

    @if ($this->billingUnits === []) -

    {{ __('customers.billing_units.empty') }}

    + {{ __('customers.billing_units.empty') }} @else
      @foreach ($this->billingUnits as $billingUnit) diff --git a/app/Modules/Dashboard/Presentation/Livewire/⚡home.blade.php b/app/Modules/Dashboard/Presentation/Livewire/⚡home.blade.php index 98b08f7..eaa2434 100644 --- a/app/Modules/Dashboard/Presentation/Livewire/⚡home.blade.php +++ b/app/Modules/Dashboard/Presentation/Livewire/⚡home.blade.php @@ -54,33 +54,42 @@ new class extends Component }; ?> -
      -

      {{ __('dashboard.greeting', ['name' => auth()->user()->name]) }}

      + + @php($overview = $this->overview)
      -
      -

      {{ __('dashboard.tasks.title') }}

      - + @if (! $overview->hasTasks()) -

      {{ __('dashboard.tasks.none') }}

      + {{ __('dashboard.tasks.none') }} @endif @foreach (['overdue' => $overview->overdue, 'soon' => $overview->soon, 'this_week' => $overview->thisWeek] as $group => $tasks) @if ($tasks !== []) -
      -

      +
      $group === 'overdue'])> +

      $group === 'overdue'])> @if ($group === 'overdue') -

      @@ -89,8 +98,8 @@ new class extends Component
    • {{ $task->title }} {{ $task->jobNumber }} {{ $task->jobName }} - - {{ __('jobs.tasks.statuses.'.$task->status) }} + + @if ($task->dueOn !== null) {{ __('dashboard.tasks.due', ['date' => $this->dateLabel($task->dueOn)]) }} @endif @@ -98,9 +107,7 @@ new class extends Component {{ __('dashboard.tasks.starts', ['date' => $this->dateLabel($task->plannedFrom)]) }} @endif @if ($task->isLate) - - + {{ __('jobs.late') }} @endif
    • @@ -114,12 +121,12 @@ new class extends Component

      {{ trans_choice('dashboard.tasks.later', $overview->laterCount, ['count' => $overview->laterCount]) }}

      {{ __('dashboard.tasks.to_calendar') }}

      @endif -

      +
      -
      -

      {{ __('dashboard.week.title') }}

      - + + {{-- The bars are decoration; the hours are the table's text. A full day (7.5 h) or the week's longest day fills a bar. --}} + @php($dayMax = max(30, ...array_values($overview->week->days)))

    {{ __('billing.lines.caption', ['job' => $job->label()]) }}
    {{ __('billing.lines.description') }} {{ __('billing.lines.recorded') }} {{ __('billing.lines.quantity') }}
    @@ -135,45 +142,43 @@ new class extends Component @foreach ($overview->week->days as $quarters) - + @endforeach
    {{ __('dashboard.week.caption', ['from' => $this->dateLabel($overview->week->monday)]) }}
    {{ $this->hours($quarters) }} + + {{ $this->hours($quarters) }} +
    -

    - {{ __('dashboard.week.total', ['hours' => $this->hours($overview->week->totalQuarters)]) }} +

    + {{ __('dashboard.week.total', ['hours' => $this->hours($overview->week->totalQuarters)]) }} @if ($overview->week->unapprovedQuarters > 0) - - + {{ __('dashboard.week.unapproved', ['hours' => $this->hours($overview->week->unapprovedQuarters)]) }} @endif

    {{ __('dashboard.week.open') }}

    -
    - -
    -

    {{ __('dashboard.jobs.title') }}

    + + @if ($overview->jobs === []) -

    {{ __('dashboard.jobs.none') }}

    + {{ __('dashboard.jobs.none') }} @else
      @foreach ($overview->jobs as $job)
    • {{ $job->number }} {{ $job->name }} {{ $job->customerName }} - - {{ __('jobs.statuses.'.$job->status) }} + + @if ($job->dueOn !== null) {{ __('dashboard.jobs.due', ['date' => $this->dateLabel($job->dueOn)]) }} @endif @if ($job->isLate) - - + {{ __('jobs.late') }} @endif
    • @@ -184,7 +189,7 @@ new class extends Component

      {{ trans_choice('dashboard.jobs.all', $overview->jobCount, ['count' => $overview->jobCount]) }}

      -
    + @@ -192,4 +197,4 @@ new class extends Component {{-- Loaded right after the page, not only when scrolled to. --}} @endcan - + diff --git a/app/Modules/Dashboard/Presentation/Livewire/⚡management.blade.php b/app/Modules/Dashboard/Presentation/Livewire/⚡management.blade.php index faf3cbd..6196e21 100644 --- a/app/Modules/Dashboard/Presentation/Livewire/⚡management.blade.php +++ b/app/Modules/Dashboard/Presentation/Livewire/⚡management.blade.php @@ -32,7 +32,7 @@ new class extends Component public function placeholder(): string { - return '

    '.e(__('dashboard.management.loading')).'

    '; + return '

    '.e(__('dashboard.management.loading')).'

    '; } /** @@ -66,12 +66,13 @@ new class extends Component
    @php($overview = $this->overview) -

    {{ __('dashboard.management.title') }}

    +

    +

    -
    -

    {{ __('dashboard.todo.title') }}

    - +
      @can('time.approve-others')
    • @@ -133,11 +134,10 @@ new class extends Component
    • @endcan
    -
    + @can('reports.view') -
    -

    {{ __('dashboard.month.title') }}

    +

    {{ __('dashboard.month.period', [ 'from' => $this->dateLabel($overview->monthFrom), 'to' => $this->dateLabel($overview->monthTo), @@ -155,25 +155,32 @@ new class extends Component ['label' => 'margin', 'value' => $month->marginCents === null ? __('dashboard.month.no_cost') : $this->money($month->marginCents), 'current' => $month->marginCents, 'previous' => $previous->marginCents, 'route' => 'reports.profitability'], ['label' => 'sales', 'value' => $this->money($month->salesCents), 'current' => $month->salesCents, 'previous' => $previous->salesCents, 'route' => 'reports.sales'], ] as $figure) -

    + @php($ratio = $figure['current'] !== null && $figure['previous'] !== null ? (new \App\Modules\Dashboard\Domain\ValueObjects\Change($figure['current'], $figure['previous']))->ratio() : null) +
    {{ __('dashboard.month.'.$figure['label']) }}
    -
    {{ $figure['value'] }}
    +
    {{ $figure['value'] }}
    @if ($figure['current'] !== null && $figure['previous'] !== null) -
    {{ $this->change($figure['current'], $figure['previous']) }}
    +
    + @if ($ratio !== null && $ratio > 0) +
    @endif
    @endforeach

    {{ __('dashboard.month.billing_note') }}

    -
    + @endcan
    -
    -

    {{ __('dashboard.stock.title') }}

    + @@ -186,10 +193,12 @@ new class extends Component @foreach ($overview->jobCounts as $status => $count) - - + @endforeach @@ -222,13 +231,11 @@ new class extends Component @endforeach @endif - - -
    -

    {{ __('dashboard.load.title') }}

    + + @if ($overview->workloads === []) -

    {{ __('dashboard.load.none') }}

    + {{ __('dashboard.load.none') }} @else
    {{ __('dashboard.stock.caption') }}
    - {{ __('jobs.statuses.'.$status) }} + + + + {{ $count }}{{ $count }}
    @@ -262,6 +269,6 @@ new class extends Component

    {{ __('dashboard.load.note') }}

    {{ __('dashboard.load.to_calendar') }}

    @endif - + diff --git a/app/Modules/Expenses/Presentation/Livewire/⚡form.blade.php b/app/Modules/Expenses/Presentation/Livewire/⚡form.blade.php index 0f24c0a..c5df03c 100644 --- a/app/Modules/Expenses/Presentation/Livewire/⚡form.blade.php +++ b/app/Modules/Expenses/Presentation/Livewire/⚡form.blade.php @@ -227,7 +227,7 @@ new class extends Component
    -

    {{ $this->heading() }}

    + {{ $this->heading() }}

    {{ __('expenses.fields.job') }}: {{ $job->label() }}

    diff --git a/app/Modules/Expenses/Presentation/Livewire/⚡job.blade.php b/app/Modules/Expenses/Presentation/Livewire/⚡job.blade.php index 7381f6f..4d38290 100644 --- a/app/Modules/Expenses/Presentation/Livewire/⚡job.blade.php +++ b/app/Modules/Expenses/Presentation/Livewire/⚡job.blade.php @@ -138,7 +138,7 @@ new class extends Component
    -

    {{ __('expenses.job_page.title', ['job' => $job->label()]) }}

    + {{ __('expenses.job_page.title', ['job' => $job->label()]) }} {{ __('expenses.job_page.back_to_job') }}
    @@ -165,7 +165,7 @@ new class extends Component @endunless @if ($this->expenses === []) -

    {{ __('expenses.none') }}

    + {{ __('expenses.none') }} @else @interact('column_spentOn', $expense) diff --git a/app/Modules/Expenses/Presentation/Livewire/⚡mine.blade.php b/app/Modules/Expenses/Presentation/Livewire/⚡mine.blade.php index e570dc8..212b32b 100644 --- a/app/Modules/Expenses/Presentation/Livewire/⚡mine.blade.php +++ b/app/Modules/Expenses/Presentation/Livewire/⚡mine.blade.php @@ -101,7 +101,7 @@ new class extends Component
    -

    {{ __('expenses.mine.title') }}

    + {{ __('expenses.mine.title') }}

    {{ __(auth()->user()?->can('expenses.record') ? 'expenses.mine.help' : 'expenses.mine.help_subcontractor') }}

    @@ -117,7 +117,7 @@ new class extends Component

    {{ $this->monthLabel() }}

    @if ($this->expenses === []) -

    {{ __('expenses.none') }}

    + {{ __('expenses.none') }} @else @interact('column_spentOn', $expense) diff --git a/app/Modules/Inventory/Presentation/Livewire/⚡count.blade.php b/app/Modules/Inventory/Presentation/Livewire/⚡count.blade.php index aa493c7..bd7be72 100644 --- a/app/Modules/Inventory/Presentation/Livewire/⚡count.blade.php +++ b/app/Modules/Inventory/Presentation/Livewire/⚡count.blade.php @@ -171,7 +171,7 @@ new class extends Component

    {{ __('inventory.counts.back') }}

    -

    {{ __('inventory.counts.name', ['date' => $this->dateLabel($count->countedOn)]) }}

    + {{ __('inventory.counts.name', ['date' => $this->dateLabel($count->countedOn)]) }}

    {{ $count->groupNames === [] ? __('inventory.counts.whole_stock') : implode(', ', $count->groupNames) }} · {{ __('inventory.counts.started_by', ['name' => $count->startedByName]) }} @@ -202,7 +202,7 @@ new class extends Component @endcan @else @can('inventory.manage-counts') - + @@ -211,7 +211,7 @@ new class extends Component

    @forelse ($this->groupedLines() as $groupName => $lines) -
    +

    {{ $groupName }}

      @foreach ($lines as $line) @@ -252,7 +252,7 @@ new class extends Component value="{{ $line->isCounted() ? StockQuantity::inputValue((int) $line->countedMilli) : '' }}" wire:change="saveCounted({{ $line->itemId }}, $event.target.value)" @error('counted.'.$line->itemId) aria-invalid="true" aria-describedby="counted-{{ $line->itemId }}-error" @enderror - class="mt-1 h-10 w-full rounded-md border border-zinc-500 bg-white px-2 text-right text-zinc-900 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700 dark:border-zinc-400 dark:bg-zinc-900 dark:text-zinc-100" + class="mt-1 h-10 w-full rounded-md border border-zinc-500 bg-white px-2 text-right text-zinc-900 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:focus-visible:outline-primary-300 dark:border-zinc-400 dark:bg-zinc-900 dark:text-zinc-100" /> @error('counted.'.$line->itemId)

      {{ $message }}

      diff --git a/app/Modules/Inventory/Presentation/Livewire/⚡counts.blade.php b/app/Modules/Inventory/Presentation/Livewire/⚡counts.blade.php index d739320..7dd810f 100644 --- a/app/Modules/Inventory/Presentation/Livewire/⚡counts.blade.php +++ b/app/Modules/Inventory/Presentation/Livewire/⚡counts.blade.php @@ -73,12 +73,12 @@ new class extends Component
      -

      {{ __('inventory.counts.title') }}

      + {{ __('inventory.counts.title') }}

      {{ __('inventory.counts.intro') }}

      @can('inventory.manage-counts') -
      +

      {{ __('inventory.counts.start_title') }}

      @if ($this->groupOptions !== []) @@ -97,11 +97,11 @@ new class extends Component
      @endcan -
      +

      {{ __('inventory.counts.list') }}

      @if ($this->counts === []) -

      {{ __('inventory.counts.none') }}

      + {{ __('inventory.counts.none') }} @else
        @foreach ($this->counts as $count) @@ -124,7 +124,7 @@ new class extends Component {{ __('inventory.counts.confirmed_by', ['name' => $count->confirmedByName, 'at' => $this->dateLabel((string) $count->confirmedAt)]) }} @can('inventory.manage-counts') - + diff --git a/app/Modules/Inventory/Presentation/Livewire/⚡groups.blade.php b/app/Modules/Inventory/Presentation/Livewire/⚡groups.blade.php index 2cd4263..c235be2 100644 --- a/app/Modules/Inventory/Presentation/Livewire/⚡groups.blade.php +++ b/app/Modules/Inventory/Presentation/Livewire/⚡groups.blade.php @@ -152,14 +152,14 @@ new class extends Component
        -

        {{ __('inventory.groups.title') }}

        + {{ __('inventory.groups.title') }}

        {{ __('inventory.groups.intro') }}

        {{ __('inventory.groups.back') }}

        {{ $message }}

        - +
        @@ -167,7 +167,7 @@ new class extends Component @if ($this->groups === []) -

        {{ __('inventory.groups.none') }}

        + {{ __('inventory.groups.none') }} @else
          @foreach ($this->groups as $group) diff --git a/app/Modules/Inventory/Presentation/Livewire/⚡index.blade.php b/app/Modules/Inventory/Presentation/Livewire/⚡index.blade.php index 64335bb..36333f6 100644 --- a/app/Modules/Inventory/Presentation/Livewire/⚡index.blade.php +++ b/app/Modules/Inventory/Presentation/Livewire/⚡index.blade.php @@ -93,7 +93,7 @@ new class extends Component
          -

          {{ __('inventory.index.title') }}

          + {{ __('inventory.index.title') }}

          {{ __('inventory.index.intro') }}

          @can('inventory.manage')
          @@ -127,7 +127,7 @@ new class extends Component

          @if ($this->items === []) -

          {{ __('inventory.index.none') }}

          + {{ __('inventory.index.none') }} @else @interact('column_name', $item) diff --git a/app/Modules/Inventory/Presentation/Livewire/⚡item-form.blade.php b/app/Modules/Inventory/Presentation/Livewire/⚡item-form.blade.php index d7e903f..e36844a 100644 --- a/app/Modules/Inventory/Presentation/Livewire/⚡item-form.blade.php +++ b/app/Modules/Inventory/Presentation/Livewire/⚡item-form.blade.php @@ -170,7 +170,7 @@ new class extends Component ?>
          -

          {{ $this->heading() }}

          + {{ $this->heading() }} @if ($this->groups === [])

          {{ __('inventory.form.no_groups') }} {{ __('inventory.index.groups') }}

          @@ -211,7 +211,7 @@ new class extends Component accept="image/jpeg,image/png,image/webp,image/gif" aria-describedby="item-image-hint @error('image') item-image-error @enderror" @error('image') aria-invalid="true" @enderror - class="block w-full max-w-md rounded-md text-sm text-zinc-900 file:me-3 file:min-h-9 file:cursor-pointer file:rounded-md file:border-0 file:bg-zinc-200 file:px-3 file:py-2 file:font-medium file:text-zinc-900 hover:file:bg-zinc-300 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700 dark:text-zinc-100 dark:file:bg-zinc-700 dark:file:text-zinc-100 dark:hover:file:bg-zinc-600 dark:focus-visible:outline-blue-400" + class="block w-full max-w-md rounded-md text-sm text-zinc-900 file:me-3 file:min-h-9 file:cursor-pointer file:rounded-md file:border-0 file:bg-zinc-200 file:px-3 file:py-2 file:font-medium file:text-zinc-900 hover:file:bg-zinc-300 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:focus-visible:outline-primary-300 dark:text-zinc-100 dark:file:bg-zinc-700 dark:file:text-zinc-100 dark:hover:file:bg-zinc-600" /> @error('image')

          {{ $message }}

          diff --git a/app/Modules/Inventory/Presentation/Livewire/⚡item.blade.php b/app/Modules/Inventory/Presentation/Livewire/⚡item.blade.php index 04abb78..b61f937 100644 --- a/app/Modules/Inventory/Presentation/Livewire/⚡item.blade.php +++ b/app/Modules/Inventory/Presentation/Livewire/⚡item.blade.php @@ -347,7 +347,7 @@ new class extends Component @endif

          {{ __('inventory.groups.back') }}

          -

          {{ $item->name }}

          + {{ $item->name }} @can('inventory.manage')
          @@ -360,7 +360,7 @@ new class extends Component

          {{ $message }}

          -
          +

          {{ __('inventory.item.details') }}

          @@ -406,7 +406,7 @@ new class extends Component
          @can('inventory.manage') -
          +

          {{ __('inventory.purchase.title') }}

          {{ __('inventory.purchase.intro') }}

          @@ -420,7 +420,7 @@ new class extends Component
          -
          +

          {{ __('inventory.write_off.title') }}

          @@ -432,7 +432,7 @@ new class extends Component @if ($item->isActive) @can('inventory.record-use') -
          +

          {{ __('inventory.use.title') }}

          {{ __('inventory.use.intro') }}

          @@ -451,7 +451,7 @@ new class extends Component

          {{ __('inventory.item.history') }}

          @if ($this->movements === []) -

          {{ __('inventory.item.history_none') }}

          + {{ __('inventory.item.history_none') }} @else @if (count($this->movements) >= $this::HISTORY_LIMIT)

          {{ __('inventory.item.history_limit', ['count' => $this::HISTORY_LIMIT]) }}

          diff --git a/app/Modules/Inventory/Presentation/Livewire/⚡task-materials.blade.php b/app/Modules/Inventory/Presentation/Livewire/⚡task-materials.blade.php index dafae9d..0cfe8be 100644 --- a/app/Modules/Inventory/Presentation/Livewire/⚡task-materials.blade.php +++ b/app/Modules/Inventory/Presentation/Livewire/⚡task-materials.blade.php @@ -341,7 +341,7 @@ new class extends Component
          @endforeach
          -
          + diff --git a/app/Modules/Jobs/Presentation/Livewire/⚡calendar.blade.php b/app/Modules/Jobs/Presentation/Livewire/⚡calendar.blade.php index 7c44ece..c376b43 100644 --- a/app/Modules/Jobs/Presentation/Livewire/⚡calendar.blade.php +++ b/app/Modules/Jobs/Presentation/Livewire/⚡calendar.blade.php @@ -508,11 +508,11 @@ new class extends Component
          -

          {{ __('jobs.calendar.title') }}

          + {{ __('jobs.calendar.title') }}

          {{ __('jobs.calendar.intro') }}

          -
          +
          @@ -540,7 +540,7 @@ new class extends Component

          {{ $statusMessage }}

          -
          +

          {{ __('jobs.calendar.range', ['from' => $this->shortDate($days[0]), 'to' => $this->shortDate($days[count($days) - 1])]) }}

          @@ -563,6 +563,7 @@ new class extends Component @class([ 'border-l border-zinc-200 px-1 py-2 text-center dark:border-zinc-700', 'bg-zinc-200 dark:bg-zinc-950' => $this->isDayOff($day), + 'border-b-4 border-b-primary-600 bg-primary-50 text-primary-900 dark:border-b-primary-300 dark:bg-primary-950 dark:text-primary-100' => $day === now()->format('Y-m-d'), ]) >
          $day === now()->format('Y-m-d')])>{{ $this->dayLabel($day) }}
          @@ -606,7 +607,7 @@ new class extends Component wire:key="cell-{{ $rowKey }}-{{ $day }}" data-calendar-day="{{ $day }}" data-calendar-user="{{ $row->userId ?? '' }}" - x-bind:class="isTarget('{{ $day }}', '{{ $row->userId ?? '' }}') && 'outline-2 -outline-offset-2 outline-blue-700 dark:outline-blue-300'" + x-bind:class="isTarget('{{ $day }}', '{{ $row->userId ?? '' }}') && 'outline-2 -outline-offset-2 outline-primary-600 dark:outline-primary-300'" @class([ 'min-h-12 border-l border-zinc-200 dark:border-zinc-700', 'bg-amber-100 dark:bg-amber-950' => $overloaded, @@ -651,10 +652,10 @@ new class extends Component x-on:pointerdown="begin($event, 'move', @js(['task' => $bar->task->taskId, 'job' => $bar->task->jobId, 'user' => $bar->userId, 'from' => $bar->from, 'to' => $bar->to]))" x-on:click="clickBar($el, 'bar-info-{{ $bar->key() }}', () => $wire.openDialog({{ $bar->task->taskId }}, {{ $bar->userId ?? 'null' }}))" @class([ - 'relative z-10 mx-0.5 my-1 flex min-w-0 touch-none flex-col justify-center overflow-hidden border px-2 text-left text-xs leading-tight select-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700 dark:focus-visible:outline-blue-300', + 'relative z-10 mx-0.5 my-1 flex min-w-0 touch-none flex-col justify-center overflow-hidden border px-2 text-left text-xs leading-tight select-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:focus-visible:outline-primary-300', 'cursor-grab' => $canManage, - 'border-primary-300 bg-primary-100 text-primary-950 dark:border-primary-600 dark:bg-primary-900 dark:text-white' => $bar->task->status !== TaskStatus::Done && ! $bar->late, - 'border-red-600 bg-red-100 text-red-950 dark:border-red-400 dark:bg-red-950 dark:text-white' => $bar->late, + 'border-primary-300 border-l-4 border-l-primary-600 bg-primary-100 text-primary-950 shadow-sm dark:border-primary-600 dark:border-l-primary-300 dark:bg-primary-900 dark:text-white' => $bar->task->status !== TaskStatus::Done && ! $bar->late, + 'border-red-600 border-l-4 bg-red-100 text-red-950 shadow-sm dark:border-red-400 dark:bg-red-950 dark:text-white' => $bar->late, 'border-zinc-300 bg-zinc-100 text-zinc-800 dark:border-zinc-600 dark:bg-zinc-700 dark:text-zinc-100' => $bar->task->status === TaskStatus::Done, 'rounded-l-md' => $bar->from >= $days[0], 'rounded-r-md' => $bar->to <= $days[count($days) - 1], @@ -760,7 +761,7 @@ new class extends Component id="agenda-bar-{{ $bar->key() }}" wire:click="openDialog({{ $bar->task->taskId }}, {{ $bar->userId ?? 'null' }})" @class([ - 'flex w-full flex-col gap-1 rounded-md border p-2 text-left text-sm focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700 dark:focus-visible:outline-blue-300', + 'flex w-full flex-col gap-1 rounded-md border p-2 text-left text-sm focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:focus-visible:outline-primary-300', 'border-zinc-300 dark:border-zinc-600' => ! $bar->late, 'border-red-600 border-l-4 bg-red-50 dark:border-red-400 dark:bg-red-950' => $bar->late, ]) @@ -786,11 +787,11 @@ new class extends Component
          -
          +

          {{ __('jobs.calendar.unscheduled') }}

          @if ($this->unscheduled === []) -

          {{ __('jobs.calendar.unscheduled_none') }}

          + {{ __('jobs.calendar.unscheduled_none') }} @else

          {{ __('jobs.calendar.unscheduled_intro') }}

          diff --git a/app/Modules/Jobs/Presentation/Livewire/⚡form.blade.php b/app/Modules/Jobs/Presentation/Livewire/⚡form.blade.php index c8cfc56..9c8e7ec 100644 --- a/app/Modules/Jobs/Presentation/Livewire/⚡form.blade.php +++ b/app/Modules/Jobs/Presentation/Livewire/⚡form.blade.php @@ -282,11 +282,11 @@ new class extends Component @endphp
          -

          {{ $this->heading() }}

          + {{ $this->heading() }}

          {{ $statusMessage }}

          - +
          {{ __('jobs.sections.basics') }} diff --git a/app/Modules/Jobs/Presentation/Livewire/⚡index.blade.php b/app/Modules/Jobs/Presentation/Livewire/⚡index.blade.php index a5b7851..f87efce 100644 --- a/app/Modules/Jobs/Presentation/Livewire/⚡index.blade.php +++ b/app/Modules/Jobs/Presentation/Livewire/⚡index.blade.php @@ -97,20 +97,17 @@ new class extends Component }; ?> -
          -
          -
          -

          {{ __('jobs.title') }}

          - {{ __('jobs.board.link') }} -
          + + + {{ __('jobs.board.link') }} @can('jobs.manage') -
          + -
          + @endcan -
          + @if (session('status')) @@ -120,7 +117,7 @@ new class extends Component

          {{ __('jobs.list.subcontractor_note') }}

          @endif -
          +
          @if ($this->jobs->total() === 0) -

          {{ __('jobs.list.empty') }}

          + {{ __('jobs.list.empty') }} @else @interact('column_number', $job) @@ -181,7 +178,7 @@ new class extends Component @endinteract @interact('column_status', $job) - {{ __('jobs.statuses.'.$job->status->value) }} + @endinteract @interact('column_priority', $job) @@ -193,4 +190,4 @@ new class extends Component @endinteract @endif -
          + diff --git a/app/Modules/Jobs/Presentation/Livewire/⚡quick.blade.php b/app/Modules/Jobs/Presentation/Livewire/⚡quick.blade.php index e8cb145..3d4d2ff 100644 --- a/app/Modules/Jobs/Presentation/Livewire/⚡quick.blade.php +++ b/app/Modules/Jobs/Presentation/Livewire/⚡quick.blade.php @@ -103,7 +103,7 @@ new class extends Component
          -

          {{ __('jobs.quick.title') }}

          + {{ __('jobs.quick.title') }}

          {{ __('jobs.quick.intro') }}

          @@ -124,7 +124,7 @@ new class extends Component

          {{ $statusMessage }}

          - + job) -
          +
          -

          - {{ $job->number }} {{ $job->name }} -

          +
          + + +

          + {{ $job->number }} {{ $job->name }} +

          +
          @can('jobs.manage') - + @endcan
          @@ -221,14 +226,14 @@ new class extends Component @endif -
          -
          {{ __('jobs.fields.status') }}:
          {{ __('jobs.statuses.'.$job->status->value) }}
          +
          +
          {{ __('jobs.fields.status') }}:
          {{ __('jobs.fields.priority') }}:
          {{ __('jobs.fields.due_on') }}:
          -
          +

          {{ __('jobs.sections.basics') }}

          @@ -291,7 +296,8 @@ new class extends Component @endif
          -
          +
          +

          {{ __('jobs.sections.schedule') }}

          @@ -306,7 +312,7 @@ new class extends Component
          -
          +

          {{ __('jobs.sections.members') }}

          @@ -325,6 +331,8 @@ new class extends Component
          +
          +

          {{ __('jobs.tasks.title') }}

          @@ -348,7 +356,7 @@ new class extends Component

          {{ $taskStatusMessage }}

          @if ($this->tasks === []) -

          {{ __('jobs.tasks.empty') }}

          + {{ __('jobs.tasks.empty') }} @else @php($canChangeStatus = Gate::allows('jobs.update-task-status', $job->id)) @php($canManageTasks = Gate::allows('jobs.manage-tasks', $job->id)) @@ -395,7 +403,7 @@ new class extends Component x-on:tasks-expand.window="open = $event.detail" x-on:focusin="if ($event.target.closest('[data-task-details]')) open = true" > -
          +
          status->value) { 'in_progress' => 'border-l-primary-500', 'in_review' => 'border-l-amber-500', 'done' => 'border-l-emerald-500', default => 'border-l-zinc-400' }])>

          {{ __('jobs.tasks.fields.status') }}:
          -
          {{ __('jobs.tasks.statuses.'.$task->status->value) }}
          +
          @if ($task->commentCount > 0)
          @@ -570,13 +578,13 @@ new class extends Component
          @can('expenses.record') -
          +

          {{ __('jobs.sections.expenses') }}

          {{ __('expenses.job_page.link') }}
          @endcan -
          +
          @if ($job->links === []) @@ -594,12 +602,12 @@ new class extends Component @endif
          -
          +

          {{ __('jobs.sections.instructions') }}

          {{ $job->instructions ?? __('jobs.not_set') }}

          -
          +

          -
          + diff --git a/app/Modules/Jobs/Presentation/Livewire/⚡task-checklist.blade.php b/app/Modules/Jobs/Presentation/Livewire/⚡task-checklist.blade.php index aa6f3d6..356d464 100644 --- a/app/Modules/Jobs/Presentation/Livewire/⚡task-checklist.blade.php +++ b/app/Modules/Jobs/Presentation/Livewire/⚡task-checklist.blade.php @@ -297,7 +297,7 @@ new class extends Component id="checklist-item-{{ $item->id }}" wire:change="check({{ $item->id }}, $event.target.checked)" @checked($item->done) - class="mt-0.5 size-4 shrink-0 rounded border-zinc-400 text-primary-600 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700 dark:border-zinc-500 dark:bg-zinc-800" + class="mt-0.5 size-4 shrink-0 rounded border-zinc-400 text-primary-600 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:focus-visible:outline-primary-300 dark:border-zinc-500 dark:bg-zinc-800" /> $item->done])>{{ $item->text }} diff --git a/app/Modules/Jobs/Presentation/Livewire/⚡task-form.blade.php b/app/Modules/Jobs/Presentation/Livewire/⚡task-form.blade.php index eb55a13..9954436 100644 --- a/app/Modules/Jobs/Presentation/Livewire/⚡task-form.blade.php +++ b/app/Modules/Jobs/Presentation/Livewire/⚡task-form.blade.php @@ -171,14 +171,14 @@ new class extends Component
          -

          {{ $this->heading() }}

          + {{ $this->heading() }}

          {{ __('jobs.tasks.job_label') }}: {{ $jobTitle }}

          - + {{-- TallStackUI's native select does not tie its label to the control, so aria-label names it. --}} diff --git a/app/Modules/Jobs/Presentation/Livewire/⚡task-images.blade.php b/app/Modules/Jobs/Presentation/Livewire/⚡task-images.blade.php index f8bd4f7..a573aff 100644 --- a/app/Modules/Jobs/Presentation/Livewire/⚡task-images.blade.php +++ b/app/Modules/Jobs/Presentation/Livewire/⚡task-images.blade.php @@ -351,7 +351,7 @@ new class extends Component href="{{ $fullUrl }}" target="_blank" rel="noopener" - class="block rounded-md focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700 dark:focus-visible:outline-blue-400" + class="block rounded-md focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:focus-visible:outline-primary-300" > {{ __('jobs.tasks.images.download') }} @if ($canUpload && $this->isOwn($image)) @@ -431,7 +431,7 @@ new class extends Component accept="image/jpeg,image/png,image/webp,image/gif" aria-describedby="image-new-{{ $taskId }}-hint @error('photo') image-new-{{ $taskId }}-error @enderror" @error('photo') aria-invalid="true" @enderror - class="block w-full max-w-md rounded-md text-sm text-zinc-900 file:me-3 file:min-h-9 file:cursor-pointer file:rounded-md file:border-0 file:bg-zinc-200 file:px-3 file:py-2 file:font-medium file:text-zinc-900 hover:file:bg-zinc-300 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700 dark:text-zinc-100 dark:file:bg-zinc-700 dark:file:text-zinc-100 dark:hover:file:bg-zinc-600 dark:focus-visible:outline-blue-400" + class="block w-full max-w-md rounded-md text-sm text-zinc-900 file:me-3 file:min-h-9 file:cursor-pointer file:rounded-md file:border-0 file:bg-zinc-200 file:px-3 file:py-2 file:font-medium file:text-zinc-900 hover:file:bg-zinc-300 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:focus-visible:outline-primary-300 dark:text-zinc-100 dark:file:bg-zinc-700 dark:file:text-zinc-100 dark:hover:file:bg-zinc-600" /> @error('photo')

          {{ $message }}

          diff --git a/app/Modules/Jobs/Presentation/Livewire/⚡tasks-from-template.blade.php b/app/Modules/Jobs/Presentation/Livewire/⚡tasks-from-template.blade.php index c426169..f52be9f 100644 --- a/app/Modules/Jobs/Presentation/Livewire/⚡tasks-from-template.blade.php +++ b/app/Modules/Jobs/Presentation/Livewire/⚡tasks-from-template.blade.php @@ -214,7 +214,7 @@ new class extends Component
          -

          {{ __('jobs.tasks.from_template.title') }}

          + {{ __('jobs.tasks.from_template.title') }}

          {{ __('jobs.tasks.job_label') }}: {{ $jobTitle }}

          @@ -225,7 +225,7 @@ new class extends Component @enderror -

          {{ __('jobs.tasks.from_template.none') }}

          + {{ __('jobs.tasks.from_template.none') }} @else diff --git a/app/Modules/Machines/Presentation/Livewire/⚡console-picker.blade.php b/app/Modules/Machines/Presentation/Livewire/⚡console-picker.blade.php index 3edfcfb..d36e47b 100644 --- a/app/Modules/Machines/Presentation/Livewire/⚡console-picker.blade.php +++ b/app/Modules/Machines/Presentation/Livewire/⚡console-picker.blade.php @@ -36,10 +36,10 @@ new #[Layout('layouts.console')] class extends Component ?>
          -

          {{ __('machines.console_picker.title') }}

          + {{ __('machines.console_picker.title') }} @if ($this->machines === []) -

          {{ __('machines.console_picker.empty') }}

          + {{ __('machines.console_picker.empty') }} @else

          {{ __('machines.console_picker.intro') }}

          @@ -48,7 +48,7 @@ new #[Layout('layouts.console')] class extends Component
        • {{ $machine->name }} @if ($machine->serviceUnitNames !== []) diff --git a/app/Modules/Machines/Presentation/Livewire/⚡console.blade.php b/app/Modules/Machines/Presentation/Livewire/⚡console.blade.php index a11e46c..562d42b 100644 --- a/app/Modules/Machines/Presentation/Livewire/⚡console.blade.php +++ b/app/Modules/Machines/Presentation/Livewire/⚡console.blade.php @@ -620,7 +620,7 @@ new #[Layout('layouts.console')] class extends Component ?> @php - $touch = 'inline-flex min-h-11 min-w-11 items-center justify-center gap-2 rounded-lg px-4 py-2 font-medium focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700 dark:focus-visible:outline-blue-400'; + $touch = 'inline-flex min-h-11 min-w-11 items-center justify-center gap-2 rounded-lg px-4 py-2 font-medium focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:focus-visible:outline-primary-300'; $primary = $touch.' bg-primary-600 text-white hover:bg-primary-700'; $secondary = $touch.' border border-zinc-500 bg-white text-zinc-900 hover:bg-zinc-100 dark:border-zinc-400 dark:bg-zinc-900 dark:text-zinc-100 dark:hover:bg-zinc-700'; $machine = $this->machine; @@ -628,9 +628,9 @@ new #[Layout('layouts.console')] class extends Component @endphp
          -
          +
          -

          {{ $machine->name }}

          + {{ $machine->name }}

          {{ __('machines.console.user', ['name' => auth()->user()?->name]) }}

          @if ($lateMaintenance !== []) -
          +
          @foreach ($lateMaintenance as $late)

          -
          +

          {{ $nextDay ? __('machines.console.next_list', ['date' => $this->dateLabel($this->day())]) : __('machines.console.today_list') }}

          @@ -672,7 +672,7 @@ new #[Layout('layouts.console')] class extends Component
          @if ($this->rows === []) -

          {{ __('machines.show.none') }}

          + {{ __('machines.show.none') }} @else
            @foreach ($this->rows as $row) @@ -827,7 +827,7 @@ new #[Layout('layouts.console')] class extends Component
          @if ($machine->counters !== [] || $this->maintenance !== []) -
          +

          {{ __('machines.console.counters_and_maintenance') }}

          diff --git a/app/Modules/Machines/Presentation/Livewire/⚡form.blade.php b/app/Modules/Machines/Presentation/Livewire/⚡form.blade.php index 4d34b78..f5ec339 100644 --- a/app/Modules/Machines/Presentation/Livewire/⚡form.blade.php +++ b/app/Modules/Machines/Presentation/Livewire/⚡form.blade.php @@ -243,11 +243,11 @@ new class extends Component ?>
          -

          {{ $this->heading() }}

          + {{ $this->heading() }}

          {{ $message }}

          - + {{-- TallStackUI's native select does not tie its label to the control, so aria-label names it. --}} diff --git a/app/Modules/Machines/Presentation/Livewire/⚡index.blade.php b/app/Modules/Machines/Presentation/Livewire/⚡index.blade.php index db5563c..ad5916c 100644 --- a/app/Modules/Machines/Presentation/Livewire/⚡index.blade.php +++ b/app/Modules/Machines/Presentation/Livewire/⚡index.blade.php @@ -86,7 +86,7 @@ new class extends Component
          -

          {{ __('machines.index.title') }}

          + {{ __('machines.index.title') }}

          {{ __('machines.index.intro') }}

          @can('machines.manage')

          @@ -109,7 +109,7 @@ new class extends Component
          @forelse ($this->grouped() as $unitName => $machines) -
          +

          {{ $unitName }}

            @foreach ($machines as $machine) @@ -134,6 +134,6 @@ new class extends Component
          @empty -

          {{ __('machines.index.none') }}

          + {{ __('machines.index.none') }} @endforelse
          diff --git a/app/Modules/Machines/Presentation/Livewire/⚡maintenance-item-form.blade.php b/app/Modules/Machines/Presentation/Livewire/⚡maintenance-item-form.blade.php index 6f5a611..807138a 100644 --- a/app/Modules/Machines/Presentation/Livewire/⚡maintenance-item-form.blade.php +++ b/app/Modules/Machines/Presentation/Livewire/⚡maintenance-item-form.blade.php @@ -183,13 +183,13 @@ new class extends Component
          -

          {{ $this->heading() }}

          + {{ $this->heading() }}

          {{ $this->machine->name }}

          {{ $message }}

          - +
          diff --git a/app/Modules/Machines/Presentation/Livewire/⚡maintenance.blade.php b/app/Modules/Machines/Presentation/Livewire/⚡maintenance.blade.php index e2d83ea..7aea6f1 100644 --- a/app/Modules/Machines/Presentation/Livewire/⚡maintenance.blade.php +++ b/app/Modules/Machines/Presentation/Livewire/⚡maintenance.blade.php @@ -211,7 +211,7 @@ new class extends Component

          {{ $message }}

          @if ($this->machine->counters !== []) -
          +

          {{ __('machines.maintenance.counters') }}

            @foreach ($this->machine->counters as $counter) @@ -247,14 +247,14 @@ new class extends Component @php($hasMaintenance = $this->machine->counters !== [] || $this->items !== []) @if ($hasMaintenance || auth()->user()?->can('machines.manage')) -
            +

            {{ __('machines.maintenance.items') }}

            @can('machines.manage')

            @endcan @if ($this->items === []) -

            {{ __('machines.maintenance.none') }}

            + {{ __('machines.maintenance.none') }} @else
              @foreach ($this->items as $item) @@ -308,7 +308,7 @@ new class extends Component @endif @if ($hasMaintenance) -
              +

              {{ __('machines.maintenance.history') }}

              {{-- TallStackUI's native select does not tie its label to the control, so aria-label names it. --}} diff --git a/app/Modules/Machines/Presentation/Livewire/⚡production-process.blade.php b/app/Modules/Machines/Presentation/Livewire/⚡production-process.blade.php index 53fcca9..04cb04f 100644 --- a/app/Modules/Machines/Presentation/Livewire/⚡production-process.blade.php +++ b/app/Modules/Machines/Presentation/Livewire/⚡production-process.blade.php @@ -209,7 +209,7 @@ new class extends Component
              @if ($this->isAvailable()) -
              +

              {{ __('machines.process.title') }}

              {{ __('machines.process.intro') }}

              diff --git a/app/Modules/Machines/Presentation/Livewire/⚡show.blade.php b/app/Modules/Machines/Presentation/Livewire/⚡show.blade.php index 1be90d1..d733f59 100644 --- a/app/Modules/Machines/Presentation/Livewire/⚡show.blade.php +++ b/app/Modules/Machines/Presentation/Livewire/⚡show.blade.php @@ -243,7 +243,7 @@ new class extends Component

              {{ __('machines.show.back') }}

              -

              {{ $machine->name }}

              + {{ $machine->name }}

              {{ __('machines.types.'.$machine->type->value) }} · {{ __('machines.show.units', ['units' => implode(', ', $machine->serviceUnitNames)]) }} @@ -268,7 +268,7 @@ new class extends Component

              {{ $message }}

              -
              +

              {{ __('machines.show.work_list') }}

    - + diff --git a/app/Modules/Reports/Presentation/Livewire/⚡profitability.blade.php b/app/Modules/Reports/Presentation/Livewire/⚡profitability.blade.php index 0aee95e..b815d2e 100644 --- a/app/Modules/Reports/Presentation/Livewire/⚡profitability.blade.php +++ b/app/Modules/Reports/Presentation/Livewire/⚡profitability.blade.php @@ -75,7 +75,7 @@ new class extends Component
    -

    {{ __('reports.profitability.title') }}

    + {{ __('reports.profitability.title') }}

    {{ __('reports.profitability.intro') }}

    @@ -92,7 +92,7 @@ new class extends Component
    @if ($report->hourlyCostCents === null) -
    +
    {{ __('reports.hours.table', ['period' => $this->periodLabel()]) }}
    {{ __('reports.hours.person') }} {{ __('reports.hours.total') }} {{ __('reports.hours.customer') }}
    - + @@ -156,11 +156,11 @@ new class extends Component

    {{ __('reports.profitability.by_job') }}

    -
    +
    {{ __('reports.profitability.units_table', ['period' => $this->periodLabel()]) }}
    {{ __('reports.profitability.service_unit') }} {{ __('reports.profitability.jobs') }} {{ __('reports.profitability.hours') }}
    - + diff --git a/app/Modules/Reports/Presentation/Livewire/⚡reimbursements.blade.php b/app/Modules/Reports/Presentation/Livewire/⚡reimbursements.blade.php index daf1ea6..51fb1a8 100644 --- a/app/Modules/Reports/Presentation/Livewire/⚡reimbursements.blade.php +++ b/app/Modules/Reports/Presentation/Livewire/⚡reimbursements.blade.php @@ -56,7 +56,7 @@ new class extends Component
    -

    {{ __('reports.reimbursements.title') }}

    + {{ __('reports.reimbursements.title') }}

    {{ __('reports.reimbursements.intro') }}

    @@ -74,7 +74,7 @@ new class extends Component
    @if ($report->people === []) -

    {{ __('reports.reimbursements.none') }}

    + {{ __('reports.reimbursements.none') }} @else

    {{ __('reports.reimbursements.grand_total', ['amount' => $this->money($report->costCents), 'km' => $this->kilometers($report->kilometerTenths)]) }} @@ -84,11 +84,11 @@ new class extends Component

    {{ $person->name }}

    -
    +
    {{ __('reports.profitability.jobs_table', ['period' => $this->periodLabel()]) }}
    {{ __('reports.profitability.job') }} {{ __('reports.profitability.hours') }} {{ __('reports.profitability.billed_hours') }}
    - + diff --git a/app/Modules/Reports/Presentation/Livewire/⚡sales.blade.php b/app/Modules/Reports/Presentation/Livewire/⚡sales.blade.php index 6129588..cc6fc73 100644 --- a/app/Modules/Reports/Presentation/Livewire/⚡sales.blade.php +++ b/app/Modules/Reports/Presentation/Livewire/⚡sales.blade.php @@ -55,7 +55,7 @@ new class extends Component ?>
    -

    {{ __('reports.sales.title') }}

    + {{ __('reports.sales.title') }} @@ -68,7 +68,7 @@ new class extends Component
    @if ($report->days === []) -

    {{ __('reports.sales.none') }}

    + {{ __('reports.sales.none') }} @else @if ($report->openDays > 0)

    @@ -179,11 +179,11 @@ new class extends Component

    {{ __('reports.reimbursements.table', ['name' => $person->name, 'period' => $this->periodLabel()]) }}
    {{ __('reports.reimbursements.day') }} {{ __('reports.reimbursements.category') }} {{ __('reports.reimbursements.what') }}
    -
    +
    - + diff --git a/app/Modules/Reports/Presentation/Livewire/⚡stock-usage.blade.php b/app/Modules/Reports/Presentation/Livewire/⚡stock-usage.blade.php index a0fb643..3a3bf11 100644 --- a/app/Modules/Reports/Presentation/Livewire/⚡stock-usage.blade.php +++ b/app/Modules/Reports/Presentation/Livewire/⚡stock-usage.blade.php @@ -68,7 +68,7 @@ new class extends Component
    -

    {{ __('reports.stock_usage.title') }}

    + {{ __('reports.stock_usage.title') }}

    {{ __('reports.stock_usage.intro') }}

    @@ -83,17 +83,17 @@ new class extends Component
    @if ($report->items === []) -

    {{ __('reports.stock_usage.empty') }}

    + {{ __('reports.stock_usage.empty') }} @else

    {{ __('reports.stock_usage.total', ['amount' => $this->signedMoney($report->total->totalCents())]) }}

    {{ __('reports.stock_usage.by_item') }}

    -
    +
    {{ __('reports.sales.by_day') }}
    {{ __('reports.sales.day') }} {{ __('reports.sales.count') }} {{ __('reports.sales.cash') }}
    - + @@ -121,11 +121,11 @@ new class extends Component @foreach ($this->summaries($report) as $summary)

    {{ __('reports.stock_usage.by_'.$summary['key']) }}

    -
    +
    {{ __('reports.stock_usage.by_item') }}, {{ $this->periodLabel() }}
    {{ __('reports.stock_usage.item') }} {{ __('reports.stock_usage.group') }} {{ __('reports.stock_usage.used') }}
    - + diff --git a/app/Modules/Reports/Presentation/Livewire/⚡stock-value.blade.php b/app/Modules/Reports/Presentation/Livewire/⚡stock-value.blade.php index 15d290d..f5ef292 100644 --- a/app/Modules/Reports/Presentation/Livewire/⚡stock-value.blade.php +++ b/app/Modules/Reports/Presentation/Livewire/⚡stock-value.blade.php @@ -75,7 +75,7 @@ new class extends Component
    -

    {{ __('reports.stock_value.title') }}

    + {{ __('reports.stock_value.title') }}

    {{ __('reports.stock_value.intro') }}

    @@ -94,7 +94,7 @@ new class extends Component
    @if ($report->toOrder !== []) -
    +

    {{ __('reports.stock_usage.by_'.$summary['key']) }}, {{ $this->periodLabel() }}
    {{ __('reports.stock_usage.'.$summary['key'].'_column') }} {{ __('reports.stock_usage.used_value') }} {{ __('reports.stock_usage.written_off_value') }}
    - + diff --git a/app/Modules/Reports/Presentation/Livewire/⚡unbilled.blade.php b/app/Modules/Reports/Presentation/Livewire/⚡unbilled.blade.php index e5065fe..17878c2 100644 --- a/app/Modules/Reports/Presentation/Livewire/⚡unbilled.blade.php +++ b/app/Modules/Reports/Presentation/Livewire/⚡unbilled.blade.php @@ -85,7 +85,7 @@ new class extends Component
    -

    {{ __('reports.unbilled.title') }}

    + {{ __('reports.unbilled.title') }}

    {{ __('reports.unbilled.intro') }}

    @@ -117,13 +117,13 @@ new class extends Component
    @if ($report->jobs === []) -

    {{ __('reports.unbilled.none') }}

    + {{ __('reports.unbilled.none') }} @else -
    +
    {{ __('reports.stock_value.table', ['date' => $this->dateLabel($day)]) }}
    {{ __('reports.stock_usage.item') }} {{ __('reports.stock_usage.group') }} {{ __('inventory.columns.balance') }}
    - + @@ -156,7 +156,7 @@ new class extends Component
    {{ __('reports.unbilled.table', ['day' => $this->dateLabel($day)]) }}
    {{ __('reports.unbilled.job') }} {{ __('reports.unbilled.status') }} {{ __('reports.unbilled.oldest') }} - {{ __('jobs.statuses.'.$row->job->status) }} + @if ($row->job->paymentBasis !== null) {{ __('jobs.payment_bases.'.$row->job->paymentBasis) }} @endif diff --git a/app/Modules/Sales/Presentation/Livewire/⚡index.blade.php b/app/Modules/Sales/Presentation/Livewire/⚡index.blade.php index dd9dc67..e4a4f28 100644 --- a/app/Modules/Sales/Presentation/Livewire/⚡index.blade.php +++ b/app/Modules/Sales/Presentation/Livewire/⚡index.blade.php @@ -289,7 +289,7 @@ new class extends Component
    -

    {{ __('sales.index.title') }}

    + {{ __('sales.index.title') }}

    @@ -304,7 +304,7 @@ new class extends Component

    {{ $statusMessage }}

    @if ($this->unclosedDays !== []) -
    +

    {{ __('sales.index.none') }}

    + {{ __('sales.index.none') }} @else @interact('column_time', $sale) @@ -463,7 +463,7 @@ new class extends Component href="{{ route('sales.receipt', $sale->id) }}" target="_blank" rel="noopener" - class="mr-2 inline-flex items-center gap-1 text-sm font-medium underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700" + class="mr-2 inline-flex items-center gap-1 text-sm font-medium underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:focus-visible:outline-primary-300" aria-label="{{ __('sales.receipt.open_named', ['number' => $sale->id]) }}" >
    @if ($this->orders === []) -

    {{ __('sales.orders.none') }}

    + {{ __('sales.orders.none') }} @else
      @foreach ($this->orders as $order) diff --git a/app/Modules/Sales/Presentation/Livewire/⚡sell.blade.php b/app/Modules/Sales/Presentation/Livewire/⚡sell.blade.php index cd66f12..a15bbeb 100644 --- a/app/Modules/Sales/Presentation/Livewire/⚡sell.blade.php +++ b/app/Modules/Sales/Presentation/Livewire/⚡sell.blade.php @@ -477,7 +477,7 @@ new class extends Component
      -

      {{ __('sales.sell.title') }}

      + {{ __('sales.sell.title') }}

      {{ __('sales.sell.intro') }}

      {{ __('sales.sell.to_list') }} @@ -503,7 +503,7 @@ new class extends Component href="{{ route('sales.receipt', $savedSaleId) }}" target="_blank" rel="noopener" - class="inline-flex items-center gap-1 font-medium underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700" + class="inline-flex items-center gap-1 font-medium underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:focus-visible:outline-primary-300" >

      {{ __('sales.sell.no_products') }}

      + {{ __('sales.sell.no_products') }} @else -
      +

      {{ __('sales.sell.products') }}

      {{ __('sales.sell.products_help') }}

      @@ -534,11 +534,11 @@ new class extends Component
    -
    +

    {{ __('sales.sell.cart') }}

    {{ $cartMessage }}

    @@ -590,7 +590,7 @@ new class extends Component wire:change="setQuantity({{ $product->id }}, $event.target.value)" wire:keydown.enter.prevent="setQuantity({{ $product->id }}, $event.target.value)" aria-label="{{ __('sales.sell.quantity_named', ['product' => $product->name]) }}" - class="h-9 w-14 rounded-md border border-zinc-500 bg-white px-2 text-center font-medium text-zinc-900 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700 dark:border-zinc-400 dark:bg-zinc-900 dark:text-zinc-100" + class="h-9 w-14 rounded-md border border-zinc-500 bg-white px-2 text-center font-medium text-zinc-900 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:focus-visible:outline-primary-300 dark:border-zinc-400 dark:bg-zinc-900 dark:text-zinc-100" /> @@ -600,14 +600,14 @@ new class extends Component @endif -

    +

    {{ __('sales.sell.total', ['total' => $this->money($this->totalCents)]) }}

    @php($isOrder = $this->isOrder() || $editingOrderId !== null) - + @if ($editingOrderId !== null)
    -
    +

    {{ __('holidays.add_heading') }}

    diff --git a/app/Modules/TimeTracking/Presentation/Livewire/⚡approvals.blade.php b/app/Modules/TimeTracking/Presentation/Livewire/⚡approvals.blade.php index 4818918..1874fc9 100644 --- a/app/Modules/TimeTracking/Presentation/Livewire/⚡approvals.blade.php +++ b/app/Modules/TimeTracking/Presentation/Livewire/⚡approvals.blade.php @@ -128,7 +128,7 @@ new class extends Component
    -

    {{ __('time.approvals.title') }}

    + {{ __('time.approvals.title') }}

    {{ __('time.approvals.intro') }}

    @@ -148,7 +148,7 @@ new class extends Component

    {{ __('time.approvals.pending') }}

    @if ($this->pending === []) -

    {{ __('time.approvals.none_pending') }}

    + {{ __('time.approvals.none_pending') }} @else @interact('column_person', $week) @@ -191,7 +191,7 @@ new class extends Component

    {{ __('time.approvals.approved') }}

    @if ($this->approved === []) -

    {{ __('time.approvals.none_approved') }}

    + {{ __('time.approvals.none_approved') }} @else @interact('column_person', $week) diff --git a/app/Modules/TimeTracking/Presentation/Livewire/⚡task.blade.php b/app/Modules/TimeTracking/Presentation/Livewire/⚡task.blade.php index 7852b26..9e60701 100644 --- a/app/Modules/TimeTracking/Presentation/Livewire/⚡task.blade.php +++ b/app/Modules/TimeTracking/Presentation/Livewire/⚡task.blade.php @@ -213,7 +213,7 @@ new class extends Component
    -

    {{ __('time.task_page.title', ['task' => $task->taskTitle]) }}

    + {{ __('time.task_page.title', ['task' => $task->taskTitle]) }}
    {{ __('time.task_page.job') }}
    @@ -243,7 +243,7 @@ new class extends Component @endif -
    +

    {{ __('time.task_page.own_entries') }}

    @if ($this->entries === []) diff --git a/app/Modules/TimeTracking/Presentation/Livewire/⚡week.blade.php b/app/Modules/TimeTracking/Presentation/Livewire/⚡week.blade.php index 449b5a7..4c15aac 100644 --- a/app/Modules/TimeTracking/Presentation/Livewire/⚡week.blade.php +++ b/app/Modules/TimeTracking/Presentation/Livewire/⚡week.blade.php @@ -344,7 +344,7 @@ new class extends Component
    -

    {{ $this->heading() }}

    + {{ $this->heading() }} @if ($this->isReadOnly())

    {{ __('time.other_intro') }}

    {{ __('time.approval.back_to_list') }} @@ -366,14 +366,14 @@ new class extends Component @if ($sheet->rows === []) -

    {{ __('time.no_rows') }}

    + {{ __('time.no_rows') }} @else {{-- Desktop: the whole week as an input grid (a form, so a native table rather than ). --}} -