diff --git a/app/Http/Livewire/Admin/Menu.php b/app/Http/Livewire/Admin/Menu.php new file mode 100644 index 0000000..18c9b94 --- /dev/null +++ b/app/Http/Livewire/Admin/Menu.php @@ -0,0 +1,14 @@ +$this->pageHeader]); + } +} diff --git a/app/Http/Livewire/Admin/Profile.php b/app/Http/Livewire/Admin/Profile.php new file mode 100644 index 0000000..0c914b4 --- /dev/null +++ b/app/Http/Livewire/Admin/Profile.php @@ -0,0 +1,22 @@ +$this->pageHeader, + 'request' => $request, + 'user' => $request->user() + ]); + } +} diff --git a/app/Models/Menu.php b/app/Models/Menu.php new file mode 100644 index 0000000..17f7ad2 --- /dev/null +++ b/app/Models/Menu.php @@ -0,0 +1,11 @@ +links=$links; + } + + /** + * Get the view / contents that represent the component. + * + * @return \Illuminate\Contracts\View\View|\Closure|string + */ + public function render() + { + return view('components.layout.sidebar.child-one',['links'=>$this->links]); + } +} diff --git a/app/View/Components/Layout/Sidebar/ChildTwo.php b/app/View/Components/Layout/Sidebar/ChildTwo.php new file mode 100644 index 0000000..c021a85 --- /dev/null +++ b/app/View/Components/Layout/Sidebar/ChildTwo.php @@ -0,0 +1,28 @@ +id(); + $table->string('name')->unique(); + $table->string('svg')->unique()->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('menus'); + } +}; diff --git a/resources/views/components/item/button.blade.php b/resources/views/components/item/button.blade.php new file mode 100644 index 0000000..ac254e5 --- /dev/null +++ b/resources/views/components/item/button.blade.php @@ -0,0 +1,26 @@ +@props(['size'=>'default']) +@switch($size) + @case('small') + + @break + + @case('default') + + @break + + @case('large') + + @break +@endswitch + + + diff --git a/resources/views/components/item/modal.blade.php b/resources/views/components/item/modal.blade.php new file mode 100644 index 0000000..31e5d74 --- /dev/null +++ b/resources/views/components/item/modal.blade.php @@ -0,0 +1,115 @@ +@props(['type','buttonName'=>'Give some name', 'modalHeader'=>'Give a header']) + + @switch($type) + @case('add') + + @break + + @case('update') + + @break + + @case('delete') + + @break + @endswitch + + {{__($buttonName)}} + + + +
+
+
+
+

+ @switch($type) + @case('add') + + @break + + @case('update') + + @break + + @case('delete') + + @break + @endswitch + + {{$modalHeader}} + +

+ +
+
+
+
+

Be bold

+

+ Motivate teams to do their best work. Offer best practices to get users going in the right + direction. Be bold and offer just enough help to get the work started, and then get out of + the way. Give accurate information so users can make educated decisions. Know your user's + struggles and desired outcomes and give just enough information to let them get where they + need to go. +

+
+ +
+

Be optimistic

+

+ Focusing on the details gives people confidence in our products. Weave a consistent story + across our fabric and be diligent about vocabulary across all messaging by being brand + conscious across products to create a seamless flow across all the things. Let people know + that they can jump in and start working expecting to find a dependable experience across all + the things. Keep teams in the loop about what is happening by informing them of relevant + features, products and opportunities for success. Be on the journey with them and highlight + the key points that will help them the most - right now. Be in the moment by focusing + attention on the important bits first. +

+
+ +
+

Be practical, with a wink

+

+ Keep our own story short and give teams just enough to get moving. Get to the point and be + direct. Be concise - we tell the story of how we can help, but we do it directly and with + purpose. Be on the lookout for opportunities and be quick to offer a helping hand. At the + same time realize that novbody likes a nosy neighbor. Give the user just enough to know that + something awesome is around the corner and then get out of the way. Write clear, accurate, + and concise text that makes interfaces more usable and consistent - and builds trust. We + strive to write text that is understandable by anyone, anywhere, regardless of their culture + or language so that everyone feels they are part of the team. +

