ADD delivery calendar part1

This commit is contained in:
E98Developer 2026-04-19 21:23:18 +02:00
parent 9fa6a7b056
commit 1753871799
23 changed files with 151820 additions and 292 deletions

View File

@ -22,7 +22,7 @@ class DeliveryCalendarOverrideResource extends Resource
protected static string|BackedEnum|null $navigationIcon = 'heroicon-o-exclamation-triangle';
protected static string|\UnitEnum|null $navigationGroup = 'Szállítási naptár';
protected static string|\UnitEnum|null $navigationGroup = 'Szállítás';
protected static ?string $navigationLabel = 'Beszállítói felülbírálások';

View File

@ -22,7 +22,7 @@ class DeliveryScheduleResource extends Resource
protected static string|BackedEnum|null $navigationIcon = 'heroicon-o-calendar-days';
protected static string|\UnitEnum|null $navigationGroup = 'Szállítási naptár';
protected static string|\UnitEnum|null $navigationGroup = 'Szállítás';
protected static ?string $navigationLabel = 'Szállítási sablonok';

View File

@ -2,6 +2,7 @@
namespace App\Filament\Resources\DeliverySchedules\Schemas;
use Filament\Schemas\Components\Grid;
use Filament\Schemas\Components\Section;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\Toggle;
@ -14,25 +15,29 @@ public static function configure(Schema $schema): Schema
return $schema
->components([
Section::make('Sablon adatai')
->columnSpanFull()
->schema([
TextInput::make('name')
->label('Sablon neve')
->required()
->maxLength(255),
Toggle::make('is_active')
->label('Aktív')
->default(true),
]),
Section::make('Szállítási napok')
->columns(7)
->schema([
Toggle::make('monday')->label('Hétfő')->default(false),
Toggle::make('tuesday')->label('Kedd')->default(false),
Toggle::make('wednesday')->label('Szerda')->default(false),
Toggle::make('thursday')->label('Csütörtök')->default(false),
Toggle::make('friday')->label('Péntek')->default(false),
Toggle::make('saturday')->label('Szombat')->default(false),
Toggle::make('sunday')->label('Vasárnap')->default(false),
Grid::make(2)
->schema([
TextInput::make('name')
->label('Sablon neve')
->required()
->maxLength(255),
Toggle::make('is_active')
->label('Aktív')
->default(true),
]),
Section::make('Szállítási napok')
->columns(7)
->schema([
Toggle::make('monday')->label('Hétfő')->default(false),
Toggle::make('tuesday')->label('Kedd')->default(false),
Toggle::make('wednesday')->label('Szerda')->default(false),
Toggle::make('thursday')->label('Csütörtök')->default(false),
Toggle::make('friday')->label('Péntek')->default(false),
Toggle::make('saturday')->label('Szombat')->default(false),
Toggle::make('sunday')->label('Vasárnap')->default(false),
]),
]),
]);
}

View File

@ -20,4 +20,11 @@ protected function getHeaderActions(): array
RestoreAction::make(),
];
}
protected function getFooterWidgets(): array
{
return [
\App\Filament\Widgets\DeliveryCalendarWidget::class,
];
}
}

View File

