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
In this file, you can modify the HTML and Blade code to customize the toolbar based on your requirements. You can add or remove breadcrumb elements, actions, or any other desired components to tailor the toolbar for each page.
To simplify the process of managing breadcrumbs in Laravel Blade, you can use the Laravel Breadcrumbs package. Here's how you can integrate it into your project:
composer require diglactic/laravel-breadcrumbs
breadcrumbs.php, in the routes directory.
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...
@breadcrumbs directive in your Blade view to render the breadcrumbs. For example:breadcrumbs helper function to set the appropriate breadcrumbs for each page. For example:
public function index()
{
breadcrumbs(['home']);
return view('your-view');
}
public function about()
{
breadcrumbs(['home', 'about']);
return view('your-view');
}
breadcrumbs helper function.By integrating the Laravel Breadcrumbs package, you can easily manage and display breadcrumbs in your Laravel Blade views. Refer to the package's documentation (https://github.com/diglactic/laravel-breadcrumbs) for more details on customizing and using the breadcrumb functionality.
Thanks
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.