Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/inikoo/aiku into main
Browse files Browse the repository at this point in the history
  • Loading branch information
aqordeon committed Oct 3, 2024
2 parents 1bd397c + 78d8bac commit 8ffbd39
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 67 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,40 +153,40 @@ public function getBreadcrumbs(string $routeName, array $routeParameters, string
return match ($routeName) {
'grp.org.procurement.org_supplier_products.show' =>
array_merge(
(new ShowProcurementDashboard())->getBreadcrumbs(Arr::only($routeParameters, 'organisation')),
$headCrumb(
$orgSupplierProduct,
[
'index' => [
'name' => 'grp.org.procurement.org_supplier_products.index',
'parameters' => $routeParameters
(new ShowProcurementDashboard())->getBreadcrumbs(Arr::only($routeParameters, 'organisation')),
$headCrumb(
$orgSupplierProduct,
[
'index' => [
'name' => 'grp.org.procurement.org_supplier_products.index',
'parameters' => $routeParameters
],
'model' => [
'name' => 'grp.org.procurement.org_supplier_products.show',
'parameters' => $routeParameters
]
],
'model' => [
'name' => 'grp.org.procurement.org_supplier_products.show',
'parameters' => $routeParameters
]
],
$suffix
)
),
$suffix
)
),
'grp.org.procurement.org_suppliers.show.supplier_products.show' =>
array_merge(
(new ShowOrgSupplier())->getBreadcrumbs(Arr::only($routeParameters, ['organisation', 'orgSupplier'])),
$headCrumb(
$orgSupplierProduct,
[
'index' => [
'name' => 'grp.org.procurement.org_suppliers.show',
'parameters' => $routeParameters
(new ShowOrgSupplier())->getBreadcrumbs(Arr::only($routeParameters, ['organisation', 'orgSupplier'])),
$headCrumb(
$orgSupplierProduct,
[
'index' => [
'name' => 'grp.org.procurement.org_suppliers.show',
'parameters' => $routeParameters
],
'model' => [
'name' => 'grp.org.procurement.org_suppliers.show.supplier_products.show',
'parameters' => $routeParameters
]
],
'model' => [
'name' => 'grp.org.procurement.org_suppliers.show.supplier_products.show',
'parameters' => $routeParameters
]
],
$suffix
)
),
$suffix
)
),
default => []
};
}
Expand Down
1 change: 0 additions & 1 deletion app/Actions/UI/Iris/ShowHome.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
namespace App\Actions\UI\Iris;

use App\Models\Web\Website;
use Illuminate\Support\Facades\Auth;
use Inertia\Inertia;
use Inertia\Response;
use Lorisleiva\Actions\Concerns\AsController;
Expand Down
22 changes: 9 additions & 13 deletions app/Actions/UI/Retina/Layout/GetRetinaDropshippingNavigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,15 @@ public function handle(WebUser $webUser): array
'root' => 'retina.dropshipping.platform.',
'route' => [
'name' => 'retina.dropshipping.platform.dashboard'
],
'topMenu' => [
'subSections' => [
[
'label' => __('Portfolios'),
'icon' => ['fal', 'fa-cube'],
'root' => 'retina.dropshipping.platform.portfolios.',
'route' => [
'name' => 'retina.dropshipping.platform.portfolios.index',

]
],
]
]
];

$groupNavigation['portfolios'] = [
'label' => __('Portfolios'),
'icon' => ['fal', 'fa-cube'],
'root' => 'retina.dropshipping.portfolios.',
'route' => [
'name' => 'retina.dropshipping.portfolios.index'
]
];

Expand Down
40 changes: 20 additions & 20 deletions app/Actions/UI/Retina/Layout/GetRetinaFulfilmentNavigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,27 +179,27 @@ public function handle(WebUser $webUser): array
]
];

$groupNavigation['dropshipping'] = [
'label' => __('Dropshipping'),
'icon' => ['fal', 'fa-parachute-box'],
'root' => 'retina.dropshipping.',
'route' => [
'name' => 'retina.dropshipping.dashboard'
],
'topMenu' => [
'subSections' => [
[
'label' => __('Products'),
'icon' => ['fal', 'fa-cube'],
'root' => 'retina.dropshipping.products.',
'route' => [
'name' => 'retina.dropshipping.products.index',

/* $groupNavigation['dropshipping'] = [
'label' => __('Dropshipping'),
'icon' => ['fal', 'fa-parachute-box'],
'root' => 'retina.dropshipping.',
'route' => [
'name' => 'retina.dropshipping.dashboard'
],
'topMenu' => [
'subSections' => [
[
'label' => __('Products'),
'icon' => ['fal', 'fa-cube'],
'root' => 'retina.dropshipping.products.',
'route' => [
'name' => 'retina.dropshipping.products.index',
]
],
]
]
],
]
]
];
];*/

}

Expand Down
2 changes: 1 addition & 1 deletion app/Http/Middleware/HandleIrisInertiaRequests.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function share(Request $request): array
'user' => $webUser ? LoggedWebUserResource::make($webUser)->getArray() : null,
],
'flash' => [
'notification' => fn() => $request->session()->get('notification')
'notification' => fn () => $request->session()->get('notification')
],
'ziggy' => [
'location' => $request->url(),
Expand Down
1 change: 1 addition & 0 deletions routes/grp/web/models.php
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@

Route::patch('autosave/header', [PublishWebsiteMarginal::class, 'header'])->name('autosave.header');
Route::patch('autosave/footer', [PublishWebsiteMarginal::class, 'footer'])->name('autosave.footer');
Route::patch('autosave/menu', [PublishWebsiteMarginal::class, 'menu'])->name('autosave.menu');

Route::post('publish/menu', [PublishWebsiteMarginal::class, 'menu'])->name('publish.menu');

Expand Down
7 changes: 5 additions & 2 deletions routes/retina/web/dropshipping.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@

Route::prefix('platform')->as('platform.')->group(function () {
Route::get('/', ShowDropshipping::class)->name('dashboard');
Route::get('/portfolios', IndexDropshippingRetinaProducts::class)->name('portfolios.index');
Route::get('/portfolios/{portfolio}', ShowProduct::class)->name('portfolios.show');

Route::post('shopify-user', StoreShopifyUser::class)->name('shopify_user.store');
Route::delete('shopify-user', DeleteShopifyUser::class)->name('shopify_user.delete');
});

Route::prefix('portfolios')->as('portfolios.')->group(function () {
Route::get('/', IndexDropshippingRetinaProducts::class)->name('index');
Route::get('{portfolio}', ShowProduct::class)->name('show');
});

// Route::get('/users', IndexUsers::class)->name('web-users.index');
// Route::get('/users/{user}', ShowUser::class)->name('web-users.show');
// Route::get('/users/{user}/edit', EditUser::class)->name('web-users.edit');

0 comments on commit 8ffbd39

Please sign in to comment.