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