Custom Theme Fixed Header
This component uses the Custom Theme TailwindHeaderFixed
.
You can find its source code in our GitHub Repository.
ID
|
Name
|
Category
|
Price
|
In Stock
|
Created At
|
---|---|---|---|---|---|
1
|
Arkansas Possum Pie
|
Garnish
|
243,39 €
|
Yes
|
06/07/2024
|
2
|
Albacore Tuna Melt
|
Pie
|
63,11 €
|
Yes
|
03/07/2024
|
3
|
борщ
|
Soup
|
100,19 €
|
Yes
|
26/06/2024
|
4
|
Bacalhau com natas
|
Garnish
|
238,11 €
|
Yes
|
02/06/2024
|
5
|
Baba Ghanoush
|
Pasta
|
143,09 €
|
No
|
30/05/2024
|
6
|
Bacon Cheeseburger
|
Fish
|
257,39 €
|
Yes
|
13/06/2024
|
7
|
Baked potato
|
Garnish
|
171,89 €
|
No
|
05/07/2024
|
8
|
Baklava
|
Dessert
|
143,46 €
|
No
|
14/07/2024
|
9
|
Bangers and mash
|
Dessert
|
253,72 €
|
No
|
26/05/2024
|
10
|
Black Pudding
|
Pasta
|
248,73 €
|
No
|
10/07/2024
|
11
|
Blue cheese dressing
|
Pasta
|
130,90 €
|
No
|
25/05/2024
|
12
|
Boulliabaise
|
Soup
|
104,68 €
|
No
|
21/06/2024
|
13
|
Bread
|
Garnish
|
60,60 €
|
No
|
18/06/2024
|
14
|
Breaded shrimp
|
Pie
|
186,47 €
|
No
|
31/05/2024
|
15
|
Breakfast burrito
|
Pasta
|
199,36 €
|
No
|
18/05/2024
|
16
|
Brisket
|
Soup
|
138,11 €
|
No
|
25/06/2024
|
17
|
Brunswick stew
|
Meat
|
165,15 €
|
No
|
01/07/2024
|
18
|
Bruschetta
|
Pasta
|
165,87 €
|
No
|
28/05/2024
|
19
|
Buffalo Wings
|
Garnish
|
86,31 €
|
No
|
16/07/2024
|
20
|
Buffalo burger
|
Pie
|
278,57 €
|
No
|
23/06/2024
|
21
|
Buffalo wing
|
Soup
|
82,90 €
|
No
|
08/07/2024
|
22
|
Calamari
|
Fish
|
252,14 €
|
No
|
28/05/2024
|
23
|
Carne pizzaiola
|
Garnish
|
170,92 €
|
No
|
04/06/2024
|
24
|
Caviar
|
Meat
|
164,59 €
|
No
|
25/05/2024
|
25
|
Ceviche
|
Pie
|
99,14 €
|
No
|
09/07/2024
|
26
|
Cheesecake
|
Pasta
|
152,08 €
|
No
|
02/06/2024
|
27
|
Chicken Biryani
|
Garnish
|
131,40 €
|
No
|
28/06/2024
|
28
|
Chicken Tikka Masala
|
Soup
|
191,50 €
|
No
|
28/06/2024
|
29
|
Chicken and waffles
|
Meat
|
229,52 €
|
No
|
25/05/2024
|
30
|
Chicken bog
|
Meat
|
212,75 €
|
No
|
10/07/2024
|
31
|
Chicken fingers
|
Pie
|
51,09 €
|
No
|
01/07/2024
|
32
|
Chile Relleno
|
Pasta
|
235,89 €
|
No
|
27/06/2024
|
33
|
Chili con carne
|
Dessert
|
269,46 €
|
No
|
22/05/2024
|
34
|
Chili dog
|
Soup
|
248,95 €
|
No
|
07/07/2024
|
35
|
Chimichanga
|
Pie
|
176,80 €
|
No
|
14/07/2024
|
36
|
Chinese food
|
Garnish
|
137,42 €
|
No
|
16/06/2024
|
37
|
Chips and dip
|
Dessert
|
171,51 €
|
No
|
13/07/2024
|
38
|
Choco pie
|
Fish
|
86,12 €
|
No
|
05/07/2024
|
39
|
Chocolate Brownie
|
Pasta
|
207,26 €
|
No
|
06/07/2024
|
41
|
Chocolate cheesecake
|
Meat
|
109,92 €
|
No
|
07/07/2024
|
42
|
Chowder
|
Garnish
|
271,34 €
|
No
|
31/05/2024
|
43
|
Churrasco
|
Pasta
|
245,44 €
|
No
|
18/05/2024
|
44
|
Cinnamon Roll
|
Pie
|
97,96 €
|
No
|
08/06/2024
|
45
|
Coleslaw
|
Soup
|
208,73 €
|
No
|
31/05/2024
|
46
|
Coq Au Vin
|
Soup
|
144,03 €
|
No
|
31/05/2024
|
47
|
Cordon bleu
|
Dessert
|
188,71 €
|
No
|
27/05/2024
|
48
|
Currywurst
|
Garnish
|
207,42 €
|
No
|
07/07/2024
|
49
|
Eggo
|
Pasta
|
198,27 €
|
No
|
13/06/2024
|
50
|
Eggs Benedict
|
Pie
|
270,30 €
|
No
|
08/06/2024
|
51
|
Eggs Neptune
|
Dessert
|
59,09 €
|
No
|
12/07/2024
|
52
|
Empanada
|
Pasta
|
221,69 €
|
No
|
03/06/2024
|
53
|
Energy bar
|
Pie
|
54,30 €
|
No
|
19/05/2024
|
54
|
Escargot
|
Pasta
|
229,86 €
|
No
|
30/06/2024
|
55
|
Fajitas
|
Dessert
|
212,07 €
|
No
|
10/07/2024
|
56
|
Falafel
|
Soup
|
182,89 €
|
No
|
27/06/2024
|
57
|
Fattoush Salad
|
Fish
|
248,09 €
|
No
|
09/07/2024
|
58
|
Fish Tacos
|
Pasta
|
78,67 €
|
No
|
06/07/2024
|
59
|
Fish and Chips!
|
Meat
|
173,28 €
|
No
|
19/06/2024
|
60
|
Flan
|
Dessert
|
187,29 €
|
Yes
|
10/07/2024
|
61
|
Fortune cookie
|
Pie
|
246,12 €
|
No
|
14/06/2024
|
62
|
Francesinha
|
Meat
|
100,15 €
|
Yes
|
26/06/2024
|
63
|
French Onion Soup
|
Meat
|
268,83 €
|
No
|
16/07/2024
|
64
|
Fries
|
Meat
|
124,79 €
|
Yes
|
01/07/2024
|
65
|
Frito Pie
|
Fish
|
54,55 €
|
Yes
|
18/05/2024
|
66
|
Fry sauce
|
Pasta
|
232,40 €
|
Yes
|
04/07/2024
|
67
|
Funnel Cake
|
Pasta
|
195,10 €
|
No
|
13/07/2024
|
68
|
Garden salad
|
Dessert
|
156,63 €
|
No
|
08/06/2024
|
69
|
Garlic bread
|
Pasta
|
261,24 €
|
No
|
23/06/2024
|
70
|
Gazpacho
|
Meat
|
180,48 €
|
No
|
01/06/2024
|
71
|
Goulash
|
Pie
|
189,68 €
|
No
|
08/07/2024
|
72
|
Greek salad
|
Dessert
|
160,45 €
|
No
|
23/06/2024
|
73
|
Grilled Snake
|
Dessert
|
146,29 €
|
No
|
10/06/2024
|
74
|
γύρος
|
Fish
|
101,21 €
|
No
|
02/06/2024
|
75
|
Gumbo
|
Fish
|
95,38 €
|
No
|
28/06/2024
|
76
|
Gyoza
|
Pasta
|
166,74 €
|
No
|
15/06/2024
|
77
|
Huevos Rancheros
|
Garnish
|
55,36 €
|
No
|
30/05/2024
|
78
|
Hummus
|
Garnish
|
212,46 €
|
No
|
26/06/2024
|
79
|
Ice Cream
|
Fish
|
217,46 €
|
Yes
|
22/05/2024
|
80
|
Key Lime Pie
|
Soup
|
90,70 €
|
No
|
25/05/2024
|
81
|
Kimchi
|
Fish
|
107,45 €
|
No
|
21/05/2024
|
82
|
Kobe Beef
|
Pasta
|
264,93 €
|
No
|
05/06/2024
|
83
|
Kung Pao Chicken
|
Meat
|
120,66 €
|
Yes
|
21/06/2024
|
84
|
Laksa
|
Meat
|
90,22 €
|
Yes
|
04/06/2024
|
85
|
Lasagna
|
Dessert
|
167,72 €
|
No
|
30/05/2024
|
86
|
Liver and onions
|
Pie
|
55,45 €
|
No
|
13/06/2024
|
87
|
Lobster Newberg
|
Garnish
|
104,75 €
|
No
|
25/06/2024
|
88
|
Lobster roll
|
Garnish
|
247,05 €
|
No
|
02/07/2024
|
89
|
London broil
|
Pie
|
156,65 €
|
No
|
29/06/2024
|
90
|
Lorna Doone
|
Dessert
|
141,65 €
|
Yes
|
18/06/2024
|
91
|
Low Country Boil
|
Pie
|
150,20 €
|
Yes
|
13/07/2024
|
92
|
Macaroni and Cheese
|
Pie
|
87,36 €
|
No
|
16/06/2024
|
93
|
Macaroni and cheese
|
Fish
|
207,43 €
|
Yes
|
22/06/2024
|
94
|
Macaroni salad
|
Pie
|
158,63 €
|
Yes
|
01/07/2024
|
95
|
Maine Lobster
|
Dessert
|
235,32 €
|
Yes
|
10/06/2024
|
96
|
Mango and Sticky Rice
|
Fish
|
161,33 €
|
Yes
|
10/06/2024
|
97
|
Maple Bacon Doughnut
|
Dessert
|
140,29 €
|
No
|
17/06/2024
|
98
|
Maple bacon donut
|
Meat
|
275,85 €
|
No
|
18/05/2024
|
99
|
Maraca pie
|
Pie
|
120,20 €
|
Yes
|
15/07/2024
|
100
|
Margherita Pizza
|
Pasta
|
83,59 €
|
No
|
12/07/2024
|
101
|
Mashed potato
|
Dessert
|
177,89 €
|
Yes
|
14/07/2024
|
102
|
Mashed pumpkin
|
Fish
|
222,98 €
|
Yes
|
05/06/2024
|
103
|
Massaman Curry
|
Pasta
|
50,69 €
|
No
|
26/05/2024
|
104
|
Matzo Ball Soup
|
Soup
|
263,24 €
|
Yes
|
02/06/2024
|
105
|
Meat Feast Pizza
|
Meat
|
138,47 €
|
Yes
|
07/07/2024
|
106
|
Meatcake
|
Pie
|
77,46 €
|
Yes
|
02/07/2024
|
107
|
Meatloaf
|
Garnish
|
215,71 €
|
Yes
|
05/06/2024
|
108
|
Milkshake
|
Garnish
|
51,69 €
|
Yes
|
26/06/2024
|
109
|
Mini pizzas
|
Pasta
|
210,47 €
|
No
|
06/07/2024
|
110
|
Mozzarella sticks
|
Pie
|
225,53 €
|
No
|
10/07/2024
|
111
|
Muffuletta
|
Soup
|
214,92 €
|
No
|
24/05/2024
|
112
|
Mulligan stew
|
Fish
|
223,03 €
|
No
|
26/05/2024
|
113
|
Naan
|
Dessert
|
162,47 €
|
No
|
21/06/2024
|
114
|
New York-Style Pizza
|
Dessert
|
132,81 €
|
Yes
|
23/05/2024
|
115
|
Onion Rings
|
Fish
|
268,24 €
|
Yes
|
23/06/2024
|
116
|
Oreo
|
Pie
|
234,00 €
|
No
|
01/07/2024
|
117
|
Osso Buco
|
Dessert
|
275,77 €
|
No
|
05/07/2024
|
118
|
Paella
|
Pie
|
80,65 €
|
Yes
|
08/06/2024
|
119
|
Pancakes
|
Fish
|
247,39 €
|
Yes
|
14/06/2024
|
120
|
Parma Ham
|
Pasta
|
234,56 €
|
No
|
11/07/2024
|
121
|
Pasta salad
|
Pasta
|
190,92 €
|
Yes
|
13/06/2024
|
122
|
Pastel de Nata
|
Dessert
|
100,10 €
|
Yes
|
27/05/2024
|
123
|
Pastrami
|
Pie
|
257,42 €
|
Yes
|
12/06/2024
|
124
|
Pastrami on Rye
|
Pasta
|
230,79 €
|
No
|
17/06/2024
|
125
|
Patty
|
Meat
|
134,59 €
|
No
|
17/07/2024
|
126
|
Peixada da chef Nábia
|
Meat
|
100,11 €
|
Yes
|
23/05/2024
|
127
|
Peanut butter
|
Fish
|
203,77 €
|
Yes
|
27/05/2024
|
128
|
Pemmican
|
Meat
|
101,80 €
|
Yes
|
31/05/2024
|
129
|
Pepperoni
|
Dessert
|
251,31 €
|
No
|
29/06/2024
|
130
|
Pepperoni Pizza
|
Pasta
|
120,25 €
|
Yes
|
08/07/2024
|
131
|
Phaal
|
Fish
|
70,10 €
|
No
|
16/07/2024
|
132
|
Philly Cheese Steak
|
Garnish
|
166,82 €
|
No
|
14/07/2024
|
133
|
Polenta
|
Meat
|
112,21 €
|
No
|
19/06/2024
|
134
|
Potato Wedges
|
Meat
|
149,84 €
|
Yes
|
14/07/2024
|
135
|
Potato salad
|
Pasta
|
135,06 €
|
No
|
14/07/2024
|
136
|
Potato skins
|
Pie
|
105,76 €
|
Yes
|
15/07/2024
|
137
|
Potato wedges
|
Pasta
|
215,45 €
|
No
|
24/06/2024
|
138
|
Poutine
|
Soup
|
113,20 €
|
Yes
|
05/07/2024
|
139
|
Quesadilla
|
Pie
|
220,52 €
|
No
|
03/07/2024
|
140
|
Ratatouille
|
Dessert
|
138,55 €
|
Yes
|
09/06/2024
|
141
|
Ribs
|
Fish
|
255,57 €
|
No
|
05/06/2024
|
142
|
Risotto
|
Pasta
|
161,51 €
|
Yes
|
09/06/2024
|
143
|
Roasted Bone Marrow
|
Fish
|
106,02 €
|
Yes
|
11/07/2024
|
144
|
Roasted Chickpeas
|
Dessert
|
222,87 €
|
Yes
|
01/07/2024
|
145
|
Samosa
|
Pie
|
53,90 €
|
No
|
12/06/2024
|
146
|
Schnitzel
|
Dessert
|
141,52 €
|
Yes
|
14/06/2024
|
147
|
Scrapple
|
Dessert
|
226,79 €
|
Yes
|
17/06/2024
|
148
|
Sloppy joe
|
Garnish
|
153,39 €
|
Yes
|
02/06/2024
|
149
|
Souvlaki
|
Garnish
|
250,14 €
|
No
|
20/05/2024
|
150
|
Spaghetti Bolognese
|
Pasta
|
276,30 €
|
No
|
22/05/2024
|
151
|
Spaghetti and Meatballs
|
Pie
|
263,65 €
|
Yes
|
02/07/2024
|
152
|
Spanish rice
|
Pie
|
112,67 €
|
Yes
|
14/06/2024
|
153
|
Spring Rolls
|
Fish
|
109,82 €
|
Yes
|
06/07/2024
|
154
|
Squab
|
Pasta
|
151,29 €
|
Yes
|
12/06/2024
|
155
|
St. Paul Sandwich
|
Pie
|
71,89 €
|
Yes
|
09/06/2024
|
156
|
Steak Tartare
|
Soup
|
221,42 €
|
No
|
06/07/2024
|
157
|
Steak sandwich
|
Pie
|
78,84 €
|
No
|
05/07/2024
|
158
|
Steak sauce
|
Soup
|
90,67 €
|
Yes
|
26/05/2024
|
159
|
Steamed clams
|
Pasta
|
83,56 €
|
No
|
02/06/2024
|
160
|
Stroganoff
|
Soup
|
184,32 €
|
Yes
|
18/05/2024
|
161
|
Stuffed ham
|
Soup
|
240,26 €
|
Yes
|
24/05/2024
|
162
|
Stuffed peppers
|
Dessert
|
210,60 €
|
Yes
|
03/07/2024
|
163
|
Stuffed zucchini
|
Fish
|
113,21 €
|
Yes
|
15/06/2024
|
164
|
Succotash
|
Pasta
|
76,92 €
|
Yes
|
11/06/2024
|
165
|
Suckling Pig
|
Meat
|
53,11 €
|
Yes
|
20/05/2024
|
166
|
Supreme pizza
|
Fish
|
253,36 €
|
Yes
|
11/07/2024
|
167
|
Surf and turf
|
Meat
|
87,38 €
|
No
|
11/06/2024
|
168
|
Sushi
|
Pasta
|
198,44 €
|
Yes
|
06/07/2024
|
169
|
Sueli's Sushi Boat
|
Dessert
|
178,57 €
|
No
|
29/05/2024
|
170
|
Sweet Potato Fries
|
Pie
|
123,55 €
|
Yes
|
07/06/2024
|
171
|
Sweetbreads
|
Meat
|
60,20 €
|
No
|
19/06/2024
|
172
|
Swiss steak
|
Pasta
|
103,64 €
|
Yes
|
27/05/2024
|
173
|
Tagine
|
Fish
|
274,86 €
|
No
|
08/06/2024
|
174
|
Tamales
|
Soup
|
278,65 €
|
No
|
26/05/2024
|
175
|
Tetrazzini
|
Fish
|
148,82 €
|
No
|
19/06/2024
|
176
|
Texas Toast
|
Pie
|
178,30 €
|
Yes
|
12/06/2024
|
177
|
Thousand Island dressing
|
Soup
|
56,57 €
|
No
|
12/06/2024
|
178
|
Tin Roof Ice Cream
|
Garnish
|
251,03 €
|
No
|
11/07/2024
|
179
|
Toaster Strudel
|
Soup
|
79,40 €
|
No
|
24/06/2024
|
180
|
Tomato compote
|
Pie
|
159,07 €
|
No
|
23/05/2024
|
181
|
Tres Leches Cake
|
Fish
|
69,11 €
|
Yes
|
27/06/2024
|
182
|
Tuna Pizza
|
Fish
|
76,80 €
|
Yes
|
24/06/2024
|
183
|
Tuna casserole
|
Fish
|
264,25 €
|
Yes
|
07/06/2024
|
184
|
Turducken
|
Garnish
|
100,19 €
|
Yes
|
13/06/2024
|
185
|
Turkish Delight
|
Pie
|
128,13 €
|
No
|
25/06/2024
|
186
|
Vitão's Chocolate pie
|
Soup
|
157,84 €
|
Yes
|
15/07/2024
|
187
|
Veggie Pizza
|
Pie
|
239,59 €
|
No
|
03/06/2024
|
188
|
Venison
|
Pie
|
234,19 €
|
Yes
|
20/05/2024
|
189
|
Vichyssoise
|
Dessert
|
174,07 €
|
No
|
06/06/2024
|
190
|
Waffle
|
Meat
|
128,44 €
|
Yes
|
01/07/2024
|
191
|
Wasabi Peas
|
Fish
|
113,72 €
|
No
|
30/06/2024
|
192
|
White chocolate cookie
|
Pasta
|
61,43 €
|
Yes
|
21/05/2024
|
193
|
Yeung Chow fried rice
|
Meat
|
234,56 €
|
Yes
|
03/06/2024
|
Disclaimer: Table data is randomly generated for
illustrative purposes only. The information here is not a reflection of the actual market and does
not constitute business, financial, or medical advice.
<?php namespace App\Livewire\Examples\CustomThemeFixedHeaderTable; use App\Helpers\PowerGridThemes\TailwindHeaderFixed;use App\Models\Dish;use Illuminate\Database\Query\Builder;use Illuminate\Support\Carbon;use Illuminate\Support\Number;use Livewire\Attributes\On;use PowerComponents\LivewirePowerGrid\Column;use PowerComponents\LivewirePowerGrid\Footer;use PowerComponents\LivewirePowerGrid\Header;use PowerComponents\LivewirePowerGrid\PowerGrid;use PowerComponents\LivewirePowerGrid\PowerGridComponent;use PowerComponents\LivewirePowerGrid\PowerGridFields; class CustomThemeFixedHeaderTable extends PowerGridComponent{ public function setUp(): array { return [ Header::make() ->showSearchInput(), Footer::make() ->showRecordCount(), ]; } public function datasource(): ?Builder { return Dish::query() ->join('categories as newCategories', function ($categories) { $categories->on('dishes.category_id', '=', 'newCategories.id'); }) ->select('dishes.*', 'newCategories.name as category_name') ->toBase(); } public function fields(): PowerGridFields { return PowerGrid::fields() ->add('id') ->add('name') ->add('category_id', fn ($dish) => intval($dish->category_id)) ->add('category_name', fn ($dish) => e($dish->category_name)) ->add('price_in_eur', fn ($dish) => Number::currency($dish->price, in: 'EUR', locale: 'pt_PT')) ->add('in_stock', fn ($dish) => $dish->in_stock ? 'Yes' : 'No') ->add('created_at_formatted', fn ($dish) => Carbon::parse($dish->created_at)->format('d/m/Y')); } public function columns(): array { return [ Column::make('ID', 'id') ->searchable() ->sortable(), Column::make('Name', 'name') ->bodyAttribute('!text-wrap') ->searchable() ->sortable(), Column::make('Category', 'category_name'), Column::make('Price', 'price_in_eur', 'price') ->searchable() ->sortable(), Column::make('In Stock', 'in_stock'), Column::make('Created At', 'created_at_formatted'), ]; } #[On('edit')] public function edit(int $dishId): void { $this->js('alert(' . $dishId . ')'); } public function template(): ?string { return TailwindHeaderFixed::class; }}
Code highlighting provided by Torchlight.dev
Here you can find all relevant packages installed on this demo.
Name
|
Version
|
Description
|
---|---|---|
laravel/framework
|
v11
|
The Laravel Framework.
|
livewire/livewire
|
v3.5.4
|
A front-end framework for Laravel.
|
openspout/openspout
|
v4.24.3
|
PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way
|
power-components/livewire-powergrid
|
5.x-dev
|
PowerGrid generates Advanced Datatables using Laravel Livewire.
|