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>
</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>

View File

@ -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)

View File

@ -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>

View File

@ -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">