Added back & edit icon button components
Added back & edit icon button components
This commit is contained in:
parent
88636b88c7
commit
e46b7b3c63
4
resources/views/components/back-btn.blade.php
Normal file
4
resources/views/components/back-btn.blade.php
Normal 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>
|
4
resources/views/components/edit-btn.blade.php
Normal file
4
resources/views/components/edit-btn.blade.php
Normal 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>
|
|
@ -138,14 +138,12 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a href="{{ route('reseller.index') }}"
|
<x-back-btn>
|
||||||
class="btn btn-success btn-sm mx-2">
|
<x-slot name="route">{{ route('reseller.index') }}</x-slot>
|
||||||
Go back
|
</x-back-btn>
|
||||||
</a>
|
<x-edit-btn>
|
||||||
<a href="{{ route('reseller.edit', $reseller->id) }}"
|
<x-slot name="route">{{ route('reseller.edit', $reseller->id) }}</x-slot>
|
||||||
class="btn btn-primary btn-sm mx-2">
|
</x-edit-btn>
|
||||||
Edit
|
|
||||||
</a>
|
|
||||||
</x-card>
|
</x-card>
|
||||||
@if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1)
|
@if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1)
|
||||||
<p class="text-muted mt-4 text-end"><small>
|
<p class="text-muted mt-4 text-end"><small>
|
||||||
|
|
|
@ -129,14 +129,12 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<a href="{{ route('servers.index') }}"
|
<x-back-btn>
|
||||||
class="btn btn-success btn-sm mx-2">
|
<x-slot name="route">{{ route('servers.index') }}</x-slot>
|
||||||
Go back
|
</x-back-btn>
|
||||||
</a>
|
<x-edit-btn>
|
||||||
<a href="{{ route('servers.edit', $server_data->id) }}"
|
<x-slot name="route">{{ route('servers.edit', $server_data->id) }}</x-slot>
|
||||||
class="btn btn-primary btn-sm mx-2">
|
</x-edit-btn>
|
||||||
Edit
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 col-lg-6">
|
<div class="col-12 col-lg-6">
|
||||||
@if($server_data->has_yabs)
|
@if($server_data->has_yabs)
|
||||||
|
|
|
@ -133,14 +133,12 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a href="{{ route('shared.index') }}"
|
<x-back-btn>
|
||||||
class="btn btn-success btn-sm mx-2">
|
<x-slot name="route">{{ route('shared.index') }}</x-slot>
|
||||||
Go back
|
</x-back-btn>
|
||||||
</a>
|
<x-edit-btn>
|
||||||
<a href="{{ route('shared.edit', $shared->id) }}"
|
<x-slot name="route">{{ route('shared.edit', $shared->id) }}</x-slot>
|
||||||
class="btn btn-primary btn-sm mx-2">
|
</x-edit-btn>
|
||||||
Edit
|
|
||||||
</a>
|
|
||||||
</x-card>
|
</x-card>
|
||||||
@if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1)
|
@if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1)
|
||||||
<p class="text-muted mt-4 text-end"><small>
|
<p class="text-muted mt-4 text-end"><small>
|
||||||
|
|
|
@ -5,10 +5,9 @@
|
||||||
</x-slot>
|
</x-slot>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<x-card class="shadow mt-3">
|
<x-card class="shadow mt-3">
|
||||||
<x-back-button>
|
<x-back-btn>
|
||||||
<x-slot name="href">{{ route('yabs.index') }}</x-slot>
|
<x-slot name="route">{{ route('yabs.index') }}</x-slot>
|
||||||
Go back
|
</x-back-btn>
|
||||||
</x-back-button>
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="'col-12 col-lg-6">
|
<div class="'col-12 col-lg-6">
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user