diff --git a/.env.example b/.env.example index 2d7f02f..0f1015f 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,4 @@ -APP_NAME=Laravel +APP_NAME=Nightfall APP_ENV=local APP_KEY= APP_DEBUG=true diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index b9c53fe..52c520d 100644 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -87,7 +87,7 @@ public function destroy(string $id) } /** - * Print all user + * Print all records */ public function print() { return view('print.user', ['data' => User::all()]); diff --git a/app/View/Components/PrintLayout.php b/app/View/Components/PrintLayout.php new file mode 100644 index 0000000..16c9e25 --- /dev/null +++ b/app/View/Components/PrintLayout.php @@ -0,0 +1,18 @@ + + diff --git a/resources/views/auth/forgot-password.blade.php b/resources/views/auth/forgot-password.blade.php index 9fe6df9..66c8ebb 100644 --- a/resources/views/auth/forgot-password.blade.php +++ b/resources/views/auth/forgot-password.blade.php @@ -1,4 +1,4 @@ - + diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index f286e37..c6bb6f0 100644 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -1,4 +1,4 @@ - + diff --git a/resources/views/auth/register.blade.php b/resources/views/auth/register.blade.php index 964d113..a9922e4 100644 --- a/resources/views/auth/register.blade.php +++ b/resources/views/auth/register.blade.php @@ -1,4 +1,4 @@ - + diff --git a/resources/views/auth/reset-password.blade.php b/resources/views/auth/reset-password.blade.php index 5991e3e..7c6d685 100644 --- a/resources/views/auth/reset-password.blade.php +++ b/resources/views/auth/reset-password.blade.php @@ -1,4 +1,4 @@ - + diff --git a/resources/views/auth/two-factor-challenge.blade.php b/resources/views/auth/two-factor-challenge.blade.php index 130d088..7955d22 100644 --- a/resources/views/auth/two-factor-challenge.blade.php +++ b/resources/views/auth/two-factor-challenge.blade.php @@ -1,4 +1,4 @@ - + diff --git a/resources/views/auth/verify-email.blade.php b/resources/views/auth/verify-email.blade.php index 956e651..fa67bcf 100644 --- a/resources/views/auth/verify-email.blade.php +++ b/resources/views/auth/verify-email.blade.php @@ -1,4 +1,4 @@ - + diff --git a/resources/views/components/button.blade.php b/resources/views/components/button.blade.php index 3331d16..37168a1 100644 --- a/resources/views/components/button.blade.php +++ b/resources/views/components/button.blade.php @@ -14,22 +14,22 @@ $variantClass = 'bg-gray-800 dark:bg-gray-200 text-white dark:text-gray-800 hover:bg-gray-700 dark:hover:bg-white focus:bg-gray-700 dark:focus:bg-white active:bg-gray-900 dark:active:bg-gray-300'; break; case 'primary': - $variantClass = 'bg-primary-500 text-white hover:bg-primary-400 focus:bg-primary-700 dark:focus:bg-primary-100 active:bg-primary-900 dark:active:bg-primary-300'; + $variantClass = 'bg-primary-500 text-white hover:bg-primary-400 focus:bg-primary-700 dark:focus:bg-primary-500 active:bg-primary-900 dark:active:bg-primary-300'; break; case 'secondary': - $variantClass = 'bg-fuchsia-500 text-white hover:bg-fuchsia-400 focus:bg-fuchsia-700 dark:focus:bg-fuchsia-100 active:bg-fuchsia-900 dark:active:bg-fuchsia-300'; + $variantClass = 'bg-fuchsia-500 text-white hover:bg-fuchsia-400 focus:bg-fuchsia-700 dark:focus:bg-fuchsia-500 active:bg-fuchsia-900 dark:active:bg-fuchsia-300'; break; case 'success': - $variantClass = 'bg-teal-500 text-white hover:bg-teal-400 focus:bg-teal-700 dark:focus:bg-teal-100 active:bg-teal-900 dark:active:bg-teal-300'; + $variantClass = 'bg-teal-500 text-white hover:bg-teal-400 focus:bg-teal-700 dark:focus:bg-teal-500 active:bg-teal-900 dark:active:bg-teal-300'; break; case 'info': - $variantClass = 'bg-sky-500 text-white hover:bg-sky-400 focus:bg-sky-700 dark:focus:bg-sky-100 active:bg-sky-900 dark:active:bg-sky-300'; + $variantClass = 'bg-sky-500 text-white hover:bg-sky-400 focus:bg-sky-700 dark:focus:bg-sky-500 active:bg-sky-900 dark:active:bg-sky-300'; break; case 'danger': - $variantClass = 'bg-red-500 text-white hover:bg-red-400 focus:bg-red-700 dark:focus:bg-red-100 active:bg-red-900 dark:active:bg-red-300'; + $variantClass = 'bg-red-500 text-white hover:bg-red-400 focus:bg-red-700 dark:focus:bg-red-500 active:bg-red-900 dark:active:bg-red-300'; break; case 'warning': - $variantClass = 'bg-yellow-500 text-white hover:bg-yellow-400 focus:bg-yellow-700 dark:focus:bg-yellow-100 active:bg-yellow-900 dark:active:bg-yellow-300'; + $variantClass = 'bg-yellow-500 text-white hover:bg-yellow-400 focus:bg-yellow-700 dark:focus:bg-yellow-500 active:bg-yellow-900 dark:active:bg-yellow-300'; break; default: $variantClass = 'bg-gray-800 dark:bg-gray-200 text-white dark:text-gray-800 hover:bg-gray-700 dark:hover:bg-white focus:bg-gray-700 dark:focus:bg-white active:bg-gray-900 dark:active:bg-gray-300'; diff --git a/resources/views/components/input.blade.php b/resources/views/components/input.blade.php index 33f188b..46f1754 100644 --- a/resources/views/components/input.blade.php +++ b/resources/views/components/input.blade.php @@ -1,3 +1,14 @@ @props(['disabled' => false]) -merge(['class' => 'border-gray-300 dark:border-gray-700 dark:bg-gray-900 dark:text-gray-300 focus:border-primary-500 dark:focus:border-primary-600 focus:ring-primary-500 dark:focus:ring-primary-600 rounded-md shadow-sm']) !!}> +@if($attributes->get('type') === 'password') +
+ merge(['class' => 'border-gray-300 dark:border-gray-700 dark:bg-gray-900 dark:text-gray-300 focus:border-primary-500 dark:focus:border-primary-600 focus:ring-primary-500 dark:focus:ring-primary-600 rounded-md shadow-sm']) !!}> + +
+@else + merge(['class' => 'border-gray-300 dark:border-gray-700 dark:bg-gray-900 dark:text-gray-300 focus:border-primary-500 dark:focus:border-primary-600 focus:ring-primary-500 dark:focus:ring-primary-600 rounded-md shadow-sm']) !!}> +@endif \ No newline at end of file diff --git a/resources/views/components/link.blade.php b/resources/views/components/link.blade.php index 30f0f55..f2eeea8 100644 --- a/resources/views/components/link.blade.php +++ b/resources/views/components/link.blade.php @@ -1,6 +1,11 @@ @props([ 'href' => '#', - 'text' => false + 'text' => false, + 'hardRefresh' => false ]) -{{ $text ? $text : $slot }} \ No newline at end of file +@if($hardRefresh) + {{ $text ? $text : $slot }} +@else + {{ $text ? $text : $slot }} +@endif \ No newline at end of file diff --git a/resources/views/components/print-layout.blade.php b/resources/views/components/print-layout.blade.php new file mode 100644 index 0000000..2f9d034 --- /dev/null +++ b/resources/views/components/print-layout.blade.php @@ -0,0 +1,3 @@ +
+ +
\ No newline at end of file diff --git a/resources/views/components/sidebar.blade.php b/resources/views/components/sidebar.blade.php index cb4f836..3dc1c71 100644 --- a/resources/views/components/sidebar.blade.php +++ b/resources/views/components/sidebar.blade.php @@ -5,7 +5,7 @@
-