+
+
+
+
+ + + Save changes + +
+
+
+
diff --git a/resources/views/components/layout/sidebar/arrow-direction.blade.php b/resources/views/components/layout/sidebar/arrow-direction.blade.php new file mode 100644 index 0000000..bcfeb73 --- /dev/null +++ b/resources/views/components/layout/sidebar/arrow-direction.blade.php @@ -0,0 +1,17 @@ + + + + + diff --git a/resources/views/components/layout/sidebar/child-one.blade.php b/resources/views/components/layout/sidebar/child-one.blade.php new file mode 100644 index 0000000..95b577c --- /dev/null +++ b/resources/views/components/layout/sidebar/child-one.blade.php @@ -0,0 +1,54 @@ +@props(['id'=>null, 'name'=>null , 'childCount'=>0]) +@if($id != null) +
  • + merge(['class' => 'hs-accordion-toggle cursor-pointer flex items-center gap-x-3.5 py-2 px-2.5 hs-accordion-active:text-blue-600 hs-accordion-active:hover:bg-transparent text-sm text-slate-700 +rounded-md hover:bg-slate-100 dark:hover:bg-oblue-500 dark:text-slate-400 dark:hover:bg-oblue-500 dark:hs-accordion-active:text-white']) }} > + @switch($name) + @case('Users') + + {{ __($name) }} + @break + +{{-- @case('Menu')--}} +{{-- --}} +{{-- {{ __($name) }}--}} +{{-- @break--}} + + @default + {{ __($name) }} + @break + @endswitch + @if($childCount > 0) @endif + + +
  • +@else +
  • + merge(['class' => 'flex items-center gap-x-3.5 py-2 px-2.5 text-sm text-slate-700 rounded-md hover:bg-slate-100 dark:hover:bg-oblue-500 dark:text-slate-400 dark:hover:bg-oblue-500']) }} href="route($href)"> + @switch($name) + @case('Dashboard') + + {{ __($name) }} + @break + + @case('Users') + + {{ __($name) }} + @break + + @case('Menu') + + {{ __($name) }} + @break + + @default + {{ __($name) }} + @break + @endswitch + +
  • +@endif + diff --git a/resources/views/components/layout/sidebar/child-two.blade.php b/resources/views/components/layout/sidebar/child-two.blade.php new file mode 100644 index 0000000..094f4a0 --- /dev/null +++ b/resources/views/components/layout/sidebar/child-two.blade.php @@ -0,0 +1,13 @@ +@props(['links'=>[]]) +@if(count($links) > 0) + + @endif diff --git a/resources/views/components/layout/sidebar/parent.blade.php b/resources/views/components/layout/sidebar/parent.blade.php new file mode 100644 index 0000000..3425cfe --- /dev/null +++ b/resources/views/components/layout/sidebar/parent.blade.php @@ -0,0 +1,5 @@ + diff --git a/resources/views/components/svg/add.blade.php b/resources/views/components/svg/add.blade.php new file mode 100644 index 0000000..960bac6 --- /dev/null +++ b/resources/views/components/svg/add.blade.php @@ -0,0 +1,3 @@ +merge(['class' => 'flex-none']) }} xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" > + + diff --git a/resources/views/components/svg/home.blade.php b/resources/views/components/svg/home.blade.php new file mode 100644 index 0000000..7a53887 --- /dev/null +++ b/resources/views/components/svg/home.blade.php @@ -0,0 +1,7 @@ +merge(['class' => 'flex-none']) }} xmlns="http://www.w3.org/2000/svg" width="16" height="16" + fill="currentColor" viewBox="0 0 16 16"> + + + diff --git a/resources/views/components/svg/menu.blade.php b/resources/views/components/svg/menu.blade.php new file mode 100644 index 0000000..05382ca --- /dev/null +++ b/resources/views/components/svg/menu.blade.php @@ -0,0 +1,4 @@ +merge(['class' => 'flex-none']) }} xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" width="16" height="16"> + + + diff --git a/resources/views/components/svg/users.blade.php b/resources/views/components/svg/users.blade.php new file mode 100644 index 0000000..f5e2b00 --- /dev/null +++ b/resources/views/components/svg/users.blade.php @@ -0,0 +1,5 @@ +merge(['class' => 'flex-none']) }} xmlns="http://www.w3.org/2000/svg" width="16" height="16" + fill="currentColor" viewBox="0 0 16 16"> + + diff --git a/resources/views/livewire/admin/menu.blade.php b/resources/views/livewire/admin/menu.blade.php new file mode 100644 index 0000000..a68ae4d --- /dev/null +++ b/resources/views/livewire/admin/menu.blade.php @@ -0,0 +1,13 @@ +
    + @livewire('layout.navigation') + @livewire('layout.toggle') + @livewire('layout.sidebar') + @livewire('layout.header',['header'=>$pageHeader]) + + + + + + + +
    diff --git a/resources/views/livewire/admin/profile.blade.php b/resources/views/livewire/admin/profile.blade.php new file mode 100644 index 0000000..165ecc3 --- /dev/null +++ b/resources/views/livewire/admin/profile.blade.php @@ -0,0 +1,63 @@ +
    + @livewire('layout.navigation') + @livewire('layout.toggle') + @livewire('layout.sidebar') + @livewire('layout.header',['header'=>$pageHeader]) + + + + + +
    +
    + @if (Laravel\Fortify\Features::canUpdateProfileInformation()) + @if(Auth::guard('admin')->check()) + @livewire('admin-update-profile-information-form') + @else + @livewire('profile.update-profile-information-form') + @endif + + @endif + + @if (Laravel\Fortify\Features::enabled(Laravel\Fortify\Features::updatePasswords())) +
    + @livewire('profile.update-password-form') +
    + + + @endif + + @if (Laravel\Fortify\Features::canManageTwoFactorAuthentication()) +
    + + @if(Auth::guard('admin')->check()) + @livewire('admin-two-factor-authentication-form') + @else + @livewire('profile.two-factor-authentication-form') + @endif + +
    + + + @endif + +
    + @livewire('profile.logout-other-browser-sessions-form') +
    + + @if (Laravel\Jetstream\Jetstream::hasAccountDeletionFeatures()) + + +
    + @livewire('profile.delete-user-form') +
    + @endif +
    +
    + + + + +
    + +