@ -22,15 +22,15 @@ class ProfitCenterSupplierScheduleResource extends Resource
protected static string|BackedEnum|null $navigationIcon = 'heroicon-o-link';
protected static string|\UnitEnum|null $navigationGroup = 'Szállítási naptár';
protected static string|\UnitEnum|null $navigationGroup = 'Szállítás';
protected static ?string $navigationLabel = 'Beszállítói menetrendek';
protected static ?string $navigationLabel = 'Profitcenter ütemezés';
protected static ?string $modelLabel = 'Beszállítói menetrend';
protected static ?string $modelLabel = 'Profitcenter ütemezés';
protected static ?string $pluralLabel = 'Beszállítói menetrendek';
protected static ?string $pluralLabel = 'Profitcenter ütemezések';
protected static ?string $breadcrumb = 'Beszállítói menetrendek';
protected static ?string $breadcrumb = 'Profitcenter ütemezés';
public static function form(Schema $schema): Schema
{
@ -58,6 +58,13 @@ public static function getPages(): array
];
}
public static function getWidgets(): array
{
return [
\App\Filament\Widgets\DeliveryCalendarWidget::class,
];
}
public static function getRecordRouteBindingEloquentQuery(): Builder
{
return parent::getRecordRouteBindingEloquentQuery()

View File

@ -2,6 +2,10 @@
namespace App\Filament\Resources\WorkCalendars\Schemas;
use App\Enums\WorkDayType;
use Filament\Forms\Components\DatePicker;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\TextInput;
use Filament\Schemas\Schema;
class WorkCalendarForm
@ -10,7 +14,18 @@ public static function configure(Schema $schema): Schema
{
return $schema
->components([
//
DatePicker::make('date')
->label('Dátum')
->required()
->native(false)
->displayFormat('Y-m-d'),
Select::make('type')
->label('Típus')
->options(WorkDayType::class)
->required(),
TextInput::make('description')
->label('Leírás')
->maxLength(255),
]);
}
}

View File

