From 420d07fd93287d955c1048465f3fb37edbd1236e Mon Sep 17 00:00:00 2001 From: suraj kashyap Date: Thu, 26 Sep 2024 17:45:03 +0530 Subject: [PATCH 01/12] Mobile responsive. --- .../layouts/header/desktop.blade.php | 761 ++++++++++++++++ .../components/layouts/header/index.blade.php | 764 +--------------- .../layouts/header/mobile.blade.php | 834 ++++++++++++++++++ .../components/shimmer/charts/bar.blade.php | 2 +- .../dashboard/index/over-all.blade.php | 4 +- .../shimmer/dashboard/index/revenue.blade.php | 2 +- .../Resources/views/dashboard/index.blade.php | 2 +- .../views/dashboard/index/over-all.blade.php | 4 +- .../views/dashboard/index/revenue.blade.php | 2 +- 9 files changed, 1607 insertions(+), 768 deletions(-) create mode 100644 packages/Webkul/Admin/src/Resources/views/components/layouts/header/desktop.blade.php create mode 100644 packages/Webkul/Admin/src/Resources/views/components/layouts/header/mobile.blade.php diff --git a/packages/Webkul/Admin/src/Resources/views/components/layouts/header/desktop.blade.php b/packages/Webkul/Admin/src/Resources/views/components/layouts/header/desktop.blade.php new file mode 100644 index 000000000..45e35e513 --- /dev/null +++ b/packages/Webkul/Admin/src/Resources/views/components/layouts/header/desktop.blade.php @@ -0,0 +1,761 @@ +
+ +
+ + + + {{ config('app.name') }} + +
+ +
+ + +
+ + + +
+
+ + +
+ @if (bouncer()->hasPermission('leads.create') + || bouncer()->hasPermission('quotes.create') + || bouncer()->hasPermission('mail.create') + || bouncer()->hasPermission('contacts.persons.create') + || bouncer()->hasPermission('contacts.organizations.create') + || bouncer()->hasPermission('products.create') + || bouncer()->hasPermission('settings.automation.attributes.create') + || bouncer()->hasPermission('settings.user.roles.create') + || bouncer()->hasPermission('settings.user.users.create') + ) + + + + + + + + +
+
+ + @if (bouncer()->hasPermission('leads.create')) + + @endif + + + @if (bouncer()->hasPermission('quotes.create')) + + @endif + + + @if (bouncer()->hasPermission('mail.create')) + + @endif + + + @if (bouncer()->hasPermission('contacts.persons.create')) + + @endif + + + @if (bouncer()->hasPermission('contacts.organizations.create')) + + @endif + + + @if (bouncer()->hasPermission('products.create')) + + @endif + + + @if (bouncer()->hasPermission('settings.automation.attributes.create')) + + @endif + + + @if (bouncer()->hasPermission('settings.user.roles.create')) + + @endif + + + @if (bouncer()->hasPermission('settings.user.users.create')) + + @endif +
+
+ +
+ @endif +
+
+ +
+ + +
+ +
+
+ + + + + @if (auth()->guard('user')->user()->image) + + @else + + @endif + + + + +
+ + + +

+ Version: v{{ core()->version() }} +

+
+ + + +
+
+
+ +@pushOnce('scripts') + + + + + + + +@endPushOnce diff --git a/packages/Webkul/Admin/src/Resources/views/components/layouts/header/index.blade.php b/packages/Webkul/Admin/src/Resources/views/components/layouts/header/index.blade.php index af7a382d0..50dcddba2 100644 --- a/packages/Webkul/Admin/src/Resources/views/components/layouts/header/index.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/layouts/header/index.blade.php @@ -1,761 +1,5 @@ -
- -
- + + - - {{ config('app.name') }} - -
- -
- - -
- - - -
-
- - -
- @if (bouncer()->hasPermission('leads.create') - || bouncer()->hasPermission('quotes.create') - || bouncer()->hasPermission('mail.create') - || bouncer()->hasPermission('contacts.persons.create') - || bouncer()->hasPermission('contacts.organizations.create') - || bouncer()->hasPermission('products.create') - || bouncer()->hasPermission('settings.automation.attributes.create') - || bouncer()->hasPermission('settings.user.roles.create') - || bouncer()->hasPermission('settings.user.users.create') - ) - - - - - - - - -
-
- - @if (bouncer()->hasPermission('leads.create')) - - @endif - - - @if (bouncer()->hasPermission('quotes.create')) - - @endif - - - @if (bouncer()->hasPermission('mail.create')) - - @endif - - - @if (bouncer()->hasPermission('contacts.persons.create')) - - @endif - - - @if (bouncer()->hasPermission('contacts.organizations.create')) - - @endif - - - @if (bouncer()->hasPermission('products.create')) - - @endif - - - @if (bouncer()->hasPermission('settings.automation.attributes.create')) - - @endif - - - @if (bouncer()->hasPermission('settings.user.roles.create')) - - @endif - - - @if (bouncer()->hasPermission('settings.user.users.create')) - - @endif -
-
- -
- @endif -
-
- -
- - -
- -
-
- - - - - @if (auth()->guard('user')->user()->image) - - @else - - @endif - - - - -
- - - -

