diff --git a/app/Modules/Billing/Infrastructure/JobsForBilling.php b/app/Modules/Billing/Infrastructure/JobsForBilling.php index 8b59d94..39c55be 100644 --- a/app/Modules/Billing/Infrastructure/JobsForBilling.php +++ b/app/Modules/Billing/Infrastructure/JobsForBilling.php @@ -21,8 +21,8 @@ use App\Modules\Jobs\Domain\Enums\PaymentBasis; */ class JobsForBilling implements BillingJobs { - /** Statuses in which a monthly fee job is billed: running or done. */ - private const array MONTHLY_STATUSES = [JobStatus::Order, JobStatus::InProduction, JobStatus::OnHold, JobStatus::Done]; + /** Statuses in which a monthly fee job is billed: running, ongoing or done. */ + private const array MONTHLY_STATUSES = [JobStatus::Order, JobStatus::InProduction, JobStatus::OnHold, JobStatus::Done, JobStatus::Ongoing]; public function __construct( private CustomerJobQueries $jobs, diff --git a/app/Modules/Billing/Presentation/Livewire/⚡export.blade.php b/app/Modules/Billing/Presentation/Livewire/⚡export.blade.php index f35986a..17d371d 100644 --- a/app/Modules/Billing/Presentation/Livewire/⚡export.blade.php +++ b/app/Modules/Billing/Presentation/Livewire/⚡export.blade.php @@ -355,7 +355,7 @@ new class extends Component @error('period') aria-invalid="true" @enderror class="w-full rounded-md border border-zinc-400 bg-white px-2 py-1.5 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 dark:[color-scheme:dark]" /> -

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

+

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

@error('period')

{{ $message }}

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

{{ __('billing.jobs.billable_help') }}

+

{{ __('billing.jobs.billable_help') }}

@endif @php($expenseLines = $this->linesOfKind($job, LineKind::Expense)) diff --git a/app/Modules/Catalog/Presentation/Livewire/⚡index.blade.php b/app/Modules/Catalog/Presentation/Livewire/⚡index.blade.php index 4d66a7f..5839f09 100644 --- a/app/Modules/Catalog/Presentation/Livewire/⚡index.blade.php +++ b/app/Modules/Catalog/Presentation/Livewire/⚡index.blade.php @@ -120,7 +120,7 @@ new class extends Component
-

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

+

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

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

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

@@ -159,11 +159,11 @@ new class extends Component @if ($unit->isShared) -

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

+

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

@endif @if ($unit->usesStock) -

+

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

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

-

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

+

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

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

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

-

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

+

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

@foreach ($this->hourlyRates as $group) @@ -173,7 +173,7 @@ new class extends Component @if ($row->serviceName !== null) - {{ $row->serviceName }}: + {{ $row->serviceName }}: @endif {{ $row->name }} @@ -226,6 +226,6 @@ new class extends Component

@else -

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

+

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

@endif diff --git a/app/Modules/Catalog/Presentation/Livewire/⚡prices.blade.php b/app/Modules/Catalog/Presentation/Livewire/⚡prices.blade.php index 770d7d4..a878dc8 100644 --- a/app/Modules/Catalog/Presentation/Livewire/⚡prices.blade.php +++ b/app/Modules/Catalog/Presentation/Livewire/⚡prices.blade.php @@ -347,7 +347,7 @@ new class extends Component
{{ __('catalog.prices.title') }} -

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

+

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

@if (session('status')) @@ -364,7 +364,7 @@ new class extends Component

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

-

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

+

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

@foreach ($this->hourlyRates as $group) @@ -388,7 +388,7 @@ new class extends Component @if ($row->serviceName !== null) - {{ $row->serviceName }}: + {{ $row->serviceName }}: @endif {{ $row->name }} @unless ($row->isActive) @@ -424,7 +424,7 @@ new class extends Component

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

-

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

+

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

@if ($this->products === []) {{ __('catalog.products.none') }} @@ -444,14 +444,14 @@ new class extends Component @interact('column_net', $product) {{ $this->money($product->netCents) }} @unless ($product->priceIncludesVat) - {{ __('catalog.products.entered') }} + {{ __('catalog.products.entered') }} @endunless @endinteract @interact('column_gross', $product) {{ $this->money($product->grossCents) }} @if ($product->priceIncludesVat) - {{ __('catalog.products.entered') }} + {{ __('catalog.products.entered') }} @endif @endinteract @@ -467,7 +467,7 @@ new class extends Component @if ($product->durationQuarters > 0) {{ __('catalog.products.duration_value', ['hours' => $this->duration($product->durationQuarters)]) }} @if ($product->workTypeName !== null) - {{ $product->workTypeName }} + {{ $product->workTypeName }} @endif @else {{ __('catalog.products.no_duration') }} @@ -492,7 +492,7 @@ new class extends Component

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

-

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

+

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

@interact('column_name', $vatRate) diff --git a/app/Modules/Catalog/Presentation/Livewire/⚡product-form.blade.php b/app/Modules/Catalog/Presentation/Livewire/⚡product-form.blade.php index fb8e4f8..3b39fb2 100644 --- a/app/Modules/Catalog/Presentation/Livewire/⚡product-form.blade.php +++ b/app/Modules/Catalog/Presentation/Livewire/⚡product-form.blade.php @@ -193,7 +193,7 @@ new class extends Component
-

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

+

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

diff --git a/app/Modules/Catalog/Presentation/Livewire/⚡service-form.blade.php b/app/Modules/Catalog/Presentation/Livewire/⚡service-form.blade.php index dd14fe9..0c74926 100644 --- a/app/Modules/Catalog/Presentation/Livewire/⚡service-form.blade.php +++ b/app/Modules/Catalog/Presentation/Livewire/⚡service-form.blade.php @@ -89,7 +89,7 @@ new class extends Component
{{ $this->heading() }} @if ($unitName !== '') -

{{ __('catalog.fields.service_unit') }}: {{ $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 fb4c4bf..9b4a304 100644 --- a/app/Modules/Catalog/Presentation/Livewire/⚡service-unit-form.blade.php +++ b/app/Modules/Catalog/Presentation/Livewire/⚡service-unit-form.blade.php @@ -99,7 +99,7 @@ new class extends Component @unless ($isShared)
-

{{ __('catalog.service_units.uses_stock_hint') }}

+

{{ __('catalog.service_units.uses_stock_hint') }}

@endunless 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 aa58526..8e60077 100644 --- a/app/Modules/Catalog/Presentation/Livewire/⚡vat-rate-form.blade.php +++ b/app/Modules/Catalog/Presentation/Livewire/⚡vat-rate-form.blade.php @@ -106,7 +106,7 @@ new class extends Component {{ $this->heading() }} @if ($vatRateId !== null) -

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

+

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

@endif
@@ -126,7 +126,7 @@ new class extends Component @else
-

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

+

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

@endif diff --git a/app/Modules/Catalog/Presentation/Livewire/⚡work-type-form.blade.php b/app/Modules/Catalog/Presentation/Livewire/⚡work-type-form.blade.php index 1a8f660..e470cef 100644 --- a/app/Modules/Catalog/Presentation/Livewire/⚡work-type-form.blade.php +++ b/app/Modules/Catalog/Presentation/Livewire/⚡work-type-form.blade.php @@ -108,7 +108,7 @@ new class extends Component
{{ $this->heading() }} @if ($unitName !== '') -

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

+

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

@endif
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 5cef2d9..f09d65a 100644 --- a/app/Modules/Catalog/Presentation/Livewire/⚡workflow-template-form.blade.php +++ b/app/Modules/Catalog/Presentation/Livewire/⚡workflow-template-form.blade.php @@ -337,7 +337,7 @@ new class extends Component

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

-

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

+

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

{{ $statusMessage }}

@@ -388,7 +388,7 @@ new class extends Component @if ($this->stepUsesStock($index) || ($step['materials'] ?? []) !== [])
{{ __('catalog.workflows.materials') }} -

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

+

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

@foreach ($step['materials'] ?? [] as $materialIndex => $material)
diff --git a/app/Modules/Catalog/Presentation/Livewire/⚡workflow-templates.blade.php b/app/Modules/Catalog/Presentation/Livewire/⚡workflow-templates.blade.php index 762fe25..92886a9 100644 --- a/app/Modules/Catalog/Presentation/Livewire/⚡workflow-templates.blade.php +++ b/app/Modules/Catalog/Presentation/Livewire/⚡workflow-templates.blade.php @@ -88,7 +88,7 @@ new class extends Component
-

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

+

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

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

diff --git a/app/Modules/Customers/Application/Contracts/CustomerQueries.php b/app/Modules/Customers/Application/Contracts/CustomerQueries.php index 881021b..179f575 100644 --- a/app/Modules/Customers/Application/Contracts/CustomerQueries.php +++ b/app/Modules/Customers/Application/Contracts/CustomerQueries.php @@ -25,6 +25,14 @@ interface CustomerQueries */ public function namesByIds(array $ids): array; + /** + * Card header colours (#rrggbb, null = default colour) by customer id. + * + * @param list $ids + * @return array + */ + public function headerColorsByIds(array $ids): array; + /** * The company's own internal customer, whose jobs hold internal work * and the yearly quick sale job. diff --git a/app/Modules/Customers/Application/DTOs/CustomerSummary.php b/app/Modules/Customers/Application/DTOs/CustomerSummary.php index 42f6f6a..b979569 100644 --- a/app/Modules/Customers/Application/DTOs/CustomerSummary.php +++ b/app/Modules/Customers/Application/DTOs/CustomerSummary.php @@ -22,6 +22,7 @@ final readonly class CustomerSummary public ?string $businessId, public ?string $personalIdentityCodeMasked = null, public bool $isInternal = false, + public ?string $headerColor = null, ) {} public function hasPersonalIdentityCode(): bool diff --git a/app/Modules/Customers/Application/UseCases/ChangeCustomerHeaderColor.php b/app/Modules/Customers/Application/UseCases/ChangeCustomerHeaderColor.php new file mode 100644 index 0000000..5bee084 --- /dev/null +++ b/app/Modules/Customers/Application/UseCases/ChangeCustomerHeaderColor.php @@ -0,0 +1,40 @@ +transactions->run(function () use ($customerId, $headerColor): void { + $customer = $this->customers->findById($customerId) ?? throw new CustomerNotFound($customerId); + + $customer->changeHeaderColor($headerColor); + + $this->customers->save($customer); + }); + } +} diff --git a/app/Modules/Customers/Domain/Entities/Customer.php b/app/Modules/Customers/Domain/Entities/Customer.php index 6e74444..2c2f5f4 100644 --- a/app/Modules/Customers/Domain/Entities/Customer.php +++ b/app/Modules/Customers/Domain/Entities/Customer.php @@ -11,6 +11,7 @@ use App\Modules\Customers\Domain\Exceptions\InternalCustomerMustBeCompany; use App\Modules\Customers\Domain\ValueObjects\CustomerName; use App\Modules\Customers\Domain\ValueObjects\PersonalIdentityCode; use App\Modules\Shared\Domain\ValueObjects\BusinessId; +use App\Modules\Shared\Domain\ValueObjects\HexColor; /** * A customer of the company: a business or a private consumer. @@ -27,6 +28,7 @@ final class Customer private ?BusinessId $businessId, private ?PersonalIdentityCode $personalIdentityCode, private bool $internal = false, + private ?HexColor $headerColor = null, ) { self::ensureIdentifiersFitType($type, $businessId, $personalIdentityCode); self::ensureInternalIsCompany($internal, $type); @@ -54,8 +56,9 @@ final class Customer ?BusinessId $businessId, ?PersonalIdentityCode $personalIdentityCode = null, bool $internal = false, + ?HexColor $headerColor = null, ): self { - return new self($id, $name, $type, $businessId, $personalIdentityCode, $internal); + return new self($id, $name, $type, $businessId, $personalIdentityCode, $internal, $headerColor); } /** @@ -81,6 +84,20 @@ final class Customer $this->personalIdentityCode = $personalIdentityCode; } + /** + * The colour of the customer's card headers on the Kanban board and of + * its rows on the time sheet. Null uses the default colour. + */ + public function changeHeaderColor(?HexColor $color): void + { + $this->headerColor = $color; + } + + public function headerColor(): ?HexColor + { + return $this->headerColor; + } + public function removePersonalIdentityCode(): void { $this->personalIdentityCode = null; diff --git a/app/Modules/Customers/Infrastructure/Persistence/Eloquent/CustomerModel.php b/app/Modules/Customers/Infrastructure/Persistence/Eloquent/CustomerModel.php index 53c8895..32b3c9a 100644 --- a/app/Modules/Customers/Infrastructure/Persistence/Eloquent/CustomerModel.php +++ b/app/Modules/Customers/Infrastructure/Persistence/Eloquent/CustomerModel.php @@ -23,9 +23,10 @@ use Illuminate\Database\Eloquent\Model; * @property string|null $personal_identity_code Decrypted by the cast; sensitive. * @property string|null $personal_identity_code_hash * @property bool $is_internal + * @property string|null $header_color #rrggbb */ #[Table('customers')] -#[Fillable(['name', 'type', 'business_id', 'personal_identity_code', 'personal_identity_code_hash'])] +#[Fillable(['name', 'type', 'business_id', 'personal_identity_code', 'personal_identity_code_hash', 'header_color'])] #[Hidden(['personal_identity_code', 'personal_identity_code_hash'])] #[UseFactory(CustomerFactory::class)] class CustomerModel extends Model diff --git a/app/Modules/Customers/Infrastructure/Persistence/Repositories/EloquentCustomerQueries.php b/app/Modules/Customers/Infrastructure/Persistence/Repositories/EloquentCustomerQueries.php index 8f72c3f..2b68cbf 100644 --- a/app/Modules/Customers/Infrastructure/Persistence/Repositories/EloquentCustomerQueries.php +++ b/app/Modules/Customers/Infrastructure/Persistence/Repositories/EloquentCustomerQueries.php @@ -27,6 +27,11 @@ class EloquentCustomerQueries implements CustomerQueries return $ids === [] ? [] : CustomerModel::query()->whereIn('id', $ids)->pluck('name', 'id')->all(); } + public function headerColorsByIds(array $ids): array + { + return $ids === [] ? [] : CustomerModel::query()->whereIn('id', $ids)->pluck('header_color', 'id')->all(); + } + public function internalCustomerId(): ?int { $id = CustomerModel::query()->where('is_internal', true)->orderBy('id')->value('id'); @@ -118,7 +123,7 @@ class EloquentCustomerQueries implements CustomerQueries ? null : (new PersonalIdentityCode($model->personal_identity_code))->masked(); - return new CustomerSummary($model->id, $model->name, $model->type, $model->business_id, $masked, (bool) $model->is_internal); + return new CustomerSummary($model->id, $model->name, $model->type, $model->business_id, $masked, (bool) $model->is_internal, $model->header_color); } private function toContactSummary(CustomerContactModel $model): ContactSummary diff --git a/app/Modules/Customers/Infrastructure/Persistence/Repositories/EloquentCustomerRepository.php b/app/Modules/Customers/Infrastructure/Persistence/Repositories/EloquentCustomerRepository.php index bc214de..bfdf694 100644 --- a/app/Modules/Customers/Infrastructure/Persistence/Repositories/EloquentCustomerRepository.php +++ b/app/Modules/Customers/Infrastructure/Persistence/Repositories/EloquentCustomerRepository.php @@ -10,6 +10,7 @@ use App\Modules\Customers\Domain\ValueObjects\PersonalIdentityCode; use App\Modules\Customers\Infrastructure\Persistence\Eloquent\CustomerModel; use App\Modules\Customers\Infrastructure\Persistence\PersonalIdentityCodeHasher; use App\Modules\Shared\Domain\ValueObjects\BusinessId; +use App\Modules\Shared\Domain\ValueObjects\HexColor; use Illuminate\Database\QueryException; class EloquentCustomerRepository implements CustomerRepository @@ -35,6 +36,7 @@ class EloquentCustomerRepository implements CustomerRepository 'business_id' => $customer->businessId()?->value, 'personal_identity_code' => $customer->personalIdentityCode()?->value, 'personal_identity_code_hash' => $customer->personalIdentityCode() === null ? null : $this->hasher->hash($customer->personalIdentityCode()), + 'header_color' => $customer->headerColor()?->value, ])->save(); return $this->toEntity($model); @@ -83,6 +85,7 @@ class EloquentCustomerRepository implements CustomerRepository $model->business_id === null ? null : new BusinessId($model->business_id), $model->personal_identity_code === null ? null : new PersonalIdentityCode($model->personal_identity_code), (bool) $model->is_internal, + $model->header_color === null ? null : new HexColor($model->header_color), ); } } 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 0bfc463..6756937 100644 --- a/app/Modules/Customers/Presentation/Livewire/⚡billing-unit-form.blade.php +++ b/app/Modules/Customers/Presentation/Livewire/⚡billing-unit-form.blade.php @@ -92,7 +92,7 @@ new class extends Component
{{ $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 da7986d..6af5de4 100644 --- a/app/Modules/Customers/Presentation/Livewire/⚡contact-form.blade.php +++ b/app/Modules/Customers/Presentation/Livewire/⚡contact-form.blade.php @@ -89,7 +89,7 @@ new class extends Component
{{ $this->heading() }} -

+

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

diff --git a/app/Modules/Customers/Presentation/Livewire/⚡index.blade.php b/app/Modules/Customers/Presentation/Livewire/⚡index.blade.php index ce63c07..0ca73e6 100644 --- a/app/Modules/Customers/Presentation/Livewire/⚡index.blade.php +++ b/app/Modules/Customers/Presentation/Livewire/⚡index.blade.php @@ -80,7 +80,7 @@ new class extends Component :hint="__('customers.search_description')" /> -

+

{{ trans_choice('customers.result_count', $this->customers->total(), ['count' => $this->customers->total()]) }}

diff --git a/app/Modules/Customers/Presentation/Livewire/⚡show.blade.php b/app/Modules/Customers/Presentation/Livewire/⚡show.blade.php index 2d8ee1f..2235523 100644 --- a/app/Modules/Customers/Presentation/Livewire/⚡show.blade.php +++ b/app/Modules/Customers/Presentation/Livewire/⚡show.blade.php @@ -5,6 +5,7 @@ use App\Modules\Customers\Application\DTOs\BillingUnitSummary; use App\Modules\Customers\Application\DTOs\ContactSummary; use App\Modules\Customers\Application\DTOs\CustomerSummary; use App\Modules\Customers\Application\Services\CustomerRemoval; +use App\Modules\Customers\Application\UseCases\ChangeCustomerHeaderColor; use App\Modules\Customers\Application\UseCases\RemoveBillingUnit; use App\Modules\Customers\Application\UseCases\RemoveContact; use App\Modules\Customers\Application\UseCases\RemoveCustomer; @@ -16,6 +17,7 @@ use App\Modules\Customers\Domain\Exceptions\CustomerInUse; use App\Modules\Customers\Domain\Exceptions\CustomerNotFound; use App\Modules\Customers\Domain\Exceptions\InternalCustomerCannotBeRemoved; use App\Modules\Customers\Domain\Enums\CustomerType; +use App\Modules\Shared\Domain\Exceptions\InvalidHexColor; use Illuminate\Support\Facades\Gate; use Livewire\Attributes\Computed; use Livewire\Attributes\Locked; @@ -71,6 +73,27 @@ new class extends Component return $this->customerQueries->findSummary($this->customerId) ?? abort(404); } + /** + * The colour picker's "Use colour", or "Restore default colour" with null. + */ + public function setHeaderColor(?string $color, ChangeCustomerHeaderColor $changeColor): void + { + $this->authorize('customers.use'); + + try { + $changeColor->execute($this->customerId, $color); + } catch (InvalidHexColor) { + $this->statusMessage = __('customers.errors.invalid_header_color'); + + return; + } catch (CustomerNotFound) { + abort(404); + } + + unset($this->customer); + $this->statusMessage = __('customers.header_color_saved'); + } + /** * The personal identity code as this user may see it: in full for admins * and management, masked for others. Computed, so the full code is never @@ -211,7 +234,7 @@ new class extends Component
- +
@@ -227,6 +250,14 @@ new class extends Component :text="__('customers.edit_details')" /> + + @if ($this->canBeRemoved) note !== null) -

{{ $contact->note }}

+

{{ $contact->note }}

@endif
@@ -430,4 +461,6 @@ new class extends Component + +
diff --git a/app/Modules/Dashboard/Presentation/Livewire/⚡home.blade.php b/app/Modules/Dashboard/Presentation/Livewire/⚡home.blade.php index eaa2434..c952172 100644 --- a/app/Modules/Dashboard/Presentation/Livewire/⚡home.blade.php +++ b/app/Modules/Dashboard/Presentation/Livewire/⚡home.blade.php @@ -97,7 +97,7 @@ new class extends Component @foreach ($tasks as $task)
  • {{ $task->title }} - {{ $task->jobNumber }} {{ $task->jobName }} + {{ $task->jobNumber }} {{ $task->jobName }} @if ($task->dueOn !== null) @@ -134,7 +134,7 @@ new class extends Component @foreach (array_keys($overview->week->days) as $day) {{ $this->dayName($day) }} - {{ (new DateTimeImmutable($day))->format('j.n.') }} + {{ (new DateTimeImmutable($day))->format('j.n.') }} @endforeach @@ -170,7 +170,7 @@ new class extends Component @foreach ($overview->jobs as $job)
  • {{ $job->number }} {{ $job->name }} - {{ $job->customerName }} + {{ $job->customerName }} diff --git a/app/Modules/Dashboard/Presentation/Livewire/⚡management.blade.php b/app/Modules/Dashboard/Presentation/Livewire/⚡management.blade.php index 6196e21..042ecfa 100644 --- a/app/Modules/Dashboard/Presentation/Livewire/⚡management.blade.php +++ b/app/Modules/Dashboard/Presentation/Livewire/⚡management.blade.php @@ -138,7 +138,7 @@ new class extends Component @can('reports.view') -

    +

    {{ __('dashboard.month.period', [ 'from' => $this->dateLabel($overview->monthFrom), 'to' => $this->dateLabel($overview->monthTo), 'previous_from' => $this->dateLabel($overview->previousFrom), 'previous_to' => $this->dateLabel($overview->previousTo), @@ -174,7 +174,7 @@ new class extends Component

  • @endforeach -

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

    +

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

    @endcan
    @@ -223,7 +223,7 @@ new class extends Component @foreach ($overview->oldestOverdueTasks as $task)
  • {{ $task->title }} - + {{ $task->jobNumber }} {{ $task->jobName }} · {{ $task->assigneeName ?? __('dashboard.stock.no_assignee') }} · {{ __('dashboard.tasks.due', ['date' => $this->dateLabel((string) $task->dueOn)]) }} diff --git a/app/Modules/Expenses/Presentation/Livewire/⚡form.blade.php b/app/Modules/Expenses/Presentation/Livewire/⚡form.blade.php index 602065e..d630ead 100644 --- a/app/Modules/Expenses/Presentation/Livewire/⚡form.blade.php +++ b/app/Modules/Expenses/Presentation/Livewire/⚡form.blade.php @@ -228,7 +228,7 @@ new class extends Component
    {{ $this->heading() }} -

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

    +

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

    @if ($job->isLocked) diff --git a/app/Modules/Expenses/Presentation/Livewire/⚡job.blade.php b/app/Modules/Expenses/Presentation/Livewire/⚡job.blade.php index 4d38290..eb8b8ba 100644 --- a/app/Modules/Expenses/Presentation/Livewire/⚡job.blade.php +++ b/app/Modules/Expenses/Presentation/Livewire/⚡job.blade.php @@ -161,7 +161,7 @@ new class extends Component

    {{ __('expenses.job_page.list') }}

    @unless ($this->canSeeTotals) -

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

    +

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

    @endunless @if ($this->expenses === []) @@ -174,7 +174,7 @@ new class extends Component @interact('column_what', $expense) {{ $this->summaryText($expense) }} - + {{ __('expenses.categories.'.$expense->category->value) }}, {{ __('expenses.payers.'.$expense->paidBy->value) }} @endinteract diff --git a/app/Modules/Expenses/Presentation/Livewire/⚡mine.blade.php b/app/Modules/Expenses/Presentation/Livewire/⚡mine.blade.php index 212b32b..aca5cf9 100644 --- a/app/Modules/Expenses/Presentation/Livewire/⚡mine.blade.php +++ b/app/Modules/Expenses/Presentation/Livewire/⚡mine.blade.php @@ -102,7 +102,7 @@ new class extends Component
    {{ __('expenses.mine.title') }} -

    +

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

    @@ -139,7 +139,7 @@ new class extends Component @interact('column_what', $expense) {{ $this->summaryText($expense) }} - + {{ __('expenses.categories.'.$expense->category->value) }}, {{ __('expenses.payers.'.$expense->paidBy->value) }} @endinteract diff --git a/app/Modules/Inventory/Presentation/Livewire/⚡count.blade.php b/app/Modules/Inventory/Presentation/Livewire/⚡count.blade.php index bd7be72..4a73e39 100644 --- a/app/Modules/Inventory/Presentation/Livewire/⚡count.blade.php +++ b/app/Modules/Inventory/Presentation/Livewire/⚡count.blade.php @@ -185,7 +185,7 @@ new class extends Component

    {{ __('inventory.counts.values', ['before' => $this->money((int) $count->valueBeforeCents), 'after' => $this->money((int) $count->valueAfterCents)]) }}

    @endcan @else -

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

    +

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

    @endif
    @@ -219,7 +219,7 @@ new class extends Component
  • {{ $line->itemName }}

    -

    +

    @if ($line->isCounted()) {{ __('inventory.counts.book', ['book' => $this->quantity((int) $line->bookMilli, $line->unit)]) }} · {{ __('inventory.counts.difference', ['difference' => $this->signed((int) $difference, $line->unit)]) }} @@ -240,7 +240,7 @@ new class extends Component

    {{ $line->isCounted() ? $this->quantity((int) $line->countedMilli, $line->unit) : '–' }}

    @else
    -