-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f0c5563
commit 288afb1
Showing
23 changed files
with
241 additions
and
264 deletions.
There are no files selected for viewing
27 changes: 13 additions & 14 deletions
27
resources/views/account/partials/account-wrapper.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
@props(['pageTitle' => __('Account')]) | ||
@props(['pageTitle' => __('Account'), 'action' => null]) | ||
@section('title', $pageTitle) | ||
<x-app-layout> | ||
<x-slot name="header"> | ||
<h2 class="font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight"> | ||
{{ $pageTitle }} | ||
</h2> | ||
{{ $pageTitle }} | ||
</x-slot> | ||
<div class="py-6 sm:py-8 lg:py-12"> | ||
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8"> | ||
<div class="flex flex-col lg:flex-row gap-6 lg:gap-8"> | ||
<nav class="w-full lg:w-64 xl:w-72 shrink-0"> | ||
<x-account-sidebar/> | ||
</nav> | ||
<main class="flex-1 min-w-0"> | ||
{{ $slot }} | ||
</main> | ||
</div> | ||
<div class="pb-8 md:pb-16"> | ||
<div class="flex flex-col lg:flex-row gap-6 lg:gap-8"> | ||
<nav class="w-full lg:w-64 xl:w-72 shrink-0 mt-3 md:mt-0"> | ||
<x-account-sidebar/> | ||
</nav> | ||
<main class="flex-1 min-w-0"> | ||
<x-slot name="action"> | ||
{{ $action }} | ||
</x-slot> | ||
{{ $slot }} | ||
</main> | ||
</div> | ||
</div> | ||
</x-app-layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
@section('title', __('Add Backup Destination')) | ||
<x-app-layout> | ||
<x-slot name="header"> | ||
<h2 class="font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight"> | ||
{{ __('Add Backup Destination') }} | ||
</h2> | ||
{{ __('Add Backup Destination') }} | ||
</x-slot> | ||
|
||
<div class="py-6"> | ||
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8"> | ||
@livewire('backup-destinations.create-backup-destination-form') | ||
</div> | ||
</div> | ||
@livewire('backup-destinations.create-backup-destination-form') | ||
</x-app-layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,8 @@ | ||
@section('title', __('Update Backup Destination')) | ||
<x-app-layout> | ||
<x-slot name="header"> | ||
<h2 class="font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight"> | ||
{{ __('Update Backup Destination') }} | ||
</h2> | ||
{{ __('Update Backup Destination') }} | ||
</x-slot> | ||
|
||
<div class="py-6"> | ||
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8"> | ||
@livewire('backup-destinations.update-backup-destination-form', ['backupDestination' => $backupDestination]) | ||
@livewire('backup-destinations.delete-backup-destination-form', ['backupDestination' => $backupDestination]) | ||
</div> | ||
</div> | ||
@livewire('backup-destinations.update-backup-destination-form', ['backupDestination' => $backupDestination]) | ||
@livewire('backup-destinations.delete-backup-destination-form', ['backupDestination' => $backupDestination]) | ||
</x-app-layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,16 @@ | ||
@section('title', __('Backup Destinations')) | ||
<x-app-layout> | ||
<x-slot name="header"> | ||
<h2 class="font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight"> | ||
{{ __('Backup Destinations') }} | ||
</h2> | ||
{{ __('Backup Destinations') }} | ||
</x-slot> | ||
|
||
<div class="py-4 sm:py-6"> | ||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | ||
@if (!Auth::user()->backupDestinations->isEmpty()) | ||
<div class="mb-4 sm:mb-6 flex justify-center sm:justify-end"> | ||
<a href="{{ route('backup-destinations.create') }}" wire:navigate class="w-full sm:w-auto"> | ||
<x-primary-button class="w-full sm:w-auto justify-center"> | ||
{{ __('Add Backup Destination') }} | ||
</x-primary-button> | ||
</a> | ||
</div> | ||
@endif | ||
@livewire('backup-destinations.index-table') | ||
</div> | ||
</div> | ||
<x-slot name="action"> | ||
@if (!Auth::user()->backupDestinations->isEmpty()) | ||
<a href="{{ route('backup-destinations.create') }}" wire:navigate> | ||
<x-primary-button centered> | ||
{{ __('Add Backup Destination') }} | ||
</x-primary-button> | ||
</a> | ||
@endif | ||
</x-slot> | ||
@livewire('backup-destinations.index-table') | ||
</x-app-layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,10 @@ | ||
@section('title', __('Update Backup Task')) | ||
<x-app-layout> | ||
<x-slot name="header"> | ||
<h2 class="font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight"> | ||
{{ __('Update Backup Task') }} | ||
</h2> | ||
{{ __('Update Backup Task') }} | ||
</x-slot> | ||
|
||
<div class="py-6"> | ||
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8"> | ||
@livewire('backup-tasks.forms.update-backup-task-form', ['backupTask' => $backupTask]) | ||
@livewire('backup-tasks.forms.delete-backup-task-form', ['backupTask' => $backupTask]) | ||
|
||
</div> | ||
<div> | ||
@livewire('backup-tasks.forms.update-backup-task-form', ['backupTask' => $backupTask]) | ||
@livewire('backup-tasks.forms.delete-backup-task-form', ['backupTask' => $backupTask]) | ||
</div> | ||
</x-app-layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
@section('title', $header ) | ||
<x-account-wrapper pageTitle=" {{ $header }}"> | ||
<div class="py-4 sm:py-6"> | ||
<x-account-wrapper pageTitle="{{ $header }}"> | ||
@if(isset($action)) | ||
<x-slot name="action"> | ||
{{ $action }} | ||
</x-slot> | ||
@endif | ||
<div> | ||
{{ $slot }} | ||
</div> | ||
</x-account-wrapper> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
<x-app-layout> | ||
@isset($header) | ||
<x-slot name="header"> | ||
<h2 class="font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight"> | ||
{{ $header }} | ||
</h2> | ||
{{ $header }} | ||
</x-slot> | ||
@endisset | ||
@isset($action) | ||
<x-slot name="action"> | ||
{{ $action }} | ||
</x-slot> | ||
@endisset | ||
|
||
{{ $slot }} | ||
</x-app-layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.