Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/nasirkhan/laravel-starter in…
Browse files Browse the repository at this point in the history
…to dev
  • Loading branch information
nasirkhan committed Oct 21, 2024
2 parents 1b2282b + 9c56822 commit 22c5d8f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions resources/views/components/backend/section-header.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@ class="ms-1"
small="true"
/>
@elseif (Str::endsWith(Route::currentRouteName(), "show"))
@if (Route::has("frontend.$module_name.show"))
<x-backend.buttons.public
class=""
title="{{ __('Public') }}"
route='{!! route("frontend.$module_name.show", encode_id($data->id)) !!}'
small="true"
/>
@endif

@if (auth()->user()->can("edit_" . $module_name) && Route::has("backend." . $module_name . ".edit"))
<x-buttons.edit
class="m-1"
Expand Down

0 comments on commit 22c5d8f

Please sign in to comment.