diff --git a/CLAUDE.md b/CLAUDE.md index 9175419..9d4ffe6 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co ## Project -An ERP / work-management system (*toiminnanohjausjärjestelmä*) for a small (5–10 person) Finnish media/marketing company. Stack: Laravel 13, Livewire 4 (single-file components), TallStackUI 4 (Blade components, no prefix: ``, ``), Tailwind 4, Vite 8, Pest, Larastan. Domain code lives in modules under `app/Modules` (so far `Shared`, `Users`, `Customers`, `Catalog` (service units, services and work types, managed on the Pohjatiedot page; workflow templates of work types with ordered steps, read through `WorkflowTemplateQueries`, from which Jobs' `AddTasksFromWorkflowTemplate` makes a job's tasks, each with its own assignee and, by default, scheduled to end on its due date with the estimate booked backwards from it (`TaskPlanner::planBackwards`, not before today); hourly rates, products and the mileage rate on the Hinnasto page, read through `PriceListQueries`, never `CatalogQueries`) `Jobs` (customer jobs: numbering, members, tags, links, history, tasks with one assignee (`tasks.assignee_user_id`) and members (`task_members`, who see the task among their own but get no bookings), task checklists, and the task calendar `jobs::calendar`: a Gantt of tasks on their assignee's row where `ScheduleTask` moves a task's planned period and assignee and `TaskPlanner`/`TaskScheduler` book its estimate into `task_bookings` for the assignee only, split over working days with the rest moved to the next working day past the daily maximum `jobs.daily_capacity_hours`) `TimeTracking` (hours on tasks: weekly sheet and task booking page) `Expenses` (expenses on jobs with cost, markup and billed amount; reads jobs and prices through its own `ExpenseJobs`/`ExpensePricing` ports) `Billing` (the monthly billing material: a draft of invoices made of done jobs and monthly fee jobs (one line per unbilled month up to the draft's month, each such job an invoice of its own), management's billable hours, and on creation invoice lines with price snapshots, downloadable as a semicolon CSV with amounts in whole cents and the VAT rate in tenths of a percent (`billing.csv`, with consumers' identity codes for those who may see them); reads and marks hours, expenses and jobs through its `BillingJobs`/`BillingHours`/`BillingExpenses`/`BillingPrices` ports, which call those modules' queries and the use cases `MarkJobHoursBilled`, `MarkJobExpensesBilled` and `ChangeJobStatus`) and `Sales` (quick sales of consumer products at the counter, credits and cash days; its `QuickSaleHours` port books product durations through Jobs' `ProvideQuickSaleTask` (the yearly "Pikamyynnit" job) and TimeTracking's `AddTaskHours`)); `/` is still a temporary Livewire demo page behind login (`resources/views/pages/⚡home.blade.php`, layout `resources/views/layouts/app.blade.php`, which has the main menu and logout for signed-in users). +An ERP / work-management system (*toiminnanohjausjärjestelmä*) for a small (5–10 person) Finnish media/marketing company. Stack: Laravel 13, Livewire 4 (single-file components), TallStackUI 4 (Blade components, no prefix: ``, ``), Tailwind 4, Vite 8, Pest, Larastan. Domain code lives in modules under `app/Modules` (so far `Shared`, `Users`, `Customers`, `Catalog` (service units, services and work types, managed on the Pohjatiedot page; workflow templates of work types with ordered steps, read through `WorkflowTemplateQueries`, from which Jobs' `AddTasksFromWorkflowTemplate` makes a job's tasks, each with its own assignee and, by default, scheduled to end on its due date with the estimate booked backwards from it (`TaskPlanner::planBackwards`, not before today); hourly rates, products and the mileage rate on the Hinnasto page, read through `PriceListQueries`, never `CatalogQueries`) `Jobs` (customer jobs: numbering, members, tags, links, history, tasks with one assignee (`tasks.assignee_user_id`) and members (`task_members`, who see the task among their own but get no bookings), task checklists, and the task calendar `jobs::calendar`: a Gantt of tasks on their assignee's row where `ScheduleTask` moves a task's planned period and assignee and `TaskPlanner`/`TaskScheduler` book its estimate into `task_bookings` for the assignee only, split over working days with the rest moved to the next working day past the daily maximum `jobs.daily_capacity_hours`) `TimeTracking` (hours on tasks: weekly sheet and task booking page) `Expenses` (expenses on jobs with cost, markup and billed amount; reads jobs and prices through its own `ExpenseJobs`/`ExpensePricing` ports) `Billing` (the monthly billing material (its running number `billing_exports.number` is reserved only when it is created, so discarded drafts leave no gaps, and a draft has none): a draft of invoices made of done jobs and monthly fee jobs (one line per unbilled month up to the draft's month, each such job an invoice of its own), management's billable hours, and on creation invoice lines with price snapshots, downloadable as a semicolon CSV with amounts in whole cents and the VAT rate in tenths of a percent (`billing.csv`, with consumers' identity codes for those who may see them); reads and marks hours, expenses and jobs through its `BillingJobs`/`BillingHours`/`BillingExpenses`/`BillingPrices` ports, which call those modules' queries and the use cases `MarkJobHoursBilled`, `MarkJobExpensesBilled` and `ChangeJobStatus`) and `Sales` (quick sales of consumer products at the counter, credits and cash days; its `QuickSaleHours` port books product durations through Jobs' `ProvideQuickSaleTask` (the yearly "Pikamyynnit" job) and TimeTracking's `AddTaskHours`)); `/` is still a temporary Livewire demo page behind login (`resources/views/pages/⚡home.blade.php`, layout `resources/views/layouts/app.blade.php`, which has the main menu and logout for signed-in users). - **The specification is `docs/maarittely.md`** (Finnish). It defines roles and the permission table, money visibility, customers, customer jobs (*asiakastyö*) with fields and enum keys, Kanban, tasks, time entries, expenses, the service unit → service → work type hierarchy and pricing, Fennoa billing export, the data model, the phases with phase 1 in detail, and open questions. Read it before designing any domain feature. `määrittely.txt` is the original description with the customer's answers to questions 1–53, referenced as *(K12)* in the spec. - **Language rule:** code (identifiers, tables, columns, enum keys) is in English; the specification and the UI are in Finnish. Keep UI strings in translation files from the start. @@ -26,7 +26,7 @@ Read `docs/architecture.md` (Finnish) before adding or changing domain code. `ap - **Login** is the `Users` module: `Auth::attemptWhen` with `CheckLoginAllowed` (active, intern's last day not passed), and the `EnsureAccountIsUsable` web middleware ends sessions of users who are no longer allowed in. Nobody handles passwords: new users and "forgot password" get the same emailed set-password link, and when an admin creates a user or asks for a new link, the link is also shown to the admin to copy. Admin links use the `admin_links` broker (own table, valid 72 h); forgot-password links use the default broker (60 min); the reset page accepts both, and using or issuing a link ends the user's earlier links. `AuthenticateSession` ends a user's other sessions when the password changes. Passwords need 12+ characters with mixed case, a number and a symbol (`Password::defaults` in `UsersServiceProvider`). Login allows 5 failed attempts a minute per email + IP and 20 per IP; the forgot-password page 5 requests a minute per IP. - **Main menu**: the layout renders the groups of `App\View\MainMenu` (Työt, Oma kirjaus, Asiakkaat ja myynti, Hallinto, Ylläpito) as disclosure popovers (`resources/views/components/nav-group.blade.php`). A new page is added to `MainMenu::definition()` with the Gate ability of its route; groups with no allowed links disappear. - **Holidays** are Shared: `Shared\Application\UseCases\HolidayCalendar` gives the Finnish public holidays (`FinnishHolidays`, calculated) minus those the admin took out of use plus company days off (`holiday_overrides`), edited on `shared::holidays` (`/settings/holidays`, gate `settings.manage`). -- **Company details** (name, business ID, address, phone, email) are kept by `Shared\Application\UseCases\CompanyDetailsStore` in the settings (`shared.company_*`) and edited by the admin on `shared::company` (`/settings/company`, gate `settings.manage`). `BusinessId` (Y-tunnus with check digit) is a Shared value object. +- **Company details** (name, business ID, address, phone, email) are kept by `Shared\Application\UseCases\CompanyDetailsStore` in the settings (`shared.company_*`) and edited by the admin on `shared::company` (`/settings/company`, gate `settings.manage`). `BusinessId` (Y-tunnus with check digit) is a Shared value object. The name at the left of the main menu is the optional "Valikon nimi" (`shared.company_menu_name`), read with `CompanyDetailsStore::menuName()` (falls back to `config('app.name')`). - **PDFs** use `barryvdh/laravel-dompdf` with a plain Blade view (no Tailwind; DejaVu Sans), streamed inline: see the quick sale receipt `Sales\Presentation\Http\Controllers\ShowReceipt` and `Sales/Presentation/Views/receipt.blade.php` (view namespace `sales-views`). - **Security headers** (`X-Frame-Options`, `frame-ancestors`, `nosniff`, `Referrer-Policy`, HSTS over HTTPS) come from the global `Shared\Presentation\Http\Middleware\SetSecurityHeaders`, pushed in `SharedServiceProvider`. No full CSP: Alpine/Livewire need `unsafe-eval`. - Money is `Shared\Domain\ValueObjects\Money` (whole cents, `parse()` accepts "85,50", `format()` gives "85,50 €", `addVat()`/`removeVat()` with a `VatPercentage` round half up); store it in `*_cents` integer columns. Prices are without VAT except consumer product prices, which are stored with VAT. Show other than consumer prices only behind `money.prices` and keep amounts out of public Livewire properties. App-wide settings go through `Shared\Application\Contracts\Settings` (`settings` table) with keys prefixed by the owning module. diff --git a/app/Modules/Billing/Application/DTOs/ExportSummary.php b/app/Modules/Billing/Application/DTOs/ExportSummary.php index d2f0052..2072a30 100644 --- a/app/Modules/Billing/Application/DTOs/ExportSummary.php +++ b/app/Modules/Billing/Application/DTOs/ExportSummary.php @@ -14,6 +14,7 @@ final readonly class ExportSummary { public function __construct( public int $id, + public ?int $number, public ExportStatus $status, public DateTimeImmutable $createdAt, public string $createdByName, diff --git a/app/Modules/Billing/Application/DTOs/ExportView.php b/app/Modules/Billing/Application/DTOs/ExportView.php index e672455..9b873f1 100644 --- a/app/Modules/Billing/Application/DTOs/ExportView.php +++ b/app/Modules/Billing/Application/DTOs/ExportView.php @@ -21,6 +21,7 @@ final readonly class ExportView */ public function __construct( public int $id, + public ?int $number, public ExportStatus $status, public string $period, public DateTimeImmutable $createdAt, diff --git a/app/Modules/Billing/Application/Services/ExportViews.php b/app/Modules/Billing/Application/Services/ExportViews.php index 20ca2c4..0d0d60b 100644 --- a/app/Modules/Billing/Application/Services/ExportViews.php +++ b/app/Modules/Billing/Application/Services/ExportViews.php @@ -70,6 +70,7 @@ final class ExportViews return new ExportView( (int) $export->id(), + $export->number(), $export->status(), $export->period(), $export->createdAt(), diff --git a/app/Modules/Billing/Application/UseCases/FinalizeBillingExport.php b/app/Modules/Billing/Application/UseCases/FinalizeBillingExport.php index d5f48a9..1e2a8fa 100644 --- a/app/Modules/Billing/Application/UseCases/FinalizeBillingExport.php +++ b/app/Modules/Billing/Application/UseCases/FinalizeBillingExport.php @@ -23,7 +23,8 @@ use App\Modules\Users\Application\Contracts\Clock; * Creates the billing material from its draft (spec 12), all or nothing: * checks every job again, marks the approved hours and billable expenses * billed, forms the invoice lines from what was marked with the current - * prices, and moves the jobs to "Lasku luotu". Monthly fee jobs keep + * prices, gives the material the next running number (reserved only now, so + * discarded drafts leave no gaps), and moves the jobs to "Lasku luotu". Monthly fee jobs keep * running, so their status stays. */ final class FinalizeBillingExport @@ -81,7 +82,7 @@ final class FinalizeBillingExport } } - $export->finalize($linesByJob, $actorUserId, $this->clock->now()); + $export->finalize($linesByJob, $this->exports->nextNumber(), $actorUserId, $this->clock->now()); $this->exports->save($export); return count($export->invoices()); diff --git a/app/Modules/Billing/Domain/Contracts/BillingExportRepository.php b/app/Modules/Billing/Domain/Contracts/BillingExportRepository.php index a683349..4e48158 100644 --- a/app/Modules/Billing/Domain/Contracts/BillingExportRepository.php +++ b/app/Modules/Billing/Domain/Contracts/BillingExportRepository.php @@ -26,6 +26,11 @@ interface BillingExportRepository public function delete(BillingExport $export): void; + /** + * The next free number of a created material (1, 2, ...), without gaps. + */ + public function nextNumber(): int; + /** * The jobs among the given ones whose fixed price is already on a created material. * diff --git a/app/Modules/Billing/Domain/Entities/BillingExport.php b/app/Modules/Billing/Domain/Entities/BillingExport.php index b7f9f1d..da81b14 100644 --- a/app/Modules/Billing/Domain/Entities/BillingExport.php +++ b/app/Modules/Billing/Domain/Entities/BillingExport.php @@ -30,6 +30,7 @@ final class BillingExport */ private function __construct( private ?int $id, + private ?int $number, private ExportStatus $status, private string $period, private int $createdBy, @@ -44,15 +45,15 @@ final class BillingExport */ public static function startDraft(int $createdBy, DateTimeImmutable $now): self { - return new self(null, ExportStatus::Draft, $now->format('Y-m'), $createdBy, $now, null, null, []); + return new self(null, null, ExportStatus::Draft, $now->format('Y-m'), $createdBy, $now, null, null, []); } /** * @param list $invoices */ - public static function reconstitute(int $id, ExportStatus $status, string $period, int $createdBy, DateTimeImmutable $createdAt, ?int $finalizedBy, ?DateTimeImmutable $finalizedAt, array $invoices): self + public static function reconstitute(int $id, ?int $number, ExportStatus $status, string $period, int $createdBy, DateTimeImmutable $createdAt, ?int $finalizedBy, ?DateTimeImmutable $finalizedAt, array $invoices): self { - return new self($id, $status, $period, $createdBy, $createdAt, $finalizedBy, $finalizedAt, $invoices); + return new self($id, $number, $status, $period, $createdBy, $createdAt, $finalizedBy, $finalizedAt, $invoices); } /** @@ -170,14 +171,14 @@ final class BillingExport } /** - * Forms the invoice lines and locks the material. + * Forms the invoice lines, gives the material its number and locks it. * * @param array> $linesByJob Keyed by job id. * * @throws ExportNotDraft * @throws ExportEmpty */ - public function finalize(array $linesByJob, int $finalizedBy, DateTimeImmutable $now): void + public function finalize(array $linesByJob, int $number, int $finalizedBy, DateTimeImmutable $now): void { $this->ensureDraft(); @@ -193,6 +194,7 @@ final class BillingExport $invoice->setLines($lines); } + $this->number = $number; $this->status = ExportStatus::Created; $this->finalizedBy = $finalizedBy; $this->finalizedAt = $now; @@ -240,6 +242,14 @@ final class BillingExport return $this->id; } + /** + * The running number, reserved when the material is created; a draft has none. + */ + public function number(): ?int + { + return $this->number; + } + public function status(): ExportStatus { return $this->status; diff --git a/app/Modules/Billing/Infrastructure/Persistence/Eloquent/BillingExportModel.php b/app/Modules/Billing/Infrastructure/Persistence/Eloquent/BillingExportModel.php index 359e3f8..8dcca3f 100644 --- a/app/Modules/Billing/Infrastructure/Persistence/Eloquent/BillingExportModel.php +++ b/app/Modules/Billing/Infrastructure/Persistence/Eloquent/BillingExportModel.php @@ -13,6 +13,7 @@ use Illuminate\Support\Carbon; * Persistence model, used only inside the Billing Infrastructure layer. * * @property int $id + * @property int|null $number * @property ExportStatus $status * @property string|null $period Y-m * @property int $created_by @@ -21,7 +22,7 @@ use Illuminate\Support\Carbon; * @property Carbon $created_at */ #[Table('billing_exports')] -#[Fillable(['status', 'period', 'created_by', 'finalized_by', 'finalized_at'])] +#[Fillable(['number', 'status', 'period', 'created_by', 'finalized_by', 'finalized_at'])] class BillingExportModel extends Model { /** @@ -39,6 +40,7 @@ class BillingExportModel extends Model { return [ 'status' => ExportStatus::class, + 'number' => 'integer', 'created_by' => 'integer', 'finalized_by' => 'integer', 'finalized_at' => 'datetime', diff --git a/app/Modules/Billing/Infrastructure/Persistence/Repositories/EloquentBillingExportRepository.php b/app/Modules/Billing/Infrastructure/Persistence/Repositories/EloquentBillingExportRepository.php index d94677d..a117167 100644 --- a/app/Modules/Billing/Infrastructure/Persistence/Repositories/EloquentBillingExportRepository.php +++ b/app/Modules/Billing/Infrastructure/Persistence/Repositories/EloquentBillingExportRepository.php @@ -45,6 +45,7 @@ class EloquentBillingExportRepository implements BillingExportRepository $model = $export->id() === null ? new BillingExportModel : BillingExportModel::query()->findOrFail($export->id()); $model->fill([ + 'number' => $export->number(), 'status' => $export->status(), 'period' => $export->period(), 'created_by' => $export->createdBy(), @@ -116,6 +117,11 @@ class EloquentBillingExportRepository implements BillingExportRepository BillingExportModel::query()->whereKey($export->id())->delete(); } + public function nextNumber(): int + { + return (int) BillingExportModel::query()->max('number') + 1; + } + public function fixedPriceBilledJobIds(array $jobIds): array { if ($jobIds === []) { @@ -175,6 +181,7 @@ class EloquentBillingExportRepository implements BillingExportRepository return BillingExport::reconstitute( $model->id, + $model->number, $model->status, $model->period ?? $model->created_at->format('Y-m'), $model->created_by, diff --git a/app/Modules/Billing/Infrastructure/Persistence/Repositories/EloquentBillingQueries.php b/app/Modules/Billing/Infrastructure/Persistence/Repositories/EloquentBillingQueries.php index d4e012b..53d27fa 100644 --- a/app/Modules/Billing/Infrastructure/Persistence/Repositories/EloquentBillingQueries.php +++ b/app/Modules/Billing/Infrastructure/Persistence/Repositories/EloquentBillingQueries.php @@ -43,6 +43,7 @@ class EloquentBillingQueries implements BillingQueries return $models->map(fn (BillingExportModel $model): ExportSummary => new ExportSummary( $model->id, + $model->number, $model->status, DateTimeImmutable::createFromInterface($model->created_at), $names[$model->created_by] ?? '', diff --git a/app/Modules/Billing/Presentation/Http/Controllers/DownloadBillingCsv.php b/app/Modules/Billing/Presentation/Http/Controllers/DownloadBillingCsv.php index 6383cdd..0b415c4 100644 --- a/app/Modules/Billing/Presentation/Http/Controllers/DownloadBillingCsv.php +++ b/app/Modules/Billing/Presentation/Http/Controllers/DownloadBillingCsv.php @@ -4,6 +4,7 @@ namespace App\Modules\Billing\Presentation\Http\Controllers; use App\Modules\Billing\Application\DTOs\ExportRow; use App\Modules\Billing\Application\Services\ExportRows; +use App\Modules\Billing\Application\Services\ExportViews; use App\Modules\Billing\Domain\Enums\LineKind; use App\Modules\Billing\Domain\Exceptions\BillingExportNotFound; use App\Modules\Billing\Domain\Exceptions\ExportNotCreated; @@ -19,7 +20,7 @@ use Symfony\Component\HttpFoundation\StreamedResponse; */ class DownloadBillingCsv { - public function __invoke(int $export, ExportRows $exportRows): StreamedResponse + public function __invoke(int $export, ExportRows $exportRows, ExportViews $exportViews): StreamedResponse { Gate::authorize('billing.manage'); @@ -29,6 +30,8 @@ class DownloadBillingCsv abort(404); } + $number = $exportViews->of($export)->number ?? abort(404); + return response()->streamDownload(function () use ($rows): void { $out = fopen('php://output', 'w'); @@ -44,7 +47,7 @@ class DownloadBillingCsv } fclose($out); - }, __('billing.csv.file', ['number' => $export]), [ + }, __('billing.csv.file', ['number' => $number]), [ 'Content-Type' => 'text/csv; charset=UTF-8', 'Cache-Control' => 'no-store, private', ]); diff --git a/app/Modules/Billing/Presentation/Livewire/⚡export.blade.php b/app/Modules/Billing/Presentation/Livewire/⚡export.blade.php index 676c3fb..af46740 100644 --- a/app/Modules/Billing/Presentation/Livewire/⚡export.blade.php +++ b/app/Modules/Billing/Presentation/Livewire/⚡export.blade.php @@ -210,9 +210,19 @@ new class extends Component ]; } + /** + * A draft has no number yet: it is reserved when the material is created. + */ + public function heading(): string + { + $number = $this->export->number; + + return $number === null ? __('billing.export.draft_title') : __('billing.export.title', ['number' => $number]); + } + public function render(): mixed { - return $this->view()->title(__('billing.export.title', ['number' => $this->exportId])); + return $this->view()->title($this->heading()); } /** @@ -308,7 +318,7 @@ new class extends Component

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

