Hi, how do I change the toolbar with their respective breadcrumbs and actions for each page, as I see that this in a general way in the template.
<div class="d-flex flex-column flex-column-fluid">
@include(config("settings.KT_THEME_LAYOUT_DIR")."/partials/header-layout/_toolbar")
<!--begin::Content-->
<div id="kt_app_content" class="app-content flex-column-fluid">
<!--begin::Content container-->
<div id="kt_app_content_container" class="app-container container-xxl">
{{ $slot }}
</div>
<!--end::Content container-->
</div>
<!--end::Content-->
</div>
Hi Victor,
I'm glad to hear that you were able to solve the issue it.
If you have any more questions or need further assistance, feel free to ask. I'm here to help!
Best regards,
Faizal
In the end I solved it using yield and section
resources\views\layout\_default_header_layout.blade.php
@yield("block-toolbar")
{{--
@include(config("settings.KT_THEME_LAYOUT_DIR")."/partials/header-layout/_toolbar")
--}}
<x-default-layout>
@section("block-toolbar")
@include("./pages/campaigns/partials/_toolbar")
@endsection
<!-- next content view -->
</x-default-layout>
Hi,
Sorry for the delay.
To change the toolbar with their respective breadcrumbs and actions for each page in your Laravel Blade project using Metronic Laravel Starterkit, you can edit the following file:
starterkit/resources/views/layout/partials/header-layout/_toolbar.blade.php
composer require diglactic/laravel-breadcrumbs
Breadcrumbs::for("home", function ($trail) {
$trail->push("Home", route("home"));
});
Breadcrumbs::for("about", function ($trail) {
$trail->parent("home");
$trail->push("About", route("about"));
});
// Define more breadcrumbs for other pages...
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
@breadcrumbs
</nav>
public function index()
{
breadcrumbs(["home"]);
return view("your-view");
}
public function about()
{
breadcrumbs(["home", "about"]);
return view("your-view");
}
breadcrumbs
helper function.Hi Victor,
We apologize for the inconvenience. We are currently investigating the issue and will provide you with a solution as soon as possible. Thank you for your patience.