diff --git a/app/Filament/Resources/BiddersResource.php b/app/Filament/Resources/BiddersResource.php new file mode 100644 index 0000000..e9b6c67 --- /dev/null +++ b/app/Filament/Resources/BiddersResource.php @@ -0,0 +1,62 @@ +schema([ + // + ]); + } + + public static function table(Table $table): Table + { + return $table + ->columns([ + // + ]) + ->filters([ + // + ]) + ->actions([ + Tables\Actions\EditAction::make(), + ]) + ->bulkActions([ + Tables\Actions\DeleteBulkAction::make(), + ]); + } + + public static function getRelations(): array + { + return [ + // + ]; + } + + public static function getPages(): array + { + return [ + 'index' => Pages\ListBidders::route('/'), + 'create' => Pages\CreateBidders::route('/create'), + 'edit' => Pages\EditBidders::route('/{record}/edit'), + ]; + } +} diff --git a/app/Filament/Resources/BiddersResource/Pages/CreateBidders.php b/app/Filament/Resources/BiddersResource/Pages/CreateBidders.php new file mode 100644 index 0000000..a0d701e --- /dev/null +++ b/app/Filament/Resources/BiddersResource/Pages/CreateBidders.php @@ -0,0 +1,12 @@ +schema([ + // + ]); + } + + public static function table(Table $table): Table + { + return $table + ->columns([ + // + ]) + ->filters([ + // + ]) + ->actions([ + Tables\Actions\EditAction::make(), + Tables\Actions\DeleteAction::make(), + ]) + ->bulkActions([ + Tables\Actions\DeleteBulkAction::make(), + ]); + } + + public static function getPages(): array + { + return [ + 'index' => Pages\ManageCarShowCategories::route('/'), + ]; + } +} diff --git a/app/Filament/Resources/CarShowCategoryResource/Pages/ManageCarShowCategories.php b/app/Filament/Resources/CarShowCategoryResource/Pages/ManageCarShowCategories.php new file mode 100644 index 0000000..e7d51a2 --- /dev/null +++ b/app/Filament/Resources/CarShowCategoryResource/Pages/ManageCarShowCategories.php @@ -0,0 +1,19 @@ +schema([ + // + ]); + } + + public static function table(Table $table): Table + { + return $table + ->columns([ + // + ]) + ->filters([ + // + ]) + ->actions([ + Tables\Actions\EditAction::make(), + ]) + ->bulkActions([ + Tables\Actions\DeleteBulkAction::make(), + ]); + } + + public static function getRelations(): array + { + return [ + // + ]; + } + + public static function getPages(): array + { + return [ + 'index' => Pages\ListCarShowWinners::route('/'), + 'create' => Pages\CreateCarShowWinner::route('/create'), + 'edit' => Pages\EditCarShowWinner::route('/{record}/edit'), + ]; + } +} diff --git a/app/Filament/Resources/CarShowWinnerResource/Pages/CreateCarShowWinner.php b/app/Filament/Resources/CarShowWinnerResource/Pages/CreateCarShowWinner.php new file mode 100644 index 0000000..182d172 --- /dev/null +++ b/app/Filament/Resources/CarShowWinnerResource/Pages/CreateCarShowWinner.php @@ -0,0 +1,12 @@ +schema([ + // + ]); + } + + public static function table(Table $table): Table + { + return $table + ->columns([ + // + ]) + ->filters([ + // + ]) + ->actions([ + Tables\Actions\EditAction::make(), + ]) + ->bulkActions([ + Tables\Actions\DeleteBulkAction::make(), + ]); + } + + public static function getRelations(): array + { + return [ + // + ]; + } + + public static function getPages(): array + { + return [ + 'index' => Pages\ListCheckouts::route('/'), + 'create' => Pages\CreateCheckout::route('/create'), + 'edit' => Pages\EditCheckout::route('/{record}/edit'), + ]; + } +} diff --git a/app/Filament/Resources/CheckoutResource/Pages/CreateCheckout.php b/app/Filament/Resources/CheckoutResource/Pages/CreateCheckout.php new file mode 100644 index 0000000..0c0fc8a --- /dev/null +++ b/app/Filament/Resources/CheckoutResource/Pages/CreateCheckout.php @@ -0,0 +1,12 @@ +schema([ + // + ]); + } + + public static function table(Table $table): Table + { + return $table + ->columns([ + // + ]) + ->filters([ + // + ]) + ->actions([ + Tables\Actions\EditAction::make(), + ]) + ->bulkActions([ + Tables\Actions\DeleteBulkAction::make(), + ]); + } + + public static function getRelations(): array + { + return [ + // + ]; + } + + public static function getPages(): array + { + return [ + 'index' => Pages\ListItems::route('/'), + 'create' => Pages\CreateItems::route('/create'), + 'edit' => Pages\EditItems::route('/{record}/edit'), + ]; + } +} diff --git a/app/Filament/Resources/ItemsResource/Pages/CreateItems.php b/app/Filament/Resources/ItemsResource/Pages/CreateItems.php new file mode 100644 index 0000000..db0b7c6 --- /dev/null +++ b/app/Filament/Resources/ItemsResource/Pages/CreateItems.php @@ -0,0 +1,12 @@ +schema([ + // + ]); + } + + public static function table(Table $table): Table + { + return $table + ->columns([ + // + ]) + ->filters([ + // + ]) + ->actions([ + Tables\Actions\EditAction::make(), + ]) + ->bulkActions([ + Tables\Actions\DeleteBulkAction::make(), + ]); + } + + public static function getRelations(): array + { + return [ + // + ]; + } + + public static function getPages(): array + { + return [ + 'index' => Pages\ListJudges::route('/'), + 'create' => Pages\CreateJudges::route('/create'), + 'edit' => Pages\EditJudges::route('/{record}/edit'), + ]; + } +} diff --git a/app/Filament/Resources/JudgesResource/Pages/CreateJudges.php b/app/Filament/Resources/JudgesResource/Pages/CreateJudges.php new file mode 100644 index 0000000..3fd67aa --- /dev/null +++ b/app/Filament/Resources/JudgesResource/Pages/CreateJudges.php @@ -0,0 +1,12 @@ +schema([ + // + ]); + } + + public static function table(Table $table): Table + { + return $table + ->columns([ + // + ]) + ->filters([ + // + ]) + ->actions([ + Tables\Actions\EditAction::make(), + ]) + ->bulkActions([ + Tables\Actions\DeleteBulkAction::make(), + ]); + } + + public static function getRelations(): array + { + return [ + // + ]; + } + + public static function getPages(): array + { + return [ + 'index' => Pages\ListPaymentMethods::route('/'), + 'create' => Pages\CreatePaymentMethods::route('/create'), + 'edit' => Pages\EditPaymentMethods::route('/{record}/edit'), + ]; + } +} diff --git a/app/Filament/Resources/PaymentMethodsResource/Pages/CreatePaymentMethods.php b/app/Filament/Resources/PaymentMethodsResource/Pages/CreatePaymentMethods.php new file mode 100644 index 0000000..ab2e04f --- /dev/null +++ b/app/Filament/Resources/PaymentMethodsResource/Pages/CreatePaymentMethods.php @@ -0,0 +1,12 @@ +schema([ + // + ]); + } + + public static function table(Table $table): Table + { + return $table + ->columns([ + // + ]) + ->filters([ + // + ]) + ->actions([ + Tables\Actions\EditAction::make(), + ]) + ->bulkActions([ + Tables\Actions\DeleteBulkAction::make(), + ]); + } + + public static function getRelations(): array + { + return [ + // + ]; + } + + public static function getPages(): array + { + return [ + 'index' => Pages\ListPeoplesChoices::route('/'), + 'create' => Pages\CreatePeoplesChoice::route('/create'), + 'edit' => Pages\EditPeoplesChoice::route('/{record}/edit'), + ]; + } +} diff --git a/app/Filament/Resources/PeoplesChoiceResource/Pages/CreatePeoplesChoice.php b/app/Filament/Resources/PeoplesChoiceResource/Pages/CreatePeoplesChoice.php new file mode 100644 index 0000000..f7eee16 --- /dev/null +++ b/app/Filament/Resources/PeoplesChoiceResource/Pages/CreatePeoplesChoice.php @@ -0,0 +1,12 @@ +schema([ + // + ]); + } + + public static function table(Table $table): Table + { + return $table + ->columns([ + // + ]) + ->filters([ + // + ]) + ->actions([ + Tables\Actions\EditAction::make(), + ]) + ->bulkActions([ + Tables\Actions\DeleteBulkAction::make(), + ]); + } + + public static function getRelations(): array + { + return [ + // + ]; + } + + public static function getPages(): array + { + return [ + 'index' => Pages\ListVehicleScores::route('/'), + 'create' => Pages\CreateVehicleScores::route('/create'), + 'edit' => Pages\EditVehicleScores::route('/{record}/edit'), + ]; + } +} diff --git a/app/Filament/Resources/VehicleScoresResource/Pages/CreateVehicleScores.php b/app/Filament/Resources/VehicleScoresResource/Pages/CreateVehicleScores.php new file mode 100644 index 0000000..023b188 --- /dev/null +++ b/app/Filament/Resources/VehicleScoresResource/Pages/CreateVehicleScores.php @@ -0,0 +1,12 @@ +schema([ + // + ]); + } + + public static function table(Table $table): Table + { + return $table + ->columns([ + // + ]) + ->filters([ + // + ]) + ->actions([ + Tables\Actions\EditAction::make(), + ]) + ->bulkActions([ + Tables\Actions\DeleteBulkAction::make(), + ]); + } + + public static function getRelations(): array + { + return [ + // + ]; + } + + public static function getPages(): array + { + return [ + 'index' => Pages\ListVehicles::route('/'), + 'create' => Pages\CreateVehicles::route('/create'), + 'edit' => Pages\EditVehicles::route('/{record}/edit'), + ]; + } +} diff --git a/app/Filament/Resources/VehiclesResource/Pages/CreateVehicles.php b/app/Filament/Resources/VehiclesResource/Pages/CreateVehicles.php new file mode 100644 index 0000000..058b5f6 --- /dev/null +++ b/app/Filament/Resources/VehiclesResource/Pages/CreateVehicles.php @@ -0,0 +1,12 @@ +schema([ + // + ]); + } + + public static function table(Table $table): Table + { + return $table + ->columns([ + // + ]) + ->filters([ + // + ]) + ->actions([ + Tables\Actions\EditAction::make(), + ]) + ->bulkActions([ + Tables\Actions\DeleteBulkAction::make(), + ]); + } + + public static function getRelations(): array + { + return [ + // + ]; + } + + public static function getPages(): array + { + return [ + 'index' => Pages\ListWinningBids::route('/'), + 'create' => Pages\CreateWinningBids::route('/create'), + 'edit' => Pages\EditWinningBids::route('/{record}/edit'), + ]; + } +} diff --git a/app/Filament/Resources/WinningBidsResource/Pages/CreateWinningBids.php b/app/Filament/Resources/WinningBidsResource/Pages/CreateWinningBids.php new file mode 100644 index 0000000..ae5eeb2 --- /dev/null +++ b/app/Filament/Resources/WinningBidsResource/Pages/CreateWinningBids.php @@ -0,0 +1,12 @@ +email, '@tfmm.co'); + } + public function getFilamentName(): string + { + return "{$this->name}"; + } } diff --git a/composer.json b/composer.json index 9263487..d90be9f 100644 --- a/composer.json +++ b/composer.json @@ -9,6 +9,7 @@ "barryvdh/laravel-debugbar": "^3.7", "barryvdh/laravel-snappy": "^1.0", "carlos-meneses/laravel-mpdf": "^2.1", + "filament/filament": "^2.0", "laravel/framework": "^9.0", "laravel/tinker": "^2.0", "laravel/ui": "^3.0" @@ -51,7 +52,8 @@ "Illuminate\\Foundation\\ComposerScripts::postInstall" ], "post-update-cmd": [ - "Illuminate\\Foundation\\ComposerScripts::postUpdate" + "Illuminate\\Foundation\\ComposerScripts::postUpdate", + "@php artisan filament:upgrade" ], "post-autoload-dump": [ "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", diff --git a/composer.lock b/composer.lock index b31ea37..db12ae4 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,76 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "78c1d4a38cb38e74848e06315bec050d", + "content-hash": "c3b4a6c8d022e7160d26e4a00b921a2b", "packages": [ + { + "name": "akaunting/laravel-money", + "version": "3.1.2", + "source": { + "type": "git", + "url": "https://github.com/akaunting/laravel-money.git", + "reference": "cbc66d1dc457c169f6081e0ae6c661b499dad301" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/akaunting/laravel-money/zipball/cbc66d1dc457c169f6081e0ae6c661b499dad301", + "reference": "cbc66d1dc457c169f6081e0ae6c661b499dad301", + "shasum": "" + }, + "require": { + "illuminate/contracts": "^8.67|^9.0", + "illuminate/support": "^8.67|^9.0", + "illuminate/view": "^8.67|^9.0", + "php": "^8.0", + "vlucas/phpdotenv": "^5.4.1" + }, + "require-dev": { + "orchestra/testbench": "^6.23|^7.4", + "phpunit/phpunit": "^9.5", + "vimeo/psalm": "^4.23" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Akaunting\\Money\\Provider" + ] + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Akaunting\\Money\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Denis Duliçi", + "email": "info@akaunting.com", + "homepage": "https://akaunting.com", + "role": "Developer" + } + ], + "description": "Currency formatting and conversion package for Laravel", + "keywords": [ + "convert", + "currency", + "format", + "laravel", + "money" + ], + "support": { + "issues": "https://github.com/akaunting/laravel-money/issues", + "source": "https://github.com/akaunting/laravel-money/tree/3.1.2" + }, + "time": "2022-07-27T08:16:36+00:00" + }, { "name": "barryvdh/laravel-debugbar", "version": "v3.7.0", @@ -168,6 +236,156 @@ ], "time": "2022-01-29T19:36:49+00:00" }, + { + "name": "blade-ui-kit/blade-heroicons", + "version": "1.3.1", + "source": { + "type": "git", + "url": "https://github.com/blade-ui-kit/blade-heroicons.git", + "reference": "a2749abc7b8eb6149ff643ffa99a3d33a2de7961" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/blade-ui-kit/blade-heroicons/zipball/a2749abc7b8eb6149ff643ffa99a3d33a2de7961", + "reference": "a2749abc7b8eb6149ff643ffa99a3d33a2de7961", + "shasum": "" + }, + "require": { + "blade-ui-kit/blade-icons": "^1.1", + "illuminate/support": "^8.0|^9.0", + "php": "^7.4|^8.0" + }, + "require-dev": { + "orchestra/testbench": "^6.0|^7.0", + "phpunit/phpunit": "^9.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "BladeUI\\Heroicons\\BladeHeroiconsServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "BladeUI\\Heroicons\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Dries Vints", + "homepage": "https://driesvints.com" + } + ], + "description": "A package to easily make use of Heroicons in your Laravel Blade views.", + "homepage": "https://github.com/blade-ui-kit/blade-heroicons", + "keywords": [ + "Heroicons", + "blade", + "laravel" + ], + "support": { + "issues": "https://github.com/blade-ui-kit/blade-heroicons/issues", + "source": "https://github.com/blade-ui-kit/blade-heroicons/tree/1.3.1" + }, + "funding": [ + { + "url": "https://github.com/caneco", + "type": "github" + }, + { + "url": "https://github.com/driesvints", + "type": "github" + } + ], + "time": "2022-03-02T11:50:13+00:00" + }, + { + "name": "blade-ui-kit/blade-icons", + "version": "1.3.0", + "source": { + "type": "git", + "url": "https://github.com/blade-ui-kit/blade-icons.git", + "reference": "57a7c41e1e79e38aed029d3e6ae690b04344c99e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/blade-ui-kit/blade-icons/zipball/57a7c41e1e79e38aed029d3e6ae690b04344c99e", + "reference": "57a7c41e1e79e38aed029d3e6ae690b04344c99e", + "shasum": "" + }, + "require": { + "illuminate/contracts": "^8.0|^9.0", + "illuminate/filesystem": "^8.0|^9.0", + "illuminate/support": "^8.0|^9.0", + "illuminate/view": "^8.0|^9.0", + "php": "^7.4|^8.0", + "symfony/console": "^5.3|^6.0", + "symfony/finder": "^5.3|^6.0" + }, + "require-dev": { + "mockery/mockery": "^1.3", + "orchestra/testbench": "^6.0|^7.0", + "phpunit/phpunit": "^9.0" + }, + "bin": [ + "bin/blade-icons-generate" + ], + "type": "library", + "extra": { + "laravel": { + "providers": [ + "BladeUI\\Icons\\BladeIconsServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "BladeUI\\Icons\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Dries Vints", + "homepage": "https://driesvints.com" + } + ], + "description": "A package to easily make use of icons in your Laravel Blade views.", + "homepage": "https://github.com/blade-ui-kit/blade-icons", + "keywords": [ + "blade", + "icons", + "laravel", + "svg" + ], + "support": { + "issues": "https://github.com/blade-ui-kit/blade-icons/issues", + "source": "https://github.com/blade-ui-kit/blade-icons" + }, + "funding": [ + { + "url": "https://github.com/caneco", + "type": "github" + }, + { + "url": "https://github.com/driesvints", + "type": "github" + } + ], + "time": "2022-05-11T12:38:11+00:00" + }, { "name": "brick/math", "version": "0.10.1", @@ -274,6 +492,111 @@ }, "time": "2021-08-24T18:53:11+00:00" }, + { + "name": "danharrin/date-format-converter", + "version": "v0.2.0", + "source": { + "type": "git", + "url": "https://github.com/danharrin/date-format-converter.git", + "reference": "ee448ab0cbe2ea36edb886a01670fc760e388f19" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/danharrin/date-format-converter/zipball/ee448ab0cbe2ea36edb886a01670fc760e388f19", + "reference": "ee448ab0cbe2ea36edb886a01670fc760e388f19", + "shasum": "" + }, + "require": { + "php": "^7.2|^8.0" + }, + "type": "library", + "autoload": { + "files": [ + "src/helpers.php", + "src/standards.php" + ], + "psr-4": { + "DanHarrin\\DateFormatConverter\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Dan Harrin", + "email": "dan@danharrin.com" + } + ], + "description": "Convert token-based date formats between standards.", + "homepage": "https://github.com/danharrin/date-format-converter", + "support": { + "issues": "https://github.com/danharrin/date-format-converter/issues", + "source": "https://github.com/danharrin/date-format-converter" + }, + "funding": [ + { + "url": "https://github.com/danharrin", + "type": "github" + } + ], + "time": "2021-02-10T23:58:47+00:00" + }, + { + "name": "danharrin/livewire-rate-limiting", + "version": "v1.0.0", + "source": { + "type": "git", + "url": "https://github.com/danharrin/livewire-rate-limiting.git", + "reference": "b99facf5b607fb0cde92a6f254f437295339f7de" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/danharrin/livewire-rate-limiting/zipball/b99facf5b607fb0cde92a6f254f437295339f7de", + "reference": "b99facf5b607fb0cde92a6f254f437295339f7de", + "shasum": "" + }, + "require": { + "illuminate/support": "^8.0|^9.0", + "php": "^8.0" + }, + "require-dev": { + "livewire/livewire": "^2.3", + "orchestra/testbench": "^6.2|^7.0", + "phpunit/phpunit": "^9.4", + "symplify/monorepo-builder": "^9.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "DanHarrin\\LivewireRateLimiting\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Dan Harrin", + "email": "dan@danharrin.com" + } + ], + "description": "Apply rate limiters to Laravel Livewire actions.", + "homepage": "https://github.com/danharrin/livewire-rate-limiting", + "support": { + "issues": "https://github.com/danharrin/livewire-rate-limiting/issues", + "source": "https://github.com/danharrin/livewire-rate-limiting" + }, + "funding": [ + { + "url": "https://github.com/danharrin", + "type": "github" + } + ], + "time": "2022-01-21T11:26:58+00:00" + }, { "name": "dflydev/dot-access-data", "version": "v3.0.1", @@ -645,6 +968,280 @@ ], "time": "2022-06-18T20:57:19+00:00" }, + { + "name": "filament/filament", + "version": "v2.15.13", + "source": { + "type": "git", + "url": "https://github.com/filamentphp/admin.git", + "reference": "1b68e325ce2e7650a77efd1319b7398cf251697c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/filamentphp/admin/zipball/1b68e325ce2e7650a77efd1319b7398cf251697c", + "reference": "1b68e325ce2e7650a77efd1319b7398cf251697c", + "shasum": "" + }, + "require": { + "danharrin/livewire-rate-limiting": "^0.3|^1.0", + "filament/forms": "self.version", + "filament/notifications": "self.version", + "filament/support": "self.version", + "filament/tables": "self.version", + "illuminate/auth": "^8.6|^9.0", + "illuminate/console": "^8.6|^9.0", + "illuminate/contracts": "^8.6|^9.0", + "illuminate/cookie": "^8.6|^9.0", + "illuminate/database": "^8.6|^9.0", + "illuminate/http": "^8.6|^9.0", + "illuminate/routing": "^8.6|^9.0", + "illuminate/session": "^8.6|^9.0", + "illuminate/support": "^8.6|^9.0", + "illuminate/view": "^8.6|^9.0", + "livewire/livewire": "^2.6", + "php": "^8.0", + "spatie/laravel-package-tools": "^1.9" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Filament\\FilamentServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Filament\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Effortlessly build TALL-powered admin panels.", + "homepage": "https://github.com/filamentphp/filament", + "support": { + "issues": "https://github.com/filamentphp/filament/issues", + "source": "https://github.com/filamentphp/filament" + }, + "time": "2022-08-04T21:29:39+00:00" + }, + { + "name": "filament/forms", + "version": "v2.15.13", + "source": { + "type": "git", + "url": "https://github.com/filamentphp/forms.git", + "reference": "cdff670578205f43b860d6e5044cfbfb05947dde" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/filamentphp/forms/zipball/cdff670578205f43b860d6e5044cfbfb05947dde", + "reference": "cdff670578205f43b860d6e5044cfbfb05947dde", + "shasum": "" + }, + "require": { + "blade-ui-kit/blade-heroicons": "^1.2", + "danharrin/date-format-converter": "^0.2", + "filament/notifications": "self.version", + "filament/support": "self.version", + "illuminate/console": "^8.6|^9.0", + "illuminate/contracts": "^8.6|^9.0", + "illuminate/database": "^8.6|^9.0", + "illuminate/filesystem": "^8.6|^9.0", + "illuminate/support": "^8.6|^9.0", + "illuminate/validation": "^8.6|^9.0", + "illuminate/view": "^8.6|^9.0", + "livewire/livewire": "^2.6", + "php": "^8.0", + "spatie/laravel-package-tools": "^1.9" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Filament\\Forms\\FormsServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Filament\\Forms\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Effortlessly build TALL-powered forms.", + "homepage": "https://github.com/filamentphp/filament", + "support": { + "issues": "https://github.com/filamentphp/filament/issues", + "source": "https://github.com/filamentphp/filament" + }, + "time": "2022-08-04T21:29:34+00:00" + }, + { + "name": "filament/notifications", + "version": "v2.15.13", + "source": { + "type": "git", + "url": "https://github.com/filamentphp/notifications.git", + "reference": "fa88922541f4e4b0553213f1c3314739f93f0e04" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/filamentphp/notifications/zipball/fa88922541f4e4b0553213f1c3314739f93f0e04", + "reference": "fa88922541f4e4b0553213f1c3314739f93f0e04", + "shasum": "" + }, + "require": { + "blade-ui-kit/blade-heroicons": "^1.2", + "filament/support": "self.version", + "illuminate/contracts": "^8.6|^9.0", + "illuminate/filesystem": "^8.6|^9.0", + "illuminate/support": "^8.6|^9.0", + "livewire/livewire": "^2.6", + "php": "^8.0", + "spatie/laravel-package-tools": "^1.9" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Filament\\Notifications\\NotificationsServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Filament\\Notifications\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Effortlessly build TALL-powered notifications.", + "homepage": "https://github.com/filamentphp/filament", + "support": { + "issues": "https://github.com/filamentphp/filament/issues", + "source": "https://github.com/filamentphp/filament" + }, + "time": "2022-08-04T21:29:35+00:00" + }, + { + "name": "filament/support", + "version": "v2.15.13", + "source": { + "type": "git", + "url": "https://github.com/filamentphp/support.git", + "reference": "06a1eedf6fbd356082d4da938536746c2cb560c0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/filamentphp/support/zipball/06a1eedf6fbd356082d4da938536746c2cb560c0", + "reference": "06a1eedf6fbd356082d4da938536746c2cb560c0", + "shasum": "" + }, + "require": { + "illuminate/contracts": "^8.6|^9.0", + "illuminate/support": "^8.6|^9.0", + "illuminate/view": "^8.6|^9.0", + "php": "^8.0", + "spatie/laravel-package-tools": "^1.9", + "tgalopin/html-sanitizer": "^1.5" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Filament\\Support\\SupportServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Filament\\Support\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Associated helper methods and foundation code for Filament packages.", + "homepage": "https://github.com/filamentphp/filament", + "support": { + "issues": "https://github.com/filamentphp/filament/issues", + "source": "https://github.com/filamentphp/filament" + }, + "time": "2022-08-04T21:29:34+00:00" + }, + { + "name": "filament/tables", + "version": "v2.15.13", + "source": { + "type": "git", + "url": "https://github.com/filamentphp/tables.git", + "reference": "cd956edf00a1fedfa53266f396530849303bc211" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/filamentphp/tables/zipball/cd956edf00a1fedfa53266f396530849303bc211", + "reference": "cd956edf00a1fedfa53266f396530849303bc211", + "shasum": "" + }, + "require": { + "akaunting/laravel-money": "^1.2|^2.0|^3.0", + "blade-ui-kit/blade-heroicons": "^1.2", + "filament/forms": "self.version", + "filament/notifications": "self.version", + "filament/support": "self.version", + "illuminate/console": "^8.6|^9.0", + "illuminate/contracts": "^8.6|^9.0", + "illuminate/database": "^8.6|^9.0", + "illuminate/filesystem": "^8.6|^9.0", + "illuminate/support": "^8.6|^9.0", + "illuminate/view": "^8.6|^9.0", + "livewire/livewire": "^2.6", + "php": "^8.0", + "spatie/laravel-package-tools": "^1.9" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Filament\\Tables\\TablesServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Filament\\Tables\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Effortlessly build TALL-powered tables.", + "homepage": "https://github.com/filamentphp/filament", + "support": { + "issues": "https://github.com/filamentphp/filament/issues", + "source": "https://github.com/filamentphp/filament" + }, + "time": "2022-08-04T21:29:35+00:00" + }, { "name": "fruitcake/php-cors", "version": "v1.2.0", @@ -1554,6 +2151,217 @@ ], "time": "2022-04-17T13:12:02+00:00" }, + { + "name": "league/uri-parser", + "version": "1.4.1", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/uri-parser.git", + "reference": "671548427e4c932352d9b9279fdfa345bf63fa00" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/uri-parser/zipball/671548427e4c932352d9b9279fdfa345bf63fa00", + "reference": "671548427e4c932352d9b9279fdfa345bf63fa00", + "shasum": "" + }, + "require": { + "php": ">=7.0.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^2.0", + "phpstan/phpstan": "^0.9.2", + "phpstan/phpstan-phpunit": "^0.9.4", + "phpstan/phpstan-strict-rules": "^0.9.0", + "phpunit/phpunit": "^6.0" + }, + "suggest": { + "ext-intl": "Allow parsing RFC3987 compliant hosts", + "league/uri-schemes": "Allow validating and normalizing URI parsing results" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "League\\Uri\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ignace Nyamagana Butera", + "email": "nyamsprod@gmail.com", + "homepage": "https://nyamsprod.com" + } + ], + "description": "userland URI parser RFC 3986 compliant", + "homepage": "https://github.com/thephpleague/uri-parser", + "keywords": [ + "parse_url", + "parser", + "rfc3986", + "rfc3987", + "uri", + "url" + ], + "support": { + "issues": "https://github.com/thephpleague/uri-parser/issues", + "source": "https://github.com/thephpleague/uri-parser/tree/master" + }, + "time": "2018-11-22T07:55:51+00:00" + }, + { + "name": "livewire/livewire", + "version": "v2.10.6", + "source": { + "type": "git", + "url": "https://github.com/livewire/livewire.git", + "reference": "020ad095cf1239138b097d22b584e2701ec3edfb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/livewire/livewire/zipball/020ad095cf1239138b097d22b584e2701ec3edfb", + "reference": "020ad095cf1239138b097d22b584e2701ec3edfb", + "shasum": "" + }, + "require": { + "illuminate/database": "^7.0|^8.0|^9.0", + "illuminate/support": "^7.0|^8.0|^9.0", + "illuminate/validation": "^7.0|^8.0|^9.0", + "league/mime-type-detection": "^1.9", + "php": "^7.2.5|^8.0", + "symfony/http-kernel": "^5.0|^6.0" + }, + "require-dev": { + "calebporzio/sushi": "^2.1", + "laravel/framework": "^7.0|^8.0|^9.0", + "mockery/mockery": "^1.3.1", + "orchestra/testbench": "^5.0|^6.0|^7.0", + "orchestra/testbench-dusk": "^5.2|^6.0|^7.0", + "phpunit/phpunit": "^8.4|^9.0", + "psy/psysh": "@stable" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Livewire\\LivewireServiceProvider" + ], + "aliases": { + "Livewire": "Livewire\\Livewire" + } + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Livewire\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Caleb Porzio", + "email": "calebporzio@gmail.com" + } + ], + "description": "A front-end framework for Laravel.", + "support": { + "issues": "https://github.com/livewire/livewire/issues", + "source": "https://github.com/livewire/livewire/tree/v2.10.6" + }, + "funding": [ + { + "url": "https://github.com/livewire", + "type": "github" + } + ], + "time": "2022-06-19T02:54:20+00:00" + }, + { + "name": "masterminds/html5", + "version": "2.7.5", + "source": { + "type": "git", + "url": "https://github.com/Masterminds/html5-php.git", + "reference": "f640ac1bdddff06ea333a920c95bbad8872429ab" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Masterminds/html5-php/zipball/f640ac1bdddff06ea333a920c95bbad8872429ab", + "reference": "f640ac1bdddff06ea333a920c95bbad8872429ab", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "ext-dom": "*", + "ext-libxml": "*", + "php": ">=5.3.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7.21 || ^6 || ^7" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.7-dev" + } + }, + "autoload": { + "psr-4": { + "Masterminds\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Matt Butcher", + "email": "technosophos@gmail.com" + }, + { + "name": "Matt Farina", + "email": "matt@mattfarina.com" + }, + { + "name": "Asmir Mustafic", + "email": "goetas@gmail.com" + } + ], + "description": "An HTML5 parser and serializer.", + "homepage": "http://masterminds.github.io/html5-php", + "keywords": [ + "HTML5", + "dom", + "html", + "parser", + "querypath", + "serializer", + "xml" + ], + "support": { + "issues": "https://github.com/Masterminds/html5-php/issues", + "source": "https://github.com/Masterminds/html5-php/tree/2.7.5" + }, + "time": "2021-07-01T14:25:37+00:00" + }, { "name": "maximebf/debugbar", "version": "v1.18.0", @@ -2896,6 +3704,65 @@ ], "time": "2021-02-11T11:37:01+00:00" }, + { + "name": "spatie/laravel-package-tools", + "version": "1.12.1", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-package-tools.git", + "reference": "09f80fa240d44fafb1c70657c74ee44ffa929357" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-package-tools/zipball/09f80fa240d44fafb1c70657c74ee44ffa929357", + "reference": "09f80fa240d44fafb1c70657c74ee44ffa929357", + "shasum": "" + }, + "require": { + "illuminate/contracts": "^7.0|^8.0|^9.0", + "php": "^7.4|^8.0" + }, + "require-dev": { + "mockery/mockery": "^1.4", + "orchestra/testbench": "^5.0|^6.23|^7.0", + "phpunit/phpunit": "^9.4", + "spatie/test-time": "^1.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\LaravelPackageTools\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "role": "Developer" + } + ], + "description": "Tools for creating Laravel packages", + "homepage": "https://github.com/spatie/laravel-package-tools", + "keywords": [ + "laravel-package-tools", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/laravel-package-tools/issues", + "source": "https://github.com/spatie/laravel-package-tools/tree/1.12.1" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2022-06-28T14:29:26+00:00" + }, { "name": "symfony/console", "version": "v6.1.3", @@ -4997,6 +5864,55 @@ ], "time": "2022-07-20T13:46:29+00:00" }, + { + "name": "tgalopin/html-sanitizer", + "version": "1.5.0", + "source": { + "type": "git", + "url": "https://github.com/tgalopin/html-sanitizer.git", + "reference": "5d02dcb6f2ea4f505731eac440798caa1b3b0913" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/tgalopin/html-sanitizer/zipball/5d02dcb6f2ea4f505731eac440798caa1b3b0913", + "reference": "5d02dcb6f2ea4f505731eac440798caa1b3b0913", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "league/uri-parser": "^1.4.1", + "masterminds/html5": "^2.4", + "php": ">=7.1", + "psr/log": "^1.0|^2.0|^3.0" + }, + "require-dev": { + "phpunit/phpunit": "^7.4", + "symfony/var-dumper": "^4.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "HtmlSanitizer\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Titouan Galopin", + "email": "galopintitouan@gmail.com" + } + ], + "description": "Sanitize untrustworthy HTML user input", + "support": { + "issues": "https://github.com/tgalopin/html-sanitizer/issues", + "source": "https://github.com/tgalopin/html-sanitizer/tree/1.5.0" + }, + "abandoned": "symfony/html-sanitizer", + "time": "2021-09-14T08:27:50+00:00" + }, { "name": "tijsverkoyen/css-to-inline-styles", "version": "2.2.4", @@ -7305,5 +8221,5 @@ "php": ">=7.0.0" }, "platform-dev": [], - "plugin-api-version": "2.0.0" + "plugin-api-version": "2.3.0" } diff --git a/config/filament.php b/config/filament.php new file mode 100644 index 0000000..46bafdf --- /dev/null +++ b/config/filament.php @@ -0,0 +1,294 @@ + env('FILAMENT_PATH', 'admin'), + + /* + |-------------------------------------------------------------------------- + | Filament Core Path + |-------------------------------------------------------------------------- + | + | This is the path which Filament will use to load its core routes and assets. + | You may change it if it conflicts with your other routes. + | + */ + + 'core_path' => env('FILAMENT_CORE_PATH', 'filament'), + + /* + |-------------------------------------------------------------------------- + | Filament Domain + |-------------------------------------------------------------------------- + | + | You may change the domain where Filament should be active. If the domain + | is empty, all domains will be valid. + | + */ + + 'domain' => env('FILAMENT_DOMAIN'), + + /* + |-------------------------------------------------------------------------- + | Homepage URL + |-------------------------------------------------------------------------- + | + | This is the URL that Filament will redirect the user to when they click + | on the sidebar's header. + | + */ + + 'home_url' => '/', + + /* + |-------------------------------------------------------------------------- + | Brand Name + |-------------------------------------------------------------------------- + | + | This will be displayed on the login page and in the sidebar's header. + | + */ + + 'brand' => env('APP_NAME'), + + /* + |-------------------------------------------------------------------------- + | Auth + |-------------------------------------------------------------------------- + | + | This is the configuration that Filament will use to handle authentication + | into the admin panel. + | + */ + + 'auth' => [ + 'guard' => env('FILAMENT_AUTH_GUARD', 'web'), + 'pages' => [ + 'login' => \Filament\Http\Livewire\Auth\Login::class, + ], + ], + + /* + |-------------------------------------------------------------------------- + | Pages + |-------------------------------------------------------------------------- + | + | This is the namespace and directory that Filament will automatically + | register pages from. You may also register pages here. + | + */ + + 'pages' => [ + 'namespace' => 'App\\Filament\\Pages', + 'path' => app_path('Filament/Pages'), + 'register' => [ + Pages\Dashboard::class, + ], + ], + + /* + |-------------------------------------------------------------------------- + | Resources + |-------------------------------------------------------------------------- + | + | This is the namespace and directory that Filament will automatically + | register resources from. You may also register resources here. + | + */ + + 'resources' => [ + 'namespace' => 'App\\Filament\\Resources', + 'path' => app_path('Filament/Resources'), + 'register' => [], + ], + + /* + |-------------------------------------------------------------------------- + | Widgets + |-------------------------------------------------------------------------- + | + | This is the namespace and directory that Filament will automatically + | register dashboard widgets from. You may also register widgets here. + | + */ + + 'widgets' => [ + 'namespace' => 'App\\Filament\\Widgets', + 'path' => app_path('Filament/Widgets'), + 'register' => [ + Widgets\AccountWidget::class, + Widgets\FilamentInfoWidget::class, + ], + ], + + /* + |-------------------------------------------------------------------------- + | Livewire + |-------------------------------------------------------------------------- + | + | This is the namespace and directory that Filament will automatically + | register Livewire components inside. + | + */ + + 'livewire' => [ + 'namespace' => 'App\\Filament', + 'path' => app_path('Filament'), + ], + + /* + |-------------------------------------------------------------------------- + | Dark mode + |-------------------------------------------------------------------------- + | + | By enabling this feature, your users are able to select between a light + | and dark appearance for the admin panel, or let their system decide. + | + */ + + 'dark_mode' => false, + + /* + |-------------------------------------------------------------------------- + | Layout + |-------------------------------------------------------------------------- + | + | This is the configuration for the general layout of the admin panel. + | + | You may configure the max content width from `xl` to `7xl`, or `full` + | for no max width. + | + */ + + 'layout' => [ + 'actions' => [ + 'modal' => [ + 'actions' => [ + 'alignment' => 'left', + ], + ], + ], + 'forms' => [ + 'actions' => [ + 'alignment' => 'left', + ], + 'have_inline_labels' => false, + ], + 'footer' => [ + 'should_show_logo' => true, + ], + 'max_content_width' => null, + 'notifications' => [ + 'vertical_alignment' => 'top', + 'alignment' => 'right', + ], + 'sidebar' => [ + 'is_collapsible_on_desktop' => false, + 'groups' => [ + 'are_collapsible' => true, + ], + 'width' => null, + ], + ], + + /* + |-------------------------------------------------------------------------- + | Favicon + |-------------------------------------------------------------------------- + | + | This is the path to the favicon used for pages in the admin panel. + | + */ + + 'favicon' => null, + + /* + |-------------------------------------------------------------------------- + | Default Avatar Provider + |-------------------------------------------------------------------------- + | + | This is the service that will be used to retrieve default avatars if one + | has not been uploaded. + | + */ + + 'default_avatar_provider' => \Filament\AvatarProviders\UiAvatarsProvider::class, + + /* + |-------------------------------------------------------------------------- + | Default Filesystem Disk + |-------------------------------------------------------------------------- + | + | This is the storage disk Filament will use to put media. You may use any + | of the disks defined in the `config/filesystems.php`. + | + */ + + 'default_filesystem_disk' => env('FILAMENT_FILESYSTEM_DRIVER', 'public'), + + /* + |-------------------------------------------------------------------------- + | Google Fonts + |-------------------------------------------------------------------------- + | + | This is the URL for Google Fonts that should be loaded. You may use any + | font, or set to `null` to prevent any Google Fonts from loading. + | + | When using a custom font, you should also set the font family in your + | custom theme's `tailwind.config.js` file. + | + */ + + 'google_fonts' => 'https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap', + + /* + |-------------------------------------------------------------------------- + | Middleware + |-------------------------------------------------------------------------- + | + | You may customise the middleware stack that Filament uses to handle + | requests. + | + */ + + 'middleware' => [ + 'auth' => [ + Authenticate::class, + ], + 'base' => [ + EncryptCookies::class, + AddQueuedCookiesToResponse::class, + StartSession::class, + AuthenticateSession::class, + ShareErrorsFromSession::class, + VerifyCsrfToken::class, + SubstituteBindings::class, + DispatchServingFilamentEvent::class, + MirrorConfigToSubpackages::class, + ], + ], + +];