Added back & edit icon button components

Added back & edit icon button components
This commit is contained in:
cp6 2022-07-20 00:19:43 +10:00
parent 88636b88c7
commit e46b7b3c63
6 changed files with 29 additions and 28 deletions

View File

@ -0,0 +1,4 @@
<a href="{{$route}}" class="btn btn-success btn-sm mx-1">
<i class="fas fa-arrow-left me-1"></i>
{{$text ?? 'Go back'}}
</a>

View File

@ -0,0 +1,4 @@
<a href="{{$route}}" class="btn btn-primary btn-sm mx-1">
<i class="fas fa-pen me-1"></i>
{{$text ?? 'Edit'}}
</a>

View File

@ -138,14 +138,12 @@
</div>
</div>
<a href="{{ route('reseller.index') }}"
class="btn btn-success btn-sm mx-2">
Go back
</a>
<a href="{{ route('reseller.edit', $reseller->id) }}"
class="btn btn-primary btn-sm mx-2">
Edit
</a>
<x-back-btn>
<x-slot name="route">{{ route('reseller.index') }}</x-slot>
</x-back-btn>
<x-edit-btn>
<x-slot name="route">{{ route('reseller.edit', $reseller->id) }}</x-slot>
</x-edit-btn>
</x-card>
@if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1)
<p class="text-muted mt-4 text-end"><small>

View File

@ -129,14 +129,12 @@
</tbody>
</table>
</div>
<a href="{{ route('servers.index') }}"
class="btn btn-success btn-sm mx-2">
Go back
</a>
<a href="{{ route('servers.edit', $server_data->id) }}"
class="btn btn-primary btn-sm mx-2">
Edit
</a>
<x-back-btn>
<x-slot name="route">{{ route('servers.index') }}</x-slot>
</x-back-btn>
<x-edit-btn>
<x-slot name="route">{{ route('servers.edit', $server_data->id) }}</x-slot>
</x-edit-btn>
</div>
<div class="col-12 col-lg-6">
@if($server_data->has_yabs)

View File

@ -133,14 +133,12 @@
</div>
</div>
<a href="{{ route('shared.index') }}"
class="btn btn-success btn-sm mx-2">
Go back
</a>
<a href="{{ route('shared.edit', $shared->id) }}"
class="btn btn-primary btn-sm mx-2">
Edit
</a>
<x-back-btn>
<x-slot name="route">{{ route('shared.index') }}</x-slot>
</x-back-btn>
<x-edit-btn>
<x-slot name="route">{{ route('shared.edit', $shared->id) }}</x-slot>
</x-edit-btn>
</x-card>
@if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1)
<p class="text-muted mt-4 text-end"><small>

View File

@ -5,10 +5,9 @@
</x-slot>
<div class="container">
<x-card class="shadow mt-3">
<x-back-button>
<x-slot name="href">{{ route('yabs.index') }}</x-slot>
Go back
</x-back-button>
<x-back-btn>
<x-slot name="route">{{ route('yabs.index') }}</x-slot>
</x-back-btn>
<div class="row">
<div class="'col-12 col-lg-6">
<div class="table-responsive">