-

{{ __('billing.export.title', ['number' => $export->id]) }}

+

{{ $this->heading() }}

@if ($export->isDraft())

+ diff --git a/database/migrations/2026_11_24_173302_add_number_to_billing_exports.php b/database/migrations/2026_11_24_173302_add_number_to_billing_exports.php new file mode 100644 index 0000000..0a1c03c --- /dev/null +++ b/database/migrations/2026_11_24_173302_add_number_to_billing_exports.php @@ -0,0 +1,35 @@ +unsignedInteger('number')->nullable()->unique()->after('id'); + }); + + $number = 0; + + foreach (DB::table('billing_exports')->where('status', '!=', 'draft')->orderBy('id')->pluck('id') as $id) { + DB::table('billing_exports')->where('id', $id)->update(['number' => ++$number]); + } + } + + public function down(): void + { + Schema::table('billing_exports', function (Blueprint $table) { + $table->dropUnique(['number']); + $table->dropColumn('number'); + }); + } +}; diff --git a/lang/fi/billing.php b/lang/fi/billing.php index 854a622..cfd2c68 100644 --- a/lang/fi/billing.php +++ b/lang/fi/billing.php @@ -77,10 +77,12 @@ return [ 'file' => 'Tiedosto', ], 'export_label' => 'Aineisto :number', + 'draft_label' => 'Luonnos', ], 'export' => [ 'title' => 'Laskuaineisto :number', + 'draft_title' => 'Laskuaineiston luonnos', 'back' => 'Kaikki laskuaineistot', 'draft_info' => 'Luonnos, aloittanut :name :at. Muutokset tallentuvat heti.', 'created_info' => 'Muodostettu :at, muodostaja :name.', diff --git a/lang/fi/company.php b/lang/fi/company.php index 5193e6b..0e53897 100644 --- a/lang/fi/company.php +++ b/lang/fi/company.php @@ -2,9 +2,11 @@ return [ 'title' => 'Yritystiedot', - 'intro' => 'Yrityksen tiedot tulostuvat kuitteihin. Arvonlisäverotunnus muodostetaan Y-tunnuksesta.', + 'intro' => 'Yrityksen tiedot tulostuvat kuitteihin, ja valikon nimi näkyy päävalikon vasemmassa reunassa. Arvonlisäverotunnus muodostetaan Y-tunnuksesta.', 'fields' => [ 'name' => 'Yrityksen nimi', + 'menu_name' => 'Valikon nimi', + 'menu_name_hint' => 'Näkyy päävalikon vasemmassa reunassa. Jos kenttä on tyhjä, käytetään nimeä Toiminnanohjaus.', 'business_id' => 'Y-tunnus', 'business_id_hint' => 'Esimerkiksi 1234567-8.', 'address' => 'Osoite', @@ -17,6 +19,7 @@ return [ 'errors' => [ 'name' => 'Anna yrityksen nimi (enintään 255 merkkiä).', 'business_id' => 'Anna kelvollinen Y-tunnus, esim. 1234567-8.', + 'menu_name' => 'Valikon nimi saa olla enintään 100 merkkiä.', 'address' => 'Osoite saa olla enintään 500 merkkiä.', 'phone' => 'Puhelinnumero saa olla enintään 50 merkkiä.', 'email' => 'Anna kelvollinen sähköpostiosoite.', diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index 38bf1b2..11b0167 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -51,7 +51,7 @@
- {{ config('app.name') }} + {{ app(\App\Modules\Shared\Application\UseCases\CompanyDetailsStore::class)->menuName() }}