Custom Theme Fixed Header
This component uses the Custom Theme TailwindHeaderFixed
.
You can find its source code in our GitHub Repository.
ID
|
Name
|
Price
|
In Stock
|
Created At
|
---|---|---|---|---|
1
|
Arkansas Possum Pie
|
118,08 €
|
No
|
26/09/2024
|
2
|
Albacore Tuna Melt
|
132,75 €
|
No
|
07/10/2024
|
3
|
борщ
|
100,19 €
|
Yes
|
26/09/2024
|
4
|
Bacalhau com natas
|
208,60 €
|
No
|
29/09/2024
|
5
|
Baba Ghanoush
|
183,81 €
|
No
|
03/10/2024
|
6
|
Bacon Cheeseburger
|
137,48 €
|
No
|
11/09/2024
|
7
|
Baked potato
|
189,66 €
|
Yes
|
03/10/2024
|
8
|
Baklava
|
161,92 €
|
Yes
|
12/10/2024
|
9
|
Bangers and mash
|
214,04 €
|
Yes
|
03/10/2024
|
10
|
Black Pudding
|
116,13 €
|
Yes
|
03/10/2024
|
11
|
Blue cheese dressing
|
121,08 €
|
No
|
21/08/2024
|
12
|
Boulliabaise
|
199,67 €
|
No
|
30/09/2024
|
13
|
Bread
|
161,33 €
|
No
|
10/09/2024
|
14
|
Breaded shrimp
|
251,46 €
|
Yes
|
19/09/2024
|
15
|
Breakfast burrito
|
269,87 €
|
Yes
|
20/09/2024
|
16
|
Brisket
|
212,26 €
|
No
|
15/09/2024
|
17
|
Brunswick stew
|
157,42 €
|
Yes
|
11/10/2024
|
18
|
Bruschetta
|
61,54 €
|
No
|
21/08/2024
|
19
|
Buffalo Wings
|
163,17 €
|
No
|
20/09/2024
|
20
|
Buffalo burger
|
150,65 €
|
Yes
|
21/08/2024
|
21
|
Buffalo wing
|
126,61 €
|
Yes
|
17/08/2024
|
22
|
Calamari
|
158,29 €
|
Yes
|
06/10/2024
|
23
|
Carne pizzaiola
|
224,92 €
|
Yes
|
27/08/2024
|
24
|
Caviar
|
170,37 €
|
Yes
|
10/09/2024
|
25
|
Ceviche
|
54,60 €
|
No
|
10/09/2024
|
26
|
Cheesecake
|
231,34 €
|
No
|
29/08/2024
|
27
|
Chicken Biryani
|
233,15 €
|
Yes
|
10/09/2024
|
28
|
Chicken Tikka Masala
|
175,73 €
|
Yes
|
27/09/2024
|
29
|
Chicken and waffles
|
77,66 €
|
Yes
|
15/08/2024
|
30
|
Chicken bog
|
142,03 €
|
Yes
|
29/09/2024
|
31
|
Chicken fingers
|
231,74 €
|
Yes
|
06/09/2024
|
32
|
Chile Relleno
|
92,29 €
|
Yes
|
01/09/2024
|
33
|
Chili con carne
|
272,40 €
|
Yes
|
02/10/2024
|
34
|
Chili dog
|
112,26 €
|
Yes
|
11/10/2024
|
35
|
Chimichanga
|
114,02 €
|
Yes
|
04/09/2024
|
36
|
Chinese food
|
121,02 €
|
Yes
|
16/09/2024
|
37
|
Chips and dip
|
131,57 €
|
Yes
|
12/09/2024
|
38
|
Choco pie
|
124,03 €
|
Yes
|
20/08/2024
|
39
|
Chocolate Brownie
|
75,35 €
|
Yes
|
10/10/2024
|
41
|
Chocolate cheesecake
|
247,78 €
|
No
|
28/08/2024
|
42
|
Chowder
|
90,00 €
|
Yes
|
08/09/2024
|
43
|
Churrasco
|
167,59 €
|
Yes
|
01/09/2024
|
44
|
Cinnamon Roll
|
157,51 €
|
No
|
03/09/2024
|
45
|
Coleslaw
|
211,39 €
|
No
|
03/10/2024
|
46
|
Coq Au Vin
|
92,74 €
|
No
|
02/09/2024
|
47
|
Cordon bleu
|
66,88 €
|
No
|
13/09/2024
|
48
|
Currywurst
|
81,82 €
|
Yes
|
22/08/2024
|
49
|
Eggo
|
137,62 €
|
No
|
07/10/2024
|
50
|
Eggs Benedict
|
69,68 €
|
Yes
|
11/09/2024
|
51
|
Eggs Neptune
|
177,57 €
|
No
|
29/08/2024
|
52
|
Empanada
|
55,55 €
|
Yes
|
21/09/2024
|
53
|
Energy bar
|
229,34 €
|
Yes
|
21/09/2024
|
54
|
Escargot
|
64,90 €
|
Yes
|
26/09/2024
|
55
|
Fajitas
|
169,34 €
|
Yes
|
13/09/2024
|
56
|
Falafel
|
239,93 €
|
No
|
08/10/2024
|
57
|
Fattoush Salad
|
74,02 €
|
Yes
|
18/09/2024
|
58
|
Fish Tacos
|
132,62 €
|
No
|
01/10/2024
|
59
|
Fish and Chips!
|
218,89 €
|
No
|
08/09/2024
|
60
|
Flan
|
129,83 €
|
Yes
|
12/10/2024
|
61
|
Fortune cookie
|
75,03 €
|
Yes
|
22/09/2024
|
62
|
Francesinha
|
100,15 €
|
Yes
|
04/10/2024
|
63
|
French Onion Soup
|
129,55 €
|
No
|
29/08/2024
|
64
|
Fries
|
217,41 €
|
Yes
|
16/08/2024
|
65
|
Frito Pie
|
264,03 €
|
Yes
|
25/09/2024
|
66
|
Fry sauce
|
226,18 €
|
Yes
|
26/08/2024
|
67
|
Funnel Cake
|
68,54 €
|
Yes
|
16/08/2024
|
68
|
Garden salad
|
210,54 €
|
Yes
|
21/08/2024
|
69
|
Garlic bread
|
133,11 €
|
Yes
|
12/10/2024
|
70
|
Gazpacho
|
182,79 €
|
No
|
08/10/2024
|
71
|
Goulash
|
70,83 €
|
Yes
|
27/09/2024
|
72
|
Greek salad
|
111,80 €
|
Yes
|
13/09/2024
|
73
|
Grilled Snake
|
55,40 €
|
No
|
25/09/2024
|
74
|
γύρος
|
66,19 €
|
Yes
|
15/09/2024
|
75
|
Gumbo
|
268,38 €
|
No
|
13/09/2024
|
76
|
Gyoza
|
272,84 €
|
No
|
09/09/2024
|
77
|
Huevos Rancheros
|
73,43 €
|
No
|
04/10/2024
|
78
|
Hummus
|
134,52 €
|
Yes
|
30/09/2024
|
79
|
Ice Cream
|
202,57 €
|
No
|
20/09/2024
|
80
|
Key Lime Pie
|
223,93 €
|
Yes
|
08/09/2024
|
81
|
Kimchi
|
83,01 €
|
No
|
29/08/2024
|
82
|
Kobe Beef
|
146,32 €
|
No
|
04/10/2024
|
83
|
Kung Pao Chicken
|
212,17 €
|
No
|
26/08/2024
|
84
|
Laksa
|
107,27 €
|
No
|
31/08/2024
|
85
|
Lasagna
|
269,29 €
|
No
|
14/08/2024
|
86
|
Liver and onions
|
189,59 €
|
No
|
22/08/2024
|
87
|
Lobster Newberg
|
198,44 €
|
Yes
|
14/09/2024
|
88
|
Lobster roll
|
91,70 €
|
No
|
12/09/2024
|
89
|
London broil
|
62,05 €
|
No
|
15/08/2024
|
90
|
Lorna Doone
|
193,85 €
|
Yes
|
20/09/2024
|
91
|
Low Country Boil
|
209,26 €
|
Yes
|
13/09/2024
|
92
|
Macaroni and Cheese
|
124,76 €
|
No
|
20/09/2024
|
93
|
Macaroni and cheese
|
92,12 €
|
Yes
|
21/08/2024
|
94
|
Macaroni salad
|
217,56 €
|
No
|
02/09/2024
|
95
|
Maine Lobster
|
60,52 €
|
Yes
|
30/09/2024
|
96
|
Mango and Sticky Rice
|
255,78 €
|
Yes
|
23/09/2024
|
97
|
Maple Bacon Doughnut
|
192,45 €
|
No
|
22/08/2024
|
98
|
Maple bacon donut
|
208,97 €
|
No
|
13/08/2024
|
99
|
Maraca pie
|
132,20 €
|
No
|
15/08/2024
|
100
|
Margherita Pizza
|
72,83 €
|
Yes
|
14/09/2024
|
101
|
Mashed potato
|
51,26 €
|
Yes
|
31/08/2024
|
102
|
Mashed pumpkin
|
248,92 €
|
No
|
21/08/2024
|
103
|
Massaman Curry
|
263,23 €
|
Yes
|
27/09/2024
|
104
|
Matzo Ball Soup
|
81,27 €
|
Yes
|
07/10/2024
|
105
|
Meat Feast Pizza
|
272,27 €
|
No
|
18/09/2024
|
106
|
Meatcake
|
62,64 €
|
No
|
24/08/2024
|
107
|
Meatloaf
|
261,07 €
|
Yes
|
24/08/2024
|
108
|
Milkshake
|
218,67 €
|
Yes
|
16/08/2024
|
109
|
Mini pizzas
|
95,63 €
|
Yes
|
27/08/2024
|
110
|
Mozzarella sticks
|
180,57 €
|
Yes
|
11/09/2024
|
111
|
Muffuletta
|
156,17 €
|
No
|
08/10/2024
|
112
|
Mulligan stew
|
185,36 €
|
Yes
|
09/10/2024
|
113
|
Naan
|
93,17 €
|
Yes
|
24/09/2024
|
114
|
New York-Style Pizza
|
212,24 €
|
No
|
16/09/2024
|
115
|
Onion Rings
|
256,61 €
|
No
|
11/09/2024
|
116
|
Oreo
|
120,70 €
|
Yes
|
21/08/2024
|
117
|
Osso Buco
|
122,48 €
|
Yes
|
04/09/2024
|
118
|
Paella
|
268,61 €
|
No
|
28/08/2024
|
119
|
Pancakes
|
252,26 €
|
No
|
22/09/2024
|
120
|
Parma Ham
|
60,52 €
|
Yes
|
15/09/2024
|
121
|
Pasta salad
|
115,39 €
|
Yes
|
16/09/2024
|
122
|
Pastel de Nata
|
100,10 €
|
No
|
15/09/2024
|
123
|
Pastrami
|
238,65 €
|
Yes
|
29/08/2024
|
124
|
Pastrami on Rye
|
126,92 €
|
No
|
07/10/2024
|
125
|
Patty
|
152,01 €
|
No
|
17/09/2024
|
126
|
Peixada da chef Nábia
|
100,11 €
|
No
|
28/08/2024
|
127
|
Peanut butter
|
130,95 €
|
No
|
27/09/2024
|
128
|
Pemmican
|
106,59 €
|
Yes
|
22/08/2024
|
129
|
Pepperoni
|
179,38 €
|
No
|
23/09/2024
|
130
|
Pepperoni Pizza
|
71,13 €
|
Yes
|
28/09/2024
|
131
|
Phaal
|
192,28 €
|
No
|
05/10/2024
|
132
|
Philly Cheese Steak
|
276,41 €
|
No
|
12/09/2024
|
133
|
Polenta
|
187,39 €
|
Yes
|
13/09/2024
|
134
|
Potato Wedges
|
93,58 €
|
Yes
|
18/09/2024
|
135
|
Potato salad
|
75,48 €
|
Yes
|
25/09/2024
|
136
|
Potato skins
|
85,94 €
|
Yes
|
10/09/2024
|
137
|
Potato wedges
|
235,78 €
|
No
|
02/10/2024
|
138
|
Poutine
|
183,67 €
|
Yes
|
14/08/2024
|
139
|
Quesadilla
|
105,53 €
|
Yes
|
13/10/2024
|
140
|
Ratatouille
|
145,88 €
|
Yes
|
12/10/2024
|
141
|
Ribs
|
143,33 €
|
Yes
|
08/10/2024
|
142
|
Risotto
|
57,85 €
|
Yes
|
15/08/2024
|
143
|
Roasted Bone Marrow
|
68,35 €
|
Yes
|
11/10/2024
|
144
|
Roasted Chickpeas
|
169,96 €
|
Yes
|
19/08/2024
|
145
|
Samosa
|
149,23 €
|
Yes
|
24/08/2024
|
146
|
Schnitzel
|
214,50 €
|
Yes
|
05/09/2024
|
147
|
Scrapple
|
157,47 €
|
Yes
|
28/09/2024
|
148
|
Sloppy joe
|
107,43 €
|
Yes
|
14/08/2024
|
149
|
Souvlaki
|
81,99 €
|
Yes
|
13/09/2024
|
150
|
Spaghetti Bolognese
|
192,48 €
|
Yes
|
16/09/2024
|
151
|
Spaghetti and Meatballs
|
138,60 €
|
Yes
|
17/09/2024
|
152
|
Spanish rice
|
173,86 €
|
No
|
13/09/2024
|
153
|
Spring Rolls
|
172,11 €
|
No
|
10/09/2024
|
154
|
Squab
|
242,05 €
|
Yes
|
02/10/2024
|
155
|
St. Paul Sandwich
|
198,40 €
|
No
|
31/08/2024
|
156
|
Steak Tartare
|
239,98 €
|
Yes
|
17/09/2024
|
157
|
Steak sandwich
|
89,22 €
|
Yes
|
17/09/2024
|
158
|
Steak sauce
|
99,10 €
|
No
|
05/09/2024
|
159
|
Steamed clams
|
263,36 €
|
Yes
|
28/08/2024
|
160
|
Stroganoff
|
276,26 €
|
No
|
15/09/2024
|
161
|
Stuffed ham
|
95,49 €
|
Yes
|
23/09/2024
|
162
|
Stuffed peppers
|
191,38 €
|
Yes
|
12/09/2024
|
163
|
Stuffed zucchini
|
151,44 €
|
No
|
29/08/2024
|
164
|
Succotash
|
68,69 €
|
Yes
|
04/09/2024
|
165
|
Suckling Pig
|
158,27 €
|
Yes
|
31/08/2024
|
166
|
Supreme pizza
|
128,87 €
|
Yes
|
28/08/2024
|
167
|
Surf and turf
|
162,31 €
|
Yes
|
12/09/2024
|
168
|
Sushi
|
149,84 €
|
Yes
|
29/09/2024
|
169
|
Sueli's Sushi Boat
|
112,39 €
|
Yes
|
01/09/2024
|
170
|
Sweet Potato Fries
|
253,14 €
|
No
|
11/10/2024
|
171
|
Sweetbreads
|
77,36 €
|
No
|
08/09/2024
|
172
|
Swiss steak
|
200,69 €
|
No
|
26/08/2024
|
173
|
Tagine
|
129,06 €
|
No
|
23/08/2024
|
174
|
Tamales
|
157,59 €
|
No
|
03/10/2024
|
175
|
Tetrazzini
|
154,07 €
|
No
|
11/09/2024
|
176
|
Texas Toast
|
115,88 €
|
No
|
10/10/2024
|
177
|
Thousand Island dressing
|
210,62 €
|
Yes
|
14/09/2024
|
178
|
Tin Roof Ice Cream
|
56,20 €
|
No
|
04/10/2024
|
179
|
Toaster Strudel
|
165,93 €
|
Yes
|
04/10/2024
|
180
|
Tomato compote
|
225,95 €
|
No
|
17/08/2024
|
181
|
Tres Leches Cake
|
58,99 €
|
No
|
08/09/2024
|
182
|
Tuna Pizza
|
136,67 €
|
No
|
23/09/2024
|
183
|
Tuna casserole
|
270,44 €
|
No
|
08/09/2024
|
184
|
Turducken
|
228,25 €
|
No
|
26/09/2024
|
185
|
Turkish Delight
|
122,34 €
|
No
|
29/08/2024
|
186
|
Vitão's Chocolate pie
|
209,37 €
|
No
|
02/09/2024
|
187
|
Veggie Pizza
|
129,01 €
|
No
|
18/08/2024
|
188
|
Venison
|
170,30 €
|
No
|
21/09/2024
|
189
|
Vichyssoise
|
259,39 €
|
No
|
21/08/2024
|
190
|
Waffle
|
249,91 €
|
Yes
|
15/08/2024
|
191
|
Wasabi Peas
|
93,16 €
|
No
|
25/08/2024
|
192
|
White chocolate cookie
|
128,49 €
|
No
|
19/09/2024
|
193
|
Yeung Chow fried rice
|
166,77 €
|
Yes
|
06/09/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\Facades\PowerGrid;use PowerComponents\LivewirePowerGrid\PowerGridComponent;use PowerComponents\LivewirePowerGrid\PowerGridFields; class CustomThemeFixedHeaderTable extends PowerGridComponent{ public string $tableName = 'custom-theme-fixed-header-table'; public function setUp(): array { return [ PowerGrid::header() ->showSearchInput(), PowerGrid::footer() ->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('price') ->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('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 customThemeClass(): ?string { return TailwindHeaderFixed::class; }}
Code highlighting provided by Torchlight.dev