fix: correct tablar menu structure to avoid array_push argument error

This commit is contained in:
2026-05-01 12:23:39 -04:00
parent 10349075b0
commit d0a0149a75
+117 -38
View File
@@ -4,62 +4,141 @@ return [
'title' => 'Silent Auction Dashboard', 'title' => 'Silent Auction Dashboard',
'logo' => '/assets/tablar-logo.png', 'logo' => '/assets/tablar-logo.png',
'menu' => [ 'menu' => [
'Home' => [ [
'text' => 'Home',
'route' => 'home', 'route' => 'home',
'icon' => 'home', 'icon' => 'ti ti-home',
], ],
'Bidders' => [ [
'icon' => 'users', 'text' => 'Bidders',
'icon' => 'ti ti-users',
'submenu' => [ 'submenu' => [
'Add Bidder' => 'bidders', [
'List Bidders' => 'bidderlist', 'text' => 'Add Bidder',
'route' => 'bidders',
],
[
'text' => 'List Bidders',
'route' => 'bidderlist',
],
], ],
], ],
'Items' => [ [
'icon' => 'box', 'text' => 'Items',
'icon' => 'ti ti-box',
'submenu' => [ 'submenu' => [
'Add Item' => 'items', [
'List Items' => 'itemlist', 'text' => 'Add Item',
'route' => 'items',
],
[
'text' => 'List Items',
'route' => 'itemlist',
],
], ],
], ],
'Winners' => [ [
'icon' => 'trophy', 'text' => 'Winners',
'icon' => 'ti ti-trophy',
'submenu' => [ 'submenu' => [
'Add Winner' => 'winners', [
'Edit Winner' => 'editwinners', 'text' => 'Add Winner',
'List Winners' => 'winnerlist', 'route' => 'winners',
'Winners by Item' => 'winnersbyitem', ],
'Check My Winnings' => 'mywinnings', [
'text' => 'Edit Winner',
'route' => 'editwinners',
],
[
'text' => 'List Winners',
'route' => 'winnerlist',
],
[
'text' => 'Winners by Item',
'route' => 'winnersbyitem',
],
[
'text' => 'Check My Winnings',
'route' => 'mywinnings',
],
], ],
], ],
'CarShow' => [ [
'icon' => 'car', 'text' => 'CarShow',
'icon' => 'ti ti-car',
'submenu' => [ 'submenu' => [
'Add Car' => 'showcars', [
'List Show Cars' => 'showcarlist', 'text' => 'Add Car',
'Judging Entry' => 'judgingentry', 'route' => 'showcars',
'People\'s Choice Entry' => 'pcentry', ],
'Add Judge' => 'judges', [
'Car Show Winners' => 'showwinners', 'text' => 'List Show Cars',
'Vehicle Total Scores' => 'showscores', 'route' => 'showcarlist',
'Scores by Car' => 'showscoresbycar', ],
'Tabulate Winners' => 'tabulateshowwinners', [
'text' => 'Judging Entry',
'route' => 'judgingentry',
],
[
'text' => 'People\'s Choice Entry',
'route' => 'pcentry',
],
[
'text' => 'Add Judge',
'route' => 'judges',
],
[
'text' => 'Car Show Winners',
'route' => 'showwinners',
],
[
'text' => 'Vehicle Total Scores',
'route' => 'showscores',
],
[
'text' => 'Scores by Car',
'route' => 'showscoresbycar',
],
[
'text' => 'Tabulate Winners',
'route' => 'tabulateshowwinners',
],
], ],
], ],
'Reports' => [ [
'icon' => 'file-text', 'text' => 'Reports',
'icon' => 'ti ti-file-text',
'submenu' => [ 'submenu' => [
'Bidder List' => 'bidderlist', [
'Completed Checkouts' => 'checkout_complete_list', 'text' => 'Bidder List',
'Items' => 'itemlist', 'route' => 'bidderlist',
'Winners' => 'winnerlist', ],
[
'text' => 'Completed Checkouts',
'route' => 'checkout_complete_list',
],
[
'text' => 'Items',
'route' => 'itemlist',
],
[
'text' => 'Winners',
'route' => 'winnerlist',
],
], ],
], ],
'Checkout' => [ [
'icon' => 'credit-card', 'text' => 'Checkout',
'icon' => 'ti ti-credit-card',
'submenu' => [ 'submenu' => [
'Checkout Bidder' => 'checkout', [
'Re-Print Receipt' => 'reprint_receipt', 'text' => 'Checkout Bidder',
'route' => 'checkout',
],
[
'text' => 'Re-Print Receipt',
'route' => 'reprint_receipt',
],
], ],
], ],
], ],