-
Notifications
You must be signed in to change notification settings - Fork 425
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #619 from nasirkhan/dev
Public link in Backend Show page
- Loading branch information
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
resources/views/components/backend/buttons/public-view.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@props(["href" => "", "small" => "true", "text" => "Public View"]) | ||
<a | ||
class="btn btn-light {{ $small == "true" ? "btn-sm" : "" }}" | ||
href="{{ $href }}" | ||
target="_blank" | ||
> | ||
<i class="fa-solid fa-arrow-up-right-from-square"></i> | ||
{!! $text != "" ? " " . $text : "" !!} | ||
{!! $slot != "" ? " " . $slot : "" !!} | ||
</a> |
20 changes: 20 additions & 0 deletions
20
resources/views/components/backend/buttons/public.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@props([ | ||
"route" => "", | ||
"icon" => "fa-solid fa-arrow-up-right-from-square", | ||
"title", | ||
"small" => "", | ||
"class" => "", | ||
]) | ||
|
||
@if ($route) | ||
<a | ||
class="btn btn-success {{ $small == "true" ? "btn-sm" : "" }} {{ $class }} ms-1" | ||
data-toggle="tooltip" | ||
href="{{ $route }}" | ||
title="{{ $title }}" | ||
target="_blank" | ||
> | ||
<i class="{{ $icon }} fa-fw"></i> | ||
{!! $slot != "" ? " " . $slot : "" !!} | ||
</a> | ||
@endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters