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',
'logo' => '/assets/tablar-logo.png',
'menu' => [
'Home' => [
[
'text' => 'Home',
'route' => 'home',
'icon' => 'home',
'icon' => 'ti ti-home',
],
'Bidders' => [
'icon' => 'users',
[
'text' => 'Bidders',
'icon' => 'ti ti-users',
'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' => [
'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' => [
'Add Winner' => 'winners',
'Edit Winner' => 'editwinners',
'List Winners' => 'winnerlist',
'Winners by Item' => 'winnersbyitem',
'Check My Winnings' => 'mywinnings',
[
'text' => 'Add Winner',
'route' => 'winners',
],
[
'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' => [
'Add Car' => 'showcars',
'List Show Cars' => 'showcarlist',
'Judging Entry' => 'judgingentry',
'People\'s Choice Entry' => 'pcentry',
'Add Judge' => 'judges',
'Car Show Winners' => 'showwinners',
'Vehicle Total Scores' => 'showscores',
'Scores by Car' => 'showscoresbycar',
'Tabulate Winners' => 'tabulateshowwinners',
[
'text' => 'Add Car',
'route' => 'showcars',
],
[
'text' => 'List Show Cars',
'route' => 'showcarlist',
],
[
'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' => [
'Bidder List' => 'bidderlist',
'Completed Checkouts' => 'checkout_complete_list',
'Items' => 'itemlist',
'Winners' => 'winnerlist',
[
'text' => 'Bidder List',
'route' => 'bidderlist',
],
[
'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' => [
'Checkout Bidder' => 'checkout',
'Re-Print Receipt' => 'reprint_receipt',
[
'text' => 'Checkout Bidder',
'route' => 'checkout',
],
[
'text' => 'Re-Print Receipt',
'route' => 'reprint_receipt',
],
],
],
],