diff --git a/app/Livewire/Color/Color.php b/app/Livewire/Color/Color.php index de17f18..fcf4fd0 100644 --- a/app/Livewire/Color/Color.php +++ b/app/Livewire/Color/Color.php @@ -3,10 +3,7 @@ namespace App\Livewire\Color; use App\Models\Color as ColorModel; -use Flux\Flux; -use Illuminate\Support\Facades\Auth; use Livewire\Attributes\title; -use Livewire\Attributes\Validate; use Livewire\Component; use Livewire\WithPagination; @@ -15,104 +12,28 @@ class Color extends Component { use WithPagination; - // Validation - #[Validate('required')] - public $name = ''; - - #[Validate('required')] - public $hex = ''; - public $search =''; - // Edit Modal + Query - public $editquery = ''; - - public $editid = ''; - public $deleteid = ''; - - - public function create() { - @Auth::check(); - - - // Validate - $this->validate(); - - $color = new ColorModel(); - $color->name = $this->name; - $color->hex = $this->hex; - $color->save(); - - session()->flash('status', 'Color successfully created.'); - - // Clear the form - $this->reset(['name', 'hex']); - - // Close the modal - Flux::modal('createModal')->close(); + public function create(){ + return $this->redirectRoute('color.create', navigate: true); } - public function edit($colorid) { - @Auth::check(); - - $editid = $colorid; - $this->editid = $editid; - - $color =ColorModel::findOrFail($editid); - - $this->name = $color->name; - $this->hex = $color->hex; - - Flux::modal('editModal')->show(); + public function edit($id){ + return $this->redirectRoute('color.edit', $id, navigate: true); } - public function save($editid) { - @Auth::check(); - - $color = ColorModel::findOrFail($editid); - $color->name = $this->name; - $color->hex = $this->hex; - $color->save(); - - session()->flash('status', 'Color successfully updated.'); - - Flux::modal('editModal')->close(); + public function show($id){ + return $this->redirectRoute('color.show', $id, navigate: true); } - public function deleteModal($colorid) { - @Auth::check(); - - $deleteid = $colorid; - $this->deleteid = $deleteid; - - $color = ColorModel::findOrFail($colorid); - $this->name = $color->name; - $this->hex = $color->hex; - - Flux::modal('deleteModal')->show(); - } - public function delete($deleteid) { - @Auth::check(); - - $color = ColorModel::findOrFail($deleteid)->delete(); - - $this->deleteid = $deleteid; - Flux::modal('deleteModal')->close(); - - // Clear the form - $this->reset(['name', 'hex', 'deleteid']); - - session()->flash('status', 'Color successfully deleted.'); + public function delete($id){ + ColorModel::destroy($id); } - public function cancel() { - $this->reset(['name', 'hex', 'deleteid']); - Flux::modals()->close(); - } public function render() { return view('livewire.color.index', [ - 'colors' => ColorModel::search('name', $this->search)->paginate(20) + 'colors' => ColorModel::search('name', $this->search)->paginate(10) ]); } } diff --git a/app/Livewire/Color/CreateColor.php b/app/Livewire/Color/CreateColor.php new file mode 100644 index 0000000..90a0ebe --- /dev/null +++ b/app/Livewire/Color/CreateColor.php @@ -0,0 +1,41 @@ +validate([ + 'name' => ['required', 'string', 'max:255'], + 'hex' => ['required', 'string', 'size:6', 'regex:/^[0-9A-F]{6}$/'], + ]); + + $color = new Model(); + $color->name = $this->name; + $color->hex = $this->hex; + $color->save(); + + return $this->redirectRoute('color.show', $color->id, navigate: true); + } + + public function cancel(){ + return $this->redirectRoute('color.index', navigate: true); + } + + public function render() + { + return view('livewire.color.create', [ + ]); + } +} diff --git a/app/Livewire/Color/EditColor.php b/app/Livewire/Color/EditColor.php new file mode 100644 index 0000000..9d732c2 --- /dev/null +++ b/app/Livewire/Color/EditColor.php @@ -0,0 +1,48 @@ +color = $color; + $this->name = $color->name; + $this->hex = $color->hex; + } + + #[Validate('required')] + public function save(){ + $this->validate([ + 'name' => ['required', 'string', 'max:255'], + 'hex' => ['required', 'string', 'size:6', 'regex:/^[0-9A-F]{6}$/'], + ]); + + $this->color->update([ + 'name' => $this->name, + 'hex' => $this->hex, + ]); + + return $this->redirectRoute('color.show', $this->color->id, navigate: true); + } + + public function cancel(){ + return $this->redirectRoute('color.index', navigate: true); + } + + public function render() + { + return view('livewire.color.edit', [ + ]); + } +} diff --git a/app/Livewire/Color/ShowColor.php b/app/Livewire/Color/ShowColor.php new file mode 100644 index 0000000..4bc0f6f --- /dev/null +++ b/app/Livewire/Color/ShowColor.php @@ -0,0 +1,31 @@ +color = $color; + } + + public function edit($id){ + return $this->redirectRoute('color.edit', $id, navigate: true); + } + + public function back(){ + return $this->redirectRoute('color.index', navigate: true); + } + + public function render() + { + return view('livewire.color.show', [ + ]); + } +} diff --git a/app/Livewire/Dashboard.php b/app/Livewire/Dashboard.php index d587ae8..78fdf52 100644 --- a/app/Livewire/Dashboard.php +++ b/app/Livewire/Dashboard.php @@ -12,7 +12,7 @@ class Dashboard extends Component public function render() { return view('livewire.dashboard', [ - 'manufacturer' => Manufacturer::all()->sortBy('filament_count')->reverse() + 'manufacturers' => Manufacturer::all()->sortBy('filament_count')->reverse() ]); } } diff --git a/app/Livewire/Type/CreateType.php b/app/Livewire/Type/CreateType.php index 60cf3e5..cec8cd9 100644 --- a/app/Livewire/Type/CreateType.php +++ b/app/Livewire/Type/CreateType.php @@ -34,11 +34,11 @@ class CreateType extends Component $type->description = $this->description; $type->save(); - return redirect()->route('type.index'); + return $this->redirectRoute('type.show', $type->id, navigate: true); } public function cancel(){ - return redirect()->route('type.index'); + return $this->redirectRoute('type.index', navigate: true); } public function render() { diff --git a/app/Livewire/Type/EditType.php b/app/Livewire/Type/EditType.php index 3655d17..c8270c4 100644 --- a/app/Livewire/Type/EditType.php +++ b/app/Livewire/Type/EditType.php @@ -2,8 +2,7 @@ namespace App\Livewire\Type; -use App\Models\FilamentType; -use Illuminate\Support\Facades\Auth; +use App\Models\FilamentType as Model; use Livewire\Attributes\title; use Livewire\Attributes\Validate; use Livewire\Component; @@ -11,29 +10,41 @@ use Livewire\Component; #[title('Types')] class EditType extends Component { - public FilamentType $type; + public Model $type; + + public string $name = ''; + public string $description = ''; + + public function mount(Model $type) + { + $this->type = $type; + $this->name = $type->name; + $this->description = $type->description; + } // Validation #[Validate('required')] - - public function save() { + public function save() + { $this->validate([ 'type.name' => ['required', 'string', 'max:255'], 'type.description' => ['nullable', 'string'], ]); - $this->type->save(); + $this->type->update([ + 'name' => $this->name, + 'description' => $this->description, + ]); - return redirect()->route('type.show', $this->type->id ); + + return $this->redirectRoute('type.show', $this->type->id, navigate: true); } - public function cancel(){ - return redirect()->route('type.index'); + public function cancel() + { + return $this->redirectRoute('type.index', navigate: true); } - public function mount(FilamentType $type){ - $this->type = $type; - } public function render() { return view('livewire.type.edit', [ diff --git a/app/Livewire/Type/ShowType.php b/app/Livewire/Type/ShowType.php index aa4ce4a..e716745 100644 --- a/app/Livewire/Type/ShowType.php +++ b/app/Livewire/Type/ShowType.php @@ -16,11 +16,11 @@ class ShowType extends Component public FilamentType $type; public function back(){ - return redirect()->route('type.index'); + return $this->redirectRoute('type.index', navigate: true); } public function edit($id){ - return redirect()->route('type.edit', $id); + return $this->redirectRoute('type.edit', $id, navigate: true); } public function mount(FilamentType $type){ diff --git a/app/Livewire/Type/Type.php b/app/Livewire/Type/Type.php index e89c65f..ca12693 100644 --- a/app/Livewire/Type/Type.php +++ b/app/Livewire/Type/Type.php @@ -20,15 +20,19 @@ class Type extends Component // Validation #[Validate('required')] - public function create() { - @Auth::check(); - return redirect()->route('type.create'); + public function create() + { + return $this->redirectRoute('type.create', navigate: true); } - public function edit($id){ - return redirect()->route('type.edit', $id); + + public function edit($id) + { + return $this->redirectRoute('type.edit', $id, navigate: true); } - public function show($id){ - return redirect()->route('type.show', $id); + + public function show($id) + { + return $this->redirectRoute('type.show', $id, navigate: true); } public function delete($id){ @Auth::check(); diff --git a/app/Models/Color.php b/app/Models/Color.php index ae71207..a4c4094 100644 --- a/app/Models/Color.php +++ b/app/Models/Color.php @@ -15,17 +15,5 @@ class Color extends Model 'hex' ]; - // Color has many filaments - public function filaments() - { - return $this->hasMany(Filament::class); - } - - // Color has many filament type - public function filamentTypes() - { - return $this->hasMany(FilamentType::class); - } - } diff --git a/database/migrations/2025_03_10_182844_create_colors.php b/database/migrations/2025_03_10_182844_create_colors.php index ae41f5b..ad8b28a 100644 --- a/database/migrations/2025_03_10_182844_create_colors.php +++ b/database/migrations/2025_03_10_182844_create_colors.php @@ -11,7 +11,7 @@ return new class extends Migration */ public function up(): void { - Schema::create('color', function (Blueprint $table) { + Schema::create('colors', function (Blueprint $table) { $table->id(); $table->string('name')->required(); $table->string('hex')->required(); diff --git a/database/migrations/2025_03_10_182903_create_manufacturers.php b/database/migrations/2025_03_10_182903_create_manufacturers.php index c0d814c..3a71ea2 100644 --- a/database/migrations/2025_03_10_182903_create_manufacturers.php +++ b/database/migrations/2025_03_10_182903_create_manufacturers.php @@ -11,7 +11,7 @@ return new class extends Migration */ public function up(): void { - Schema::create('manufacturer', function (Blueprint $table) { + Schema::create('manufacturers', function (Blueprint $table) { $table->id(); $table->string('name')->required(); $table->string('description')->nullable(); diff --git a/database/migrations/2025_03_10_183058_create_filaments.php b/database/migrations/2025_03_10_183058_create_filaments.php index 9d33fcf..cb5fa20 100644 --- a/database/migrations/2025_03_10_183058_create_filaments.php +++ b/database/migrations/2025_03_10_183058_create_filaments.php @@ -13,13 +13,14 @@ return new class extends Migration { Schema::create('filaments', function (Blueprint $table) { $table->id(); - $table->string('name')->required(); + $table->string('name'); $table->string('description')->nullable(); - $table->foreignId('color_id')->constrained()->onUpdate('cascade')->onDelete('cascade'); - $table->foreignId('manufacturer_id')->constrained()->onUpdate('cascade')->onDelete('cascade');; - $table->foreignId('filament_type_id')->constrained()->onUpdate('cascade')->onDelete('cascade');; - $table->integer('weight')->required(); - $table->decimal('diameter', 10, 2)->required(); + // Foreign keys pointing to existing tables with non-standard names + $table->foreignId('color_id')->constrained('colors')->onUpdate('cascade')->onDelete('cascade'); + $table->foreignId('manufacturer_id')->constrained('manufacturers')->onUpdate('cascade')->onDelete('cascade'); + $table->foreignId('filament_type_id')->constrained('filament_types')->onUpdate('cascade')->onDelete('cascade'); + $table->integer('weight'); + $table->decimal('diameter', 10, 2); $table->decimal('price', 10, 2)->nullable(); $table->string('finish')->nullable(); $table->string('image')->nullable(); diff --git a/database/migrations/2025_03_15_185700_create_buildplates_table.php b/database/migrations/2025_03_15_185700_create_buildplates_table.php index 8872e30..e58e012 100644 --- a/database/migrations/2025_03_15_185700_create_buildplates_table.php +++ b/database/migrations/2025_03_15_185700_create_buildplates_table.php @@ -11,13 +11,12 @@ return new class extends Migration */ public function up(): void { - Schema::create('buildplate', function (Blueprint $table) { + Schema::create('buildplates', function (Blueprint $table) { $table->id(); $table->string('name'); $table->string('description'); - $table->foreignId('manufacturer_id')->constrained(); + $table->foreignId('manufacturer_id')->constrained('manufacturers'); $table->string('temp_max'); - $table->string('amount'); $table->timestamps(); }); } diff --git a/database/seeders/ColorSeeder.php b/database/seeders/ColorSeeder.php index 2fe0b0e..8056a84 100644 --- a/database/seeders/ColorSeeder.php +++ b/database/seeders/ColorSeeder.php @@ -15,20 +15,20 @@ class ColorSeeder extends Seeder { // Seed predefined Colors $colors = [ - ['name' => 'Red', 'hex' => '#FF0000'], - ['name' => 'Green', 'hex' => '#00FF00'], - ['name' => 'Blue', 'hex' => '#0000FF'], - ['name' => 'Yellow', 'hex' => '#FFFF00'], - ['name' => 'Orange', 'hex' => '#FFA500'], - ['name' => 'Purple', 'hex' => '#800080'], - ['name' => 'Pink', 'hex' => '#FFC0CB'], - ['name' => 'Brown', 'hex' => '#A52A2A'], - ['name' => 'Gray', 'hex' => '#808080'], - ['name' => 'Black', 'hex' => '#000000'], - ['name' => 'White', 'hex' => '#FFFFFF'], - ['name' => 'Gold', 'hex' => '#FFD700'], - ['name' => 'Silver', 'hex' => '#C0C0C0'], - ['name' => 'Cyan', 'hex' => '#00FFFF'] + ['name' => 'Red', 'hex' => 'FF0000'], + ['name' => 'Green', 'hex' => '00FF00'], + ['name' => 'Blue', 'hex' => '0000FF'], + ['name' => 'Yellow', 'hex' => 'FFFF00'], + ['name' => 'Orange', 'hex' => 'FFA500'], + ['name' => 'Purple', 'hex' => '800080'], + ['name' => 'Pink', 'hex' => 'FFC0CB'], + ['name' => 'Brown', 'hex' => 'A52A2A'], + ['name' => 'Gray', 'hex' => '808080'], + ['name' => 'Black', 'hex' => '000000'], + ['name' => 'White', 'hex' => 'FFFFFF'], + ['name' => 'Gold', 'hex' => 'FFD700'], + ['name' => 'Silver', 'hex' => 'C0C0C0'], + ['name' => 'Cyan', 'hex' => '00FFFF'] ]; foreach ($colors as $color) { diff --git a/resources/css/app.css b/resources/css/app.css index 19e51c1..b520f32 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -8,15 +8,18 @@ @source '../../vendor/laravel/jetstream/**/*.blade.php'; @theme { - --font-sans: - Inter, ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', + --font-sans: Inter, ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; - --color-jet: #33312e; - --color-pumpkin: #FE7F2D; - --color-sunglow: #FCCA46; - --color-olivine: #A1C181; - --color-zomp: #619B8A; + --color-jet: #33312e; + --color-pumpkin: #FE7F2D; + --color-olivine: #A1C181; + + --color-cornflower: #8ecae6; + --color-pacific: #219ebc; + --color-elephant: #023047; + --color-selective: #ffb703; + --color-gold-drop: #fb8500; --color-jet-50: #f6f5f5; --color-jet-100: #e8e6e5; @@ -54,41 +57,65 @@ --color-olivine-900: #324027; --color-olivine-950: #182211; - --color-nuke-50: oklch(0.99 0.0358 117.24); - --color-nuke-100: oklch(0.97 0.0779 120.18); - --color-nuke-200: oklch(0.95 0.1412 121.89); - --color-nuke-300: oklch(0.93 0.2049 125.66); - --color-nuke-400: oklch(0.91 0.2468 130.72); - --color-nuke-500: oklch(0.84 0.231054 131.6647); - --color-nuke-600: oklch(0.71 0.197756 132.5804); - --color-nuke-700: oklch(0.57 0.1604 132.33); - --color-nuke-800: oklch(0.48 0.1306 131.73); - --color-nuke-900: oklch(0.43 0.112 131.31); - --color-nuke-950: oklch(0.29 0.0821 132.58); + --color-cornflower-50: #f2f9fd; + --color-cornflower-100: #e5f1f9; + --color-cornflower-200: #c5e3f2; + --color-cornflower-300: #8ecae6; + --color-cornflower-400: #58b2d8; + --color-cornflower-500: #3298c5; + --color-cornflower-600: #237ba6; + --color-cornflower-700: #1d6187; + --color-cornflower-800: #1c5370; + --color-cornflower-900: #1c465e; + --color-cornflower-950: #132d3e; - --color-etheral-50:oklch(0.98 0.019 204.85); - --color-etheral-100:oklch(0.95 0.0444 210.46); - --color-etheral-200:oklch(0.9 0.0777 214.41); - --color-etheral-300:oklch(0.82 0.1327 218.85); - --color-etheral-400:oklch(0.77 0.1401 223.63); - --color-etheral-500:oklch(0.68 0.1345 228.8); - --color-etheral-600:oklch(0.58 0.1216 233.84); - --color-etheral-700:oklch(0.5 0.1034 235.16); - --color-etheral-800:oklch(0.43 0.0843 235.25); - --color-etheral-900:oklch(0.38 0.0743 238.47); - --color-etheral-950:oklch(0.29 0.0601 239.11); + --color-pacific-50: #eefbfd; + --color-pacific-100: #d5f3f8; + --color-pacific-200: #b0e7f1; + --color-pacific-300: #7ad5e6; + --color-pacific-400: #3cb9d4; + --color-pacific-500: #219ebc; + --color-pacific-600: #1e7e9c; + --color-pacific-700: #1f657f; + --color-pacific-800: #215569; + --color-pacific-900: #204659; + --color-pacific-950: #102e3c; - --color-blackout-50:oklch(0.97 0 0); - --color-blackout-100:oklch(0.93 0 0); - --color-blackout-200:oklch(0.86 0 0); - --color-blackout-300:oklch(0.76 0 0); - --color-blackout-400:oklch(0.63 0 0); - --color-blackout-500:oklch(0.53 0 0); - --color-blackout-600:oklch(0.48 0 0); - --color-blackout-700:oklch(0.43 0 0); - --color-blackout-800:oklch(0.39 0 0); - --color-blackout-900:oklch(0.36 0 0); - --color-blackout-950:oklch(0.31 0 0); + --color-elephant-50: #effaff; + --color-elephant-100: #ddf5ff; + --color-elephant-200: #b4edff; + --color-elephant-300: #72e0ff; + --color-elephant-400: #27d2ff; + --color-elephant-500: #00bdfc; + --color-elephant-600: #0098d9; + --color-elephant-700: #0079af; + --color-elephant-800: #006690; + --color-elephant-900: #035477; + --color-elephant-950: #023047; + + --color-selective-50: #fffeea; + --color-selective-100: #fff9c5; + --color-selective-200: #fff485; + --color-selective-300: #ffe746; + --color-selective-400: #ffd71b; + --color-selective-500: #ffb703; + --color-selective-600: #e28b00; + --color-selective-700: #bb6202; + --color-selective-800: #984b08; + --color-selective-900: #7c3e0b; + --color-selective-950: #481f00; + + --color-gold-drop-50: #fffbec; + --color-gold-drop-100: #fff5d3; + --color-gold-drop-200: #ffe8a5; + --color-gold-drop-300: #ffd56d; + --color-gold-drop-400: #ffb732; + --color-gold-drop-500: #ff9f0a; + --color-gold-drop-600: #fb8500; + --color-gold-drop-700: #cc6302; + --color-gold-drop-800: #a14c0b; + --color-gold-drop-900: #82400c; + --color-gold-drop-950: #461e04; } /* diff --git a/resources/views/components/header.blade.php b/resources/views/components/header.blade.php index f06320a..d5a0ede 100644 --- a/resources/views/components/header.blade.php +++ b/resources/views/components/header.blade.php @@ -1,4 +1,4 @@ -
+
@isset($headerleft) diff --git a/resources/views/components/layouts/app.blade.php b/resources/views/components/layouts/app.blade.php index 0171f45..ef8d257 100644 --- a/resources/views/components/layouts/app.blade.php +++ b/resources/views/components/layouts/app.blade.php @@ -22,7 +22,7 @@ {{ $title . ' | ' . config('app.name') ?? config('app.name') }} - +
- -
-
-
- Create color - Create a new color. -
- - -
- - Cancel - Create -
-
-
-
- - - @empty($color) - @else - -
-
-
- Edit color - Edit an existing color. -
- - -
- - Cancel - Save -
-
-
-
- @endempty - - - -
-
-
- Delete color? - -

You're about to delete this color.

-

This action cannot be reversed.

-
-
- - -
- - Cancel - Delete color -
-
-
-
diff --git a/resources/views/livewire/color/show.blade.php b/resources/views/livewire/color/show.blade.php new file mode 100644 index 0000000..07c0798 --- /dev/null +++ b/resources/views/livewire/color/show.blade.php @@ -0,0 +1,40 @@ +
+ + {{ __('Create Color') }} + + + Back + Edit + + + +
+
+
+

Color Information

+

Color details.

+
+
+
+
+
Name
+
+ {{ $color->name }} +
+
+
+
Hex Code
+
+
+
+ #{{ $color->hex }} +
+
+
+
+
+
+ +
+ +
diff --git a/resources/views/livewire/dashboard.blade.php b/resources/views/livewire/dashboard.blade.php index d4cd72a..4c1f6a9 100644 --- a/resources/views/livewire/dashboard.blade.php +++ b/resources/views/livewire/dashboard.blade.php @@ -1,12 +1,6 @@
{{ __('Dashboard') }} - - - - Create Buildplate - -
diff --git a/resources/views/livewire/type/create.blade.php b/resources/views/livewire/type/create.blade.php index 0357c0b..ec61a6a 100644 --- a/resources/views/livewire/type/create.blade.php +++ b/resources/views/livewire/type/create.blade.php @@ -4,28 +4,28 @@ {{ __('Create Type') }} - Save - Cancel + Save + Cancel -
+

Type Information

-

Type details.

+

Type details.

-
Name
-
+
Name
+
-
Description
-
+
Description
+
diff --git a/resources/views/livewire/type/edit.blade.php b/resources/views/livewire/type/edit.blade.php index 853686a..936fbf6 100644 --- a/resources/views/livewire/type/edit.blade.php +++ b/resources/views/livewire/type/edit.blade.php @@ -4,30 +4,29 @@ {{ __('Create Type') }} - Save - Cancel + Save + Cancel -
+
-
Loaded: {{ $type?->id }} - {{ $type?->name }}

Type Information

-

Type details.

+

Type details.

-
Name
-
- +
Name
+
+
-
Description
-
- +
Description
+
+
diff --git a/resources/views/livewire/type/index.blade.php b/resources/views/livewire/type/index.blade.php index dc80e82..6671b77 100644 --- a/resources/views/livewire/type/index.blade.php +++ b/resources/views/livewire/type/index.blade.php @@ -3,19 +3,20 @@ {{ __('Types') }} - + - Create Type - + Create Type + + -
+
Name @@ -25,15 +26,15 @@ @foreach ($types as $type) - -

{{ $type->name }}

+ +

{{ $type->name }}

{{ $type->description }}

{{ $type->amount }}

- - - + + +
diff --git a/resources/views/livewire/type/show.blade.php b/resources/views/livewire/type/show.blade.php index 65cc1d5..40bf1ab 100644 --- a/resources/views/livewire/type/show.blade.php +++ b/resources/views/livewire/type/show.blade.php @@ -3,12 +3,12 @@ {{ __('Show Type - ') . $type->name }} - Back - Edit + Back + Edit -
+

Type Information

diff --git a/resources/views/vendor/livewire/simple-tailwind.blade.php b/resources/views/vendor/livewire/simple-tailwind.blade.php index 1030361..d7f2560 100644 --- a/resources/views/vendor/livewire/simple-tailwind.blade.php +++ b/resources/views/vendor/livewire/simple-tailwind.blade.php @@ -46,7 +46,7 @@ $scrollIntoViewJsSnippet = ($scrollTo !== false) @endif @else - + {!! __('pagination.next') !!} @endif diff --git a/resources/views/vendor/livewire/tailwind.blade.php b/resources/views/vendor/livewire/tailwind.blade.php index 7b70086..9ad7f28 100644 --- a/resources/views/vendor/livewire/tailwind.blade.php +++ b/resources/views/vendor/livewire/tailwind.blade.php @@ -16,11 +16,11 @@ $scrollIntoViewJsSnippet = ($scrollTo !== false)
@if ($paginator->onFirstPage()) - + {!! __('pagination.previous') !!} @else - @endif @@ -28,11 +28,11 @@ $scrollIntoViewJsSnippet = ($scrollTo !== false) @if ($paginator->hasMorePages()) - @else - + {!! __('pagination.next') !!} @endif @@ -58,14 +58,14 @@ $scrollIntoViewJsSnippet = ($scrollTo !== false) {{-- Previous Page Link --}} @if ($paginator->onFirstPage()) - @else - @endif @@ -103,14 +103,14 @@ $scrollIntoViewJsSnippet = ($scrollTo !== false) {{-- Next Page Link --}} @if ($paginator->hasMorePages()) - @else -