mirror of
https://github.com/cp6/my-idlers.git
synced 2024-11-16 15:33:44 +01:00
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>
|
||||
<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>
|
||||
|
@ -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)
|
||||
|
@ -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>
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user