- Version: v{{ core()->version() }} -

-
- - - -
-
-
- -@pushOnce('scripts') - - - - - - - -@endPushOnce + + diff --git a/packages/Webkul/Admin/src/Resources/views/components/layouts/header/mobile.blade.php b/packages/Webkul/Admin/src/Resources/views/components/layouts/header/mobile.blade.php new file mode 100644 index 000000000..b6838cd00 --- /dev/null +++ b/packages/Webkul/Admin/src/Resources/views/components/layouts/header/mobile.blade.php @@ -0,0 +1,834 @@ +
+
+
+ +
+ + + + {{ config('app.name') }} + +
+ +
+ +
+ @if (bouncer()->hasPermission('leads.create') + || bouncer()->hasPermission('quotes.create') + || bouncer()->hasPermission('mail.create') + || bouncer()->hasPermission('contacts.persons.create') + || bouncer()->hasPermission('contacts.organizations.create') + || bouncer()->hasPermission('products.create') + || bouncer()->hasPermission('settings.automation.attributes.create') + || bouncer()->hasPermission('settings.user.roles.create') + || bouncer()->hasPermission('settings.user.users.create') + ) + + + + + + + + +
+
+ + @if (bouncer()->hasPermission('leads.create')) + + @endif + + + @if (bouncer()->hasPermission('quotes.create')) + + @endif + + + @if (bouncer()->hasPermission('mail.create')) + + @endif + + + @if (bouncer()->hasPermission('contacts.persons.create')) + + @endif + + + @if (bouncer()->hasPermission('contacts.organizations.create')) + + @endif + + + @if (bouncer()->hasPermission('products.create')) + + @endif + + + @if (bouncer()->hasPermission('settings.automation.attributes.create')) + + @endif + + + @if (bouncer()->hasPermission('settings.user.roles.create')) + + @endif + + + @if (bouncer()->hasPermission('settings.user.users.create')) + + @endif +
+
+ +
+ @endif +
+ + + +
+ +
+
+ + + + + @if (auth()->guard('user')->user()->image) + + @else + + @endif + + + + +
+ + + +

+ Version: v{{ core()->version() }} +

+
+ + + +
+
+
+ + + +
+ + + +
+
+
+
+ + + + +
+ + {{ config('app.name') }} + +
+ + + + +
+ +
+ +
+ +@pushOnce('scripts') + + + + + + + +@endPushOnce diff --git a/packages/Webkul/Admin/src/Resources/views/components/shimmer/charts/bar.blade.php b/packages/Webkul/Admin/src/Resources/views/components/shimmer/charts/bar.blade.php index 4762e4b72..e5cbb4dbc 100644 --- a/packages/Webkul/Admin/src/Resources/views/components/shimmer/charts/bar.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/shimmer/charts/bar.blade.php @@ -7,7 +7,7 @@ @endforeach -
+
@foreach (range(1, $count) as $i) diff --git a/packages/Webkul/Admin/src/Resources/views/components/shimmer/dashboard/index/over-all.blade.php b/packages/Webkul/Admin/src/Resources/views/components/shimmer/dashboard/index/over-all.blade.php index 5f1c490b9..f6ebb333a 100644 --- a/packages/Webkul/Admin/src/Resources/views/components/shimmer/dashboard/index/over-all.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/shimmer/dashboard/index/over-all.blade.php @@ -1,7 +1,7 @@ -
+
@for ($i = 1; $i <= 6; $i++)
-
+
diff --git a/packages/Webkul/Admin/src/Resources/views/components/shimmer/dashboard/index/revenue.blade.php b/packages/Webkul/Admin/src/Resources/views/components/shimmer/dashboard/index/revenue.blade.php index 8e18ab6d1..38a3cb59a 100644 --- a/packages/Webkul/Admin/src/Resources/views/components/shimmer/dashboard/index/revenue.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/shimmer/dashboard/index/revenue.blade.php @@ -1,5 +1,5 @@
-
+
diff --git a/packages/Webkul/Admin/src/Resources/views/dashboard/index.blade.php b/packages/Webkul/Admin/src/Resources/views/dashboard/index.blade.php index 1afde0388..2e1896493 100644 --- a/packages/Webkul/Admin/src/Resources/views/dashboard/index.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/dashboard/index.blade.php @@ -50,7 +50,7 @@ @include('admin::dashboard.index.total-leads') -
+
@include('admin::dashboard.index.top-selling-products') diff --git a/packages/Webkul/Admin/src/Resources/views/dashboard/index/over-all.blade.php b/packages/Webkul/Admin/src/Resources/views/dashboard/index/over-all.blade.php index d13459c71..4689120fe 100644 --- a/packages/Webkul/Admin/src/Resources/views/dashboard/index/over-all.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/dashboard/index/over-all.blade.php @@ -21,7 +21,7 @@