@ -7,6 +7,7 @@
use Filament\Actions\EditAction;
use Filament\Actions\ForceDeleteBulkAction;
use Filament\Actions\RestoreBulkAction;
use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Filters\TrashedFilter;
use Filament\Tables\Table;
@ -16,7 +17,18 @@ public static function configure(Table $table): Table
{
return $table
->columns([
//
TextColumn::make('date')
->label('Dátum')
->date()
->sortable(),
TextColumn::make('type')
->label('Típus')
->badge()
->formatStateUsing(fn ($state) => $state?->label())
->color(fn ($state) => $state?->color()),
TextColumn::make('description')
->label('Leírás')
->searchable(),
])
->filters([
TrashedFilter::make(),

View File

@ -20,7 +20,11 @@ class WorkCalendarResource extends Resource
{
protected static ?string $model = WorkCalendar::class;
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedRectangleStack;
protected static string|BackedEnum|null $navigationIcon = 'heroicon-o-calendar';
protected static string|\UnitEnum|null $navigationGroup = 'Szállítás';
protected static ?string $navigationLabel = 'Munkanaptárak';
public static function form(Schema $schema): Schema
{

View File

@ -6,6 +6,7 @@
use Filament\Http\Middleware\AuthenticateSession;
use Filament\Http\Middleware\DisableBladeIconComponents;
use Filament\Http\Middleware\DispatchServingFilamentEvent;
use Saade\FilamentFullCalendar\FilamentFullCalendarPlugin;
use Filament\Panel;
use Filament\PanelProvider;
use Filament\Support\Colors\Color;
@ -61,6 +62,7 @@ public function panel(Panel $panel): Panel
->widgets([
AccountWidget::class,
FilamentInfoWidget::class,
\App\Filament\Widgets\DeliveryCalendarWidget::class,
])
->middleware([
EncryptCookies::class,
@ -78,6 +80,11 @@ public function panel(Panel $panel): Panel
])
->darkMode(false)
->topNavigation()
->plugins([
FilamentFullCalendarPlugin::make()->plugins(['multiMonth'])
->selectable()
->editable(),
])
->breadcrumbs(false)
->navigation(false)
->renderHook(

View File

@ -12,6 +12,7 @@
"bensampo/laravel-enum": "^6.12",
"filament/filament": "4.0@dev",
"flugger/laravel-responder": "^3.5",
"guava/calendar": "2.0",
"jeroenzwart/laravel-csv-seeder": "^1.5",
"kalnoy/nestedset": "^6.0",
"laravel-json-api/laravel": "^5.1",
@ -23,6 +24,7 @@
"livewire/livewire": "^3.7",
"maatwebsite/excel": "^3.1",
"rap2hpoutre/fast-excel": "^5.6",
"saade/filament-fullcalendar": "4.x-dev",
"santigarcor/laratrust": "^8.4",
"yajra/laravel-datatables": "^12.0",
"yajra/laravel-datatables-oracle": "^12.0"

160
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "ec185cb1fddcfd26057ef51f712c4c19",
"content-hash": "05f09a61a6722503ee896c57c530bf6b",
"packages": [
{
"name": "ahmedhakeem/extra",
@ -2888,6 +2888,86 @@
],
"time": "2025-12-27T19:43:20+00:00"
},
{
"name": "guava/calendar",
"version": "2.0.0",
"source": {
"type": "git",
"url": "https://github.com/GuavaCZ/calendar.git",
"reference": "3ef87e6a754bd5a7d65cd387bfc98c58682110ae"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/GuavaCZ/calendar/zipball/3ef87e6a754bd5a7d65cd387bfc98c58682110ae",
"reference": "3ef87e6a754bd5a7d65cd387bfc98c58682110ae",
"shasum": ""
},
"require": {
"filament/filament": "^4.0-beta",
"illuminate/contracts": "^11.0|^12.0",
"php": "^8.1|^8.2",
"spatie/laravel-package-tools": "^1.14.0"
},
"require-dev": {
"laravel/pint": "^1.0",
"nunomaduro/collision": "^7.8|^8.0",
"nunomaduro/larastan": "^2.0.1",
"orchestra/testbench": "^9.0|^10.0",
"pestphp/pest": "^2.36",
"pestphp/pest-plugin": "^2.1.1",
"pestphp/pest-plugin-arch": "^2.0",
"pestphp/pest-plugin-laravel": "^2.0",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-phpunit": "^1.0"
},
"type": "library",
"extra": {
"laravel": {
"providers": [
"Guava\\Calendar\\CalendarServiceProvider"
]
}
},
"autoload": {
"files": [
"src/helpers.php"
],
"psr-4": {
"Guava\\Calendar\\": "src/",
"Guava\\Calendar\\Database\\Factories\\": "database/factories/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Lukas Frey",
"email": "lukas.frey@guava.cz",
"role": "Developer"
}
],
"description": "Adds support for vkurko/calendar to Filament PHP.",
"homepage": "https://github.com/GuavaCZ/calendar",
"keywords": [
"Guava",
"calendar",
"laravel"
],
"support": {
"issues": "https://github.com/GuavaCZ/calendar/issues",
"source": "https://github.com/GuavaCZ/calendar/tree/2.0.0"
},
"funding": [
{
"url": "https://github.com/GuavaCZ",
"type": "github"
}
],
"time": "2025-08-17T13:52:37+00:00"
},
{
"name": "guzzlehttp/guzzle",
"version": "7.10.0",
@ -8473,6 +8553,81 @@
],
"time": "2025-02-25T09:09:36+00:00"
},
{
"name": "saade/filament-fullcalendar",
"version": "4.x-dev",
"source": {
"type": "git",
"url": "https://github.com/saade/filament-fullcalendar.git",
"reference": "191d69b9d568a9fdfd3f3586428d8cf5a940fd50"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/saade/filament-fullcalendar/zipball/191d69b9d568a9fdfd3f3586428d8cf5a940fd50",
"reference": "191d69b9d568a9fdfd3f3586428d8cf5a940fd50",
"shasum": ""
},
"require": {
"filament/filament": "^4.0|^5.0",
"illuminate/contracts": "^10.0|^11.0|^12.0|^13.0",
"php": "^8.2",
"spatie/laravel-package-tools": "^1.92.7"
},
"require-dev": {
"nunomaduro/collision": "^7.0|^8.0",
"nunomaduro/larastan": "^2.0",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan-deprecation-rules": "^1.0|^2.0",
"phpstan/phpstan-phpunit": "^1.0|^2.0",
"spatie/laravel-ray": "^1.26"
},
"default-branch": true,
"type": "library",
"extra": {
"laravel": {
"providers": [
"Saade\\FilamentFullCalendar\\FilamentFullCalendarServiceProvider"
]
}
},
"autoload": {
"files": [
"src/helpers.php"
],
"psr-4": {
"Saade\\FilamentFullCalendar\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Saade",
"email": "saade@outlook.com.br",
"role": "Developer"
}
],
"description": "The Most Popular JavaScript Calendar integrated with Filament 💛",
"homepage": "https://github.com/saade/filament-fullcalendar",
"keywords": [
"filament-fullcalendar",
"laravel",
"saade"
],
"support": {
"issues": "https://github.com/saade/filament-fullcalendar/issues",
"source": "https://github.com/saade/filament-fullcalendar/tree/4.x"
},
"funding": [
{
"url": "https://github.com/saade",
"type": "github"
}
],
"time": "2026-04-14T23:35:46+00:00"
},
{
"name": "sabberworm/php-css-parser",
"version": "v9.1.0",
@ -17099,7 +17254,8 @@
"minimum-stability": "stable",
"stability-flags": {
"ahmedhakeem/extra": 20,
"filament/filament": 20
"filament/filament": 20,
"saade/filament-fullcalendar": 20
},
"prefer-stable": true,
"prefer-lowest": false,

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,29 +1,11 @@
{
"/js/app.js": "/js/app.js?id=557e123e7e63a8c6496b09700aabe0ff",
"/js/app.js.map": "/js/app.js.map?id=33d744311c4b662e0040524bcff09d31",
"/js/admin.js": "/js/admin.js?id=70073bfc37cdf42fc2ed1240e2287094",
"/js/admin.js.map": "/js/admin.js.map?id=49ffec8eded29707b60c03ac91a3818b",
"/js/module.js": "/js/module.js?id=3bdeb3223145798d585bf6092b4557e5",
"/js/module.js.map": "/js/module.js.map?id=30bc60b5581bac9cdd32386ccc7fa77f",
"/js/components.js": "/js/components.js?id=aac1b5221c918d1afb98a34e79620cde",
"/js/components.js.map": "/js/components.js.map?id=03868ef122820440c621f29c51b3c467",
"/css/app.css": "/css/app.css?id=5d0a6568441f28a5d832021a0501139b",
"/js/app.js": "/js/app.js?id=8eebbb7cc03522e40f2a774f36c0d6b0",
"/js/admin.js": "/js/admin.js?id=d76685d0f99353516174c9e2fe1b0f53",
"/js/module.js": "/js/module.js?id=32c2ae0c49eb610fe11a304d1ca623f1",
"/js/components.js": "/js/components.js?id=34668cee8ac371c98657beffcff579b8",
"/css/app.css": "/css/app.css?id=11474616a7ef31af1acf43a25d65f4b6",
"/fonts/vendor/bootstrap-icons/bootstrap-icons.woff2?92ea18a81d737146ff044ddb52010366": "/fonts/vendor/bootstrap-icons/bootstrap-icons.woff2?92ea18a81d737146ff044ddb52010366?id=9ad5aa740d7d5e6a0191b309b9b1986c",
"/fonts/vendor/bootstrap-icons/bootstrap-icons.woff?1295669cd4e305c97f2cfc16d56614b8": "/fonts/vendor/bootstrap-icons/bootstrap-icons.woff?1295669cd4e305c97f2cfc16d56614b8?id=d1af9af6052c51b169be6c628ae99bb5",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_10_eceadf_60x60.png?fcf8539b586ee18bcdea1755486148fb": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_10_eceadf_60x60.png?fcf8539b586ee18bcdea1755486148fb?id=7296ac90a70836a72af140e0346fc932",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_15_ffffff_60x60.png?c514e7ba7589d0f49ac63c298fcdae5e": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_15_ffffff_60x60.png?c514e7ba7589d0f49ac63c298fcdae5e?id=3c8a4c2c86890f38eb35a7a4f17108ac",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_10_f8f7f6_60x60.png?2999b2509cfc0da9d2638ce9f892d541": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_10_f8f7f6_60x60.png?2999b2509cfc0da9d2638ce9f892d541?id=42fbd9c28ff43250024032714111e992",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_65_654b24_60x60.png?6a53536235d962916651e5ade810be9c": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_65_654b24_60x60.png?6a53536235d962916651e5ade810be9c?id=0351aa2b5ee6d5c4a7e2eea67afd9a94",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_15_eceadf_60x60.png?bb99362eb46ac5b5824fabbfe6271e29": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_15_eceadf_60x60.png?bb99362eb46ac5b5824fabbfe6271e29?id=396642d988742f9ee3b73d239a417f59",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_15_f7f3de_60x60.png?9d1facfcb89e21b78242e2eb8cbd491c": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_15_f7f3de_60x60.png?9d1facfcb89e21b78242e2eb8cbd491c?id=425506cc6819db6ad5b01352df235653",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_68_b83400_60x60.png?f786ff5070a9c8cde4f9b567fc84e004": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_68_b83400_60x60.png?f786ff5070a9c8cde4f9b567fc84e004?id=98eb208ad7450212818f3a70f09729d6",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_222222_256x240.png?bcf1cdc9c7d1486173cc9aaa8b1fc77b": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_222222_256x240.png?bcf1cdc9c7d1486173cc9aaa8b1fc77b?id=5eb1d32635db28ba94d9d35ab363c70e",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_b83400_256x240.png?f481d1b47a462e74eed1e20ae7ac7824": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_b83400_256x240.png?f481d1b47a462e74eed1e20ae7ac7824?id=9ac73e8431d4dda3af9e6eb6d29f88ea",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_ffffff_256x240.png?fc616163e14c52dba5af7fdb573d2e64": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_ffffff_256x240.png?fc616163e14c52dba5af7fdb573d2e64?id=c0ac47f58e9e9e4b679101073a3f010a",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_8c291d_256x240.png?faf8dac1c3a19fa71b3349936071548b": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_8c291d_256x240.png?faf8dac1c3a19fa71b3349936071548b?id=732d736a3d70c5279a5ce1b837da69d1",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_3572ac_256x240.png?6b15e6e5507d972be2e15634d0f7bc82": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_3572ac_256x240.png?6b15e6e5507d972be2e15634d0f7bc82?id=beeb872e16251574c55cf3627f9978e1",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_fbdb93_256x240.png?aca518e5efefaf76c067ffb0e2438334": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_fbdb93_256x240.png?aca518e5efefaf76c067ffb0e2438334?id=f5de1bb077a39c0d29d38e6dccaecf4b",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_diagonal-maze_20_6e4f1c_10x10.png?bde4cdb5c33f6a9c1c25419a4732ad98": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_diagonal-maze_20_6e4f1c_10x10.png?bde4cdb5c33f6a9c1c25419a4732ad98?id=bff005db4cfc39e962fdd98eb8a0ef33",
"/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.eot?23f19bb08961f37aaf692ff943823453": "/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.eot?23f19bb08961f37aaf692ff943823453?id=0868992b7c56298026b76b22c534eab9",
"/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff2?d878b0a6a1144760244ff0665888404c": "/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff2?d878b0a6a1144760244ff0665888404c?id=4ec8652aef2ce3e636bf32c24dd5ce86",
"/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff?2285773e6b4b172f07d9b777c81b0775": "/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff?2285773e6b4b172f07d9b777c81b0775?id=66ea863732752673548b3b6537b6465b",
@ -39,13 +21,26 @@
"/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff?eeccf4f66002c6f2ba24d3d22f2434c2": "/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff?eeccf4f66002c6f2ba24d3d22f2434c2?id=26f963f67e793d91cc76426d43836849",
"/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.ttf?be9ee23c0c6390141475d519c2c5fb8f": "/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.ttf?be9ee23c0c6390141475d519c2c5fb8f?id=d44877cb1fa07af67d56e4d86d39dd96",
"/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.svg?7a8b4f130182d19a2d7c67d80c090397": "/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.svg?7a8b4f130182d19a2d7c67d80c090397?id=37bc7099f6f1ba80236164f22e905837",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_10_eceadf_60x60.png?fcf8539b586ee18bcdea1755486148fb": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_10_eceadf_60x60.png?fcf8539b586ee18bcdea1755486148fb?id=7296ac90a70836a72af140e0346fc932",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_15_ffffff_60x60.png?c514e7ba7589d0f49ac63c298fcdae5e": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_15_ffffff_60x60.png?c514e7ba7589d0f49ac63c298fcdae5e?id=3c8a4c2c86890f38eb35a7a4f17108ac",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_10_f8f7f6_60x60.png?2999b2509cfc0da9d2638ce9f892d541": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_10_f8f7f6_60x60.png?2999b2509cfc0da9d2638ce9f892d541?id=42fbd9c28ff43250024032714111e992",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_65_654b24_60x60.png?6a53536235d962916651e5ade810be9c": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_65_654b24_60x60.png?6a53536235d962916651e5ade810be9c?id=0351aa2b5ee6d5c4a7e2eea67afd9a94",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_15_eceadf_60x60.png?bb99362eb46ac5b5824fabbfe6271e29": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_15_eceadf_60x60.png?bb99362eb46ac5b5824fabbfe6271e29?id=396642d988742f9ee3b73d239a417f59",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_15_f7f3de_60x60.png?9d1facfcb89e21b78242e2eb8cbd491c": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_15_f7f3de_60x60.png?9d1facfcb89e21b78242e2eb8cbd491c?id=425506cc6819db6ad5b01352df235653",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_68_b83400_60x60.png?f786ff5070a9c8cde4f9b567fc84e004": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_68_b83400_60x60.png?f786ff5070a9c8cde4f9b567fc84e004?id=98eb208ad7450212818f3a70f09729d6",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_222222_256x240.png?bcf1cdc9c7d1486173cc9aaa8b1fc77b": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_222222_256x240.png?bcf1cdc9c7d1486173cc9aaa8b1fc77b?id=5eb1d32635db28ba94d9d35ab363c70e",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_b83400_256x240.png?f481d1b47a462e74eed1e20ae7ac7824": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_b83400_256x240.png?f481d1b47a462e74eed1e20ae7ac7824?id=9ac73e8431d4dda3af9e6eb6d29f88ea",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_ffffff_256x240.png?fc616163e14c52dba5af7fdb573d2e64": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_ffffff_256x240.png?fc616163e14c52dba5af7fdb573d2e64?id=c0ac47f58e9e9e4b679101073a3f010a",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_8c291d_256x240.png?faf8dac1c3a19fa71b3349936071548b": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_8c291d_256x240.png?faf8dac1c3a19fa71b3349936071548b?id=732d736a3d70c5279a5ce1b837da69d1",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_3572ac_256x240.png?6b15e6e5507d972be2e15634d0f7bc82": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_3572ac_256x240.png?6b15e6e5507d972be2e15634d0f7bc82?id=beeb872e16251574c55cf3627f9978e1",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_fbdb93_256x240.png?aca518e5efefaf76c067ffb0e2438334": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_fbdb93_256x240.png?aca518e5efefaf76c067ffb0e2438334?id=f5de1bb077a39c0d29d38e6dccaecf4b",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_diagonal-maze_20_6e4f1c_10x10.png?bde4cdb5c33f6a9c1c25419a4732ad98": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_diagonal-maze_20_6e4f1c_10x10.png?bde4cdb5c33f6a9c1c25419a4732ad98?id=bff005db4cfc39e962fdd98eb8a0ef33",
"/images/vendor/jquery-ui/themes/base/ui-icons_444444_256x240.png?d1b818587c3bc65058fe43800e4a191c": "/images/vendor/jquery-ui/themes/base/ui-icons_444444_256x240.png?d1b818587c3bc65058fe43800e4a191c?id=bed10eb948aa66a924e32f2022f0b7c1",
"/images/vendor/jquery-ui/themes/base/ui-icons_555555_256x240.png?35d57320d9df28ec0d0d8bd1b5c75983": "/images/vendor/jquery-ui/themes/base/ui-icons_555555_256x240.png?35d57320d9df28ec0d0d8bd1b5c75983?id=d927e3a7feaea813b9bd0fd242e90de2",
"/images/vendor/jquery-ui/themes/base/ui-icons_ffffff_256x240.png?92bef7e45fed3caba8dc9348edef4df2": "/images/vendor/jquery-ui/themes/base/ui-icons_ffffff_256x240.png?92bef7e45fed3caba8dc9348edef4df2?id=1e1f6219e7b6c134d1955b8db1907af5",
"/images/vendor/jquery-ui/themes/base/ui-icons_777620_256x240.png?f423048bf942a7a33b33b1b982ecdb51": "/images/vendor/jquery-ui/themes/base/ui-icons_777620_256x240.png?f423048bf942a7a33b33b1b982ecdb51?id=7c2eb0d985914d94938ebc386ad09e37",
"/images/vendor/jquery-ui/themes/base/ui-icons_cc0000_256x240.png?5cbbd560bcf30acb95dd3b0b0d61645a": "/images/vendor/jquery-ui/themes/base/ui-icons_cc0000_256x240.png?5cbbd560bcf30acb95dd3b0b0d61645a?id=e5fe3b8d656a0dcf8c574ec8eb4cb6fe",
"/images/vendor/jquery-ui/themes/base/ui-icons_777777_256x240.png?f5d5fce2f36b5776eab8b314efc2dfd8": "/images/vendor/jquery-ui/themes/base/ui-icons_777777_256x240.png?f5d5fce2f36b5776eab8b314efc2dfd8?id=0c3579368edda27d14bb4910e27002b6",
"/css/app.css.map": "/css/app.css.map?id=1c2fb41f2bfca61c4b899f0f26a3e695",
"/js/customize.js": "/js/customize.js?id=8c4cc4e0574489a405066b9aea807bb1",
"/js/customize.js": "/js/customize.js?id=31b57208bc19a039066296cd7322567f",
"/css/invoice.css": "/css/invoice.css?id=14b5784b76704d02969da9561631ed3f"
}

View File

@ -13,6 +13,12 @@
['name' => 'statistics', 'displayName' => 'Statisztikák', 'icon' => 'kimutatasok', 'link' => route('legacy.show', ['path' => 'admin/statistics']), 'roles' => ['root','developer','admin']],
['name' => 'export', 'displayName' => 'Export', 'icon' => 'export', 'link' => route('legacy.show', ['path' => 'admin/export']), 'roles' => ['root','developer','admin']],
['name' => 'priceListProcessor', 'displayName' => 'Árlista feldolgozó', 'icon' => 'price_list', 'link' => '/admin/pricelist-files', 'roles' => ['root','developer','admin']],
['name' => 'delivery', 'displayName' => 'Szállítás', 'icon' => 'timetable3', 'roles' => ['root','admin','developer'], 'children' => [
['displayName' => 'Szállítási sablonok', 'link' => \App\Filament\Resources\DeliverySchedules\DeliveryScheduleResource::getUrl()],
['displayName' => 'Beszállítói felülbírálások', 'link' => \App\Filament\Resources\DeliveryCalendarOverrides\DeliveryCalendarOverrideResource::getUrl()],
['displayName' => 'Profitcenter ütemezés', 'link' => \App\Filament\Resources\ProfitCenterSupplierSchedules\ProfitCenterSupplierScheduleResource::getUrl()],
['displayName' => 'Munkanaptárak', 'link' => \App\Filament\Resources\WorkCalendars\WorkCalendarResource::getUrl()],
]],
];
@endphp
@ -21,27 +27,59 @@
<style>
.fi-topbar-header-container > a { display: none !important; }
.fi-breadcrumbs { display: none !important; }
.fi-topbar-nav { display: none !important; }
.fi-topbar-content-start > a { display: none !important; }
.fi-topbar-nav { display: none !important; }
.fi-header-heading-group { display: none !important; }
</style>
<ul class="flex items-center gap-x-1">
@foreach ($modules as $module)
@role($module['roles'])
@php
$isActive = request()->is(ltrim($module['link'], '/') . '*');
$isActive = isset($module['link']) ? request()->is(ltrim(parse_url($module['link'], PHP_URL_PATH), '/') . '*') : false;
if (!$isActive && isset($module['children'])) {
foreach ($module['children'] as $child) {
if (request()->is(ltrim(parse_url($child['link'], PHP_URL_PATH), '/') . '*')) {
$isActive = true;
break;
}
}
}
@endphp
<li class="flex-none">
<a href="{{ $module['link'] }}"
title="{{ $module['displayName'] }}"
class="flex flex-col items-center justify-center w-[110px] h-[105px] rounded-md transition-colors duration-200 {{ $isActive ? 'bg-white/50 shadow-inner' : 'hover:bg-white/30' }}">
<img src="{{ asset('images/icons/ico_'.$module['icon'].'.png') }}"
class="w-16 h-16 object-contain mb-1"
alt="">
<span class="text-[11px] font-bold text-[#453821] truncate w-full text-center px-1 leading-tight">
{{ $module['displayName'] }}
</span>
</a>
<li class="flex-none relative" x-data="{ open: false }" @mouseenter="open = true" @mouseleave="open = false">
@if(isset($module['children']))
<button type="button"
title="{{ $module['displayName'] }}"
class="flex flex-col items-center justify-center w-[110px] h-[105px] rounded-md transition-colors duration-200 {{ $isActive ? 'bg-white/50 shadow-inner' : 'hover:bg-white/30' }}">
<img src="{{ asset('images/icons/ico_'.$module['icon'].'.png') }}"
class="w-16 h-16 object-contain mb-1"
alt="">
<span class="text-[11px] font-bold text-[#453821] truncate w-full text-center px-1 leading-tight">
{{ $module['displayName'] }}
</span>
</button>
<div x-show="open"
x-transition
class="absolute top-[100px] left-0 z-50 w-[200px] bg-white border border-gray-200 rounded-md shadow-lg py-1"
style="display: none;">
@foreach($module['children'] as $child)
<a href="{{ $child['link'] }}" class="block px-4 py-2 text-sm text-[#453821] hover:bg-gray-100 font-bold">
{{ $child['displayName'] }}
</a>
@endforeach
</div>
@else
<a href="{{ $module['link'] }}"
title="{{ $module['displayName'] }}"
class="flex flex-col items-center justify-center w-[110px] h-[105px] rounded-md transition-colors duration-200 {{ $isActive ? 'bg-white/50 shadow-inner' : 'hover:bg-white/30' }}">
<img src="{{ asset('images/icons/ico_'.$module['icon'].'.png') }}"
class="w-16 h-16 object-contain mb-1"
alt="">
<span class="text-[11px] font-bold text-[#453821] truncate w-full text-center px-1 leading-tight">
{{ $module['displayName'] }}
</span>
</a>
@endif
</li>
@endrole
@endforeach

View File

@ -29,12 +29,14 @@
echo view('layout.wherehere')->render();
exit();
}
URL::forceScheme('https');
/*
if (! in_array(strtolower(env('APP_STAGE')), ['d2dtst', 'e2etst', 'dev','local'])) {
URL::forceScheme('https');
} else {
URL::forceScheme('http');
}
*/
Route::get('/l', function () {
$M = \App\Models\ProfitCenter::where('name', 'like', 'pro%');
dd(getSql($M));