Skip to content

Commit

Permalink
backend button public and pubilc view added
Browse files Browse the repository at this point in the history
  • Loading branch information
nasirkhan committed Oct 21, 2024
1 parent bb754b9 commit 1b2282b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
10 changes: 10 additions & 0 deletions resources/views/components/backend/buttons/public-view.blade.php
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 != "" ? "&nbsp;" . $text : "" !!}
{!! $slot != "" ? "&nbsp;" . $slot : "" !!}
</a>
20 changes: 20 additions & 0 deletions resources/views/components/backend/buttons/public.blade.php
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 != "" ? "&nbsp;" . $slot : "" !!}
</a>
@endif

0 comments on commit 1b2282b

Please sign in to comment.