first commit

This commit is contained in:
2025-12-21 08:03:18 +07:00
commit 7c746f776a
300 changed files with 24836 additions and 0 deletions

View File

@@ -0,0 +1,73 @@
@props(['countries' => []])
@php
$defaultCountries = [
[
'name' => 'USA',
'flag' => './images/country/country-01.svg',
'customers' => '2,379',
'percentage' => 79
],
[
'name' => 'France',
'flag' => './images/country/country-02.svg',
'customers' => '589',
'percentage' => 23
],
];
$countriesList = !empty($countries) ? $countries : $defaultCountries;
@endphp
<div class="rounded-2xl border border-gray-200 bg-white p-5 dark:border-gray-800 dark:bg-white/[0.03] sm:p-6">
<div class="flex justify-between">
<div>
<h3 class="text-lg font-semibold text-gray-800 dark:text-white/90">
Customers Demographic
</h3>
<p class="mt-1 text-theme-sm text-gray-500 dark:text-gray-400">
Number of customer based on country
</p>
</div>
<!-- Dropdown Menu -->
<x-common.dropdown-menu />
<!-- End Dropdown Menu -->
</div>
<div class="border-gary-200 my-6 overflow-hidden rounded-2xl border bg-gray-50 px-4 py-6 dark:border-gray-800 dark:bg-gray-900 sm:px-6">
<div id="mapOne" class="mapOne map-btn -mx-4 -my-6 h-[212px] w-[252px] 2xsm:w-[307px] xsm:w-[358px] sm:-mx-6 md:w-[668px] lg:w-[634px] xl:w-[393px] 2xl:w-[554px]"></div>
</div>
<div class="space-y-5">
@foreach($countriesList as $country)
<div class="flex items-center justify-between">
<div class="flex items-center gap-3">
<div class="w-full max-w-8 items-center rounded-full">
<img src="{{ $country['flag'] }}" alt="{{ strtolower($country['name']) }}" />
</div>
<div>
<p class="text-theme-sm font-semibold text-gray-800 dark:text-white/90">
{{ $country['name'] }}
</p>
<span class="block text-theme-xs text-gray-500 dark:text-gray-400">
{{ $country['customers'] }} Customers
</span>
</div>
</div>
<div class="flex w-full max-w-[140px] items-center gap-3">
<div class="relative block h-2 w-full max-w-[100px] rounded-sm bg-gray-200 dark:bg-gray-800">
<div
class="absolute left-0 top-0 flex h-full items-center justify-center rounded-sm bg-brand-500 text-xs font-medium text-white"
style="width: {{ $country['percentage'] }}%"
></div>
</div>
<p class="text-theme-sm font-medium text-gray-800 dark:text-white/90">
{{ $country['percentage'] }}%
</p>
</div>
</div>
@endforeach
</div>
</div>

View File

@@ -0,0 +1,107 @@
<div class="grid grid-cols-1 gap-4 sm:grid-cols-2 md:gap-6">
<div
class="rounded-2xl border border-gray-200 bg-white p-5 dark:border-gray-800 dark:bg-white/[0.03] md:p-6"
>
<div
class="flex items-center justify-center w-12 h-12 bg-gray-100 rounded-xl dark:bg-gray-800"
>
<svg
class="fill-gray-800 dark:fill-white/90"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M8.80443 5.60156C7.59109 5.60156 6.60749 6.58517 6.60749 7.79851C6.60749 9.01185 7.59109 9.99545 8.80443 9.99545C10.0178 9.99545 11.0014 9.01185 11.0014 7.79851C11.0014 6.58517 10.0178 5.60156 8.80443 5.60156ZM5.10749 7.79851C5.10749 5.75674 6.76267 4.10156 8.80443 4.10156C10.8462 4.10156 12.5014 5.75674 12.5014 7.79851C12.5014 9.84027 10.8462 11.4955 8.80443 11.4955C6.76267 11.4955 5.10749 9.84027 5.10749 7.79851ZM4.86252 15.3208C4.08769 16.0881 3.70377 17.0608 3.51705 17.8611C3.48384 18.0034 3.5211 18.1175 3.60712 18.2112C3.70161 18.3141 3.86659 18.3987 4.07591 18.3987H13.4249C13.6343 18.3987 13.7992 18.3141 13.8937 18.2112C13.9797 18.1175 14.017 18.0034 13.9838 17.8611C13.7971 17.0608 13.4132 16.0881 12.6383 15.3208C11.8821 14.572 10.6899 13.955 8.75042 13.955C6.81096 13.955 5.61877 14.572 4.86252 15.3208ZM3.8071 14.2549C4.87163 13.2009 6.45602 12.455 8.75042 12.455C11.0448 12.455 12.6292 13.2009 13.6937 14.2549C14.7397 15.2906 15.2207 16.5607 15.4446 17.5202C15.7658 18.8971 14.6071 19.8987 13.4249 19.8987H4.07591C2.89369 19.8987 1.73504 18.8971 2.05628 17.5202C2.28015 16.5607 2.76117 15.2906 3.8071 14.2549ZM15.3042 11.4955C14.4702 11.4955 13.7006 11.2193 13.0821 10.7533C13.3742 10.3314 13.6054 9.86419 13.7632 9.36432C14.1597 9.75463 14.7039 9.99545 15.3042 9.99545C16.5176 9.99545 17.5012 9.01185 17.5012 7.79851C17.5012 6.58517 16.5176 5.60156 15.3042 5.60156C14.7039 5.60156 14.1597 5.84239 13.7632 6.23271C13.6054 5.73284 13.3741 5.26561 13.082 4.84371C13.7006 4.37777 14.4702 4.10156 15.3042 4.10156C17.346 4.10156 19.0012 5.75674 19.0012 7.79851C19.0012 9.84027 17.346 11.4955 15.3042 11.4955ZM19.9248 19.8987H16.3901C16.7014 19.4736 16.9159 18.969 16.9827 18.3987H19.9248C20.1341 18.3987 20.2991 18.3141 20.3936 18.2112C20.4796 18.1175 20.5169 18.0034 20.4837 17.861C20.2969 17.0607 19.913 16.088 19.1382 15.3208C18.4047 14.5945 17.261 13.9921 15.4231 13.9566C15.2232 13.6945 14.9995 13.437 14.7491 13.1891C14.5144 12.9566 14.262 12.7384 13.9916 12.5362C14.3853 12.4831 14.8044 12.4549 15.2503 12.4549C17.5447 12.4549 19.1291 13.2008 20.1936 14.2549C21.2395 15.2906 21.7206 16.5607 21.9444 17.5202C22.2657 18.8971 21.107 19.8987 19.9248 19.8987Z"
fill=""
/>
</svg>
</div>
<div class="flex items-end justify-between mt-5">
<div>
<span class="text-sm text-gray-500 dark:text-gray-400">Customers</span>
<h4 class="mt-2 font-bold text-gray-800 text-title-sm dark:text-white/90">3,782</h4>
</div>
<span
class="flex items-center gap-1 rounded-full bg-success-50 py-0.5 pl-2 pr-2.5 text-sm font-medium text-success-600 dark:bg-success-500/15 dark:text-success-500"
>
<svg
class="fill-current"
width="12"
height="12"
viewBox="0 0 12 12"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M5.56462 1.62393C5.70193 1.47072 5.90135 1.37432 6.12329 1.37432C6.1236 1.37432 6.12391 1.37432 6.12422 1.37432C6.31631 1.37415 6.50845 1.44731 6.65505 1.59381L9.65514 4.5918C9.94814 4.88459 9.94831 5.35947 9.65552 5.65246C9.36273 5.94546 8.88785 5.94562 8.59486 5.65283L6.87329 3.93247L6.87329 10.125C6.87329 10.5392 6.53751 10.875 6.12329 10.875C5.70908 10.875 5.37329 10.5392 5.37329 10.125L5.37329 3.93578L3.65516 5.65282C3.36218 5.94562 2.8873 5.94547 2.5945 5.65248C2.3017 5.35949 2.30185 4.88462 2.59484 4.59182L5.56462 1.62393Z"
fill=""
/>
</svg>
11.01%
</span>
</div>
</div>
<div
class="rounded-2xl border border-gray-200 bg-white p-5 dark:border-gray-800 dark:bg-white/[0.03] md:p-6"
>
<div
class="flex items-center justify-center w-12 h-12 bg-gray-100 rounded-xl dark:bg-gray-800"
>
<svg
class="fill-gray-800 dark:fill-white/90"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M11.665 3.75621C11.8762 3.65064 12.1247 3.65064 12.3358 3.75621L18.7807 6.97856L12.3358 10.2009C12.1247 10.3065 11.8762 10.3065 11.665 10.2009L5.22014 6.97856L11.665 3.75621ZM4.29297 8.19203V16.0946C4.29297 16.3787 4.45347 16.6384 4.70757 16.7654L11.25 20.0366V11.6513C11.1631 11.6205 11.0777 11.5843 10.9942 11.5426L4.29297 8.19203ZM12.75 20.037L19.2933 16.7654C19.5474 16.6384 19.7079 16.3787 19.7079 16.0946V8.19202L13.0066 11.5426C12.9229 11.5844 12.8372 11.6208 12.75 11.6516V20.037ZM13.0066 2.41456C12.3732 2.09786 11.6277 2.09786 10.9942 2.41456L4.03676 5.89319C3.27449 6.27432 2.79297 7.05342 2.79297 7.90566V16.0946C2.79297 16.9469 3.27448 17.726 4.03676 18.1071L10.9942 21.5857L11.3296 20.9149L10.9942 21.5857C11.6277 21.9024 12.3732 21.9024 13.0066 21.5857L19.9641 18.1071C20.7264 17.726 21.2079 16.9469 21.2079 16.0946V7.90566C21.2079 7.05342 20.7264 6.27432 19.9641 5.89319L13.0066 2.41456Z"
fill=""
/>
</svg>
</div>
<div class="flex items-end justify-between mt-5">
<div>
<span class="text-sm text-gray-500 dark:text-gray-400">Orders</span>
<h4 class="mt-2 font-bold text-gray-800 text-title-sm dark:text-white/90">5,359</h4>
</div>
<span
class="flex items-center gap-1 rounded-full bg-error-50 py-0.5 pl-2 pr-2.5 text-sm font-medium text-error-600 dark:bg-error-500/15 dark:text-error-500"
>
<svg
class="fill-current"
width="12"
height="12"
viewBox="0 0 12 12"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M5.31462 10.3761C5.45194 10.5293 5.65136 10.6257 5.87329 10.6257C5.8736 10.6257 5.8739 10.6257 5.87421 10.6257C6.0663 10.6259 6.25845 10.5527 6.40505 10.4062L9.40514 7.4082C9.69814 7.11541 9.69831 6.64054 9.40552 6.34754C9.11273 6.05454 8.63785 6.05438 8.34486 6.34717L6.62329 8.06753L6.62329 1.875C6.62329 1.46079 6.28751 1.125 5.87329 1.125C5.45908 1.125 5.12329 1.46079 5.12329 1.875L5.12329 8.06422L3.40516 6.34719C3.11218 6.05439 2.6373 6.05454 2.3445 6.34752C2.0517 6.64051 2.05185 7.11538 2.34484 7.40818L5.31462 10.3761Z"
fill=""
/>
</svg>
9.05%
</span>
</div>
</div>
</div>

View File

@@ -0,0 +1,18 @@
<div
class="overflow-hidden rounded-2xl border border-gray-200 bg-white px-5 pt-5 sm:px-6 sm:pt-6 dark:border-gray-800 dark:bg-white/[0.03]">
<div class="flex items-center justify-between">
<h3 class="text-lg font-semibold text-gray-800 dark:text-white/90">
Monthly Sales
</h3>
<!-- Dropdown Menu -->
<x-common.dropdown-menu />
<!-- End Dropdown Menu -->
</div>
<div class="max-w-full overflow-x-auto custom-scrollbar">
<div id="chartOne" class="-ml-5 h-full min-w-[690px] pl-2 xl:min-w-full"></div>
</div>
</div>

View File

@@ -0,0 +1,81 @@
<div class="rounded-2xl border border-gray-200 bg-gray-100 dark:border-gray-800 dark:bg-white/[0.03]">
<div class="shadow-default rounded-2xl bg-white px-5 pb-11 pt-5 dark:bg-gray-900 sm:px-6 sm:pt-6">
<div class="flex justify-between">
<div>
<h3 class="text-lg font-semibold text-gray-800 dark:text-white/90">
Monthly Target
</h3>
<p class="mt-1 text-theme-sm text-gray-500 dark:text-gray-400">
Target youve set for each month
</p>
</div>
<!-- Dropdown Menu -->
<x-common.dropdown-menu />
<!-- End Dropdown Menu -->
</div>
<div class="relative max-h-[195px]">
{{-- Chart --}}
<div id="chartTwo" class="h-full"></div>
<span class="absolute left-1/2 top-[85%] -translate-x-1/2 -translate-y-[85%] rounded-full bg-success-50 px-3 py-1 text-xs font-medium text-success-600 dark:bg-success-500/15 dark:text-success-500">+10%</span>
</div>
<p class="mx-auto mt-1.5 w-full max-w-[380px] text-center text-sm text-gray-500 sm:text-base">
You earn $3287 today, it's higher than last month. Keep up your good work!
</p>
</div>
<div class="flex items-center justify-center gap-5 px-6 py-3.5 sm:gap-8 sm:py-5">
<div>
<p class="mb-1 text-center text-theme-xs text-gray-500 dark:text-gray-400 sm:text-sm">
Target
</p>
<p
class="flex items-center justify-center gap-1 text-base font-semibold text-gray-800 dark:text-white/90 sm:text-lg">
$20K
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd"
d="M7.26816 13.6632C7.4056 13.8192 7.60686 13.9176 7.8311 13.9176C7.83148 13.9176 7.83187 13.9176 7.83226 13.9176C8.02445 13.9178 8.21671 13.8447 8.36339 13.6981L12.3635 9.70076C12.6565 9.40797 12.6567 8.9331 12.3639 8.6401C12.0711 8.34711 11.5962 8.34694 11.3032 8.63973L8.5811 11.36L8.5811 2.5C8.5811 2.08579 8.24531 1.75 7.8311 1.75C7.41688 1.75 7.0811 2.08579 7.0811 2.5L7.0811 11.3556L4.36354 8.63975C4.07055 8.34695 3.59568 8.3471 3.30288 8.64009C3.01008 8.93307 3.01023 9.40794 3.30321 9.70075L7.26816 13.6632Z"
fill="#D92D20" />
</svg>
</p>
</div>
<div class="h-7 w-px bg-gray-200 dark:bg-gray-800"></div>
<div>
<p class="mb-1 text-center text-theme-xs text-gray-500 dark:text-gray-400 sm:text-sm">
Revenue
</p>
<p
class="flex items-center justify-center gap-1 text-base font-semibold text-gray-800 dark:text-white/90 sm:text-lg">
$20K
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd"
d="M7.60141 2.33683C7.73885 2.18084 7.9401 2.08243 8.16435 2.08243C8.16475 2.08243 8.16516 2.08243 8.16556 2.08243C8.35773 2.08219 8.54998 2.15535 8.69664 2.30191L12.6968 6.29924C12.9898 6.59203 12.9899 7.0669 12.6971 7.3599C12.4044 7.6529 11.9295 7.65306 11.6365 7.36027L8.91435 4.64004L8.91435 13.5C8.91435 13.9142 8.57856 14.25 8.16435 14.25C7.75013 14.25 7.41435 13.9142 7.41435 13.5L7.41435 4.64442L4.69679 7.36025C4.4038 7.65305 3.92893 7.6529 3.63613 7.35992C3.34333 7.06693 3.34348 6.59206 3.63646 6.29926L7.60141 2.33683Z"
fill="#039855" />
</svg>
</p>
</div>
<div class="h-7 w-px bg-gray-200 dark:bg-gray-800"></div>
<div>
<p class="mb-1 text-center text-theme-xs text-gray-500 dark:text-gray-400 sm:text-sm">
Today
</p>
<p
class="flex items-center justify-center gap-1 text-base font-semibold text-gray-800 dark:text-white/90 sm:text-lg">
$20K
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd"
d="M7.60141 2.33683C7.73885 2.18084 7.9401 2.08243 8.16435 2.08243C8.16475 2.08243 8.16516 2.08243 8.16556 2.08243C8.35773 2.08219 8.54998 2.15535 8.69664 2.30191L12.6968 6.29924C12.9898 6.59203 12.9899 7.0669 12.6971 7.3599C12.4044 7.6529 11.9295 7.65306 11.6365 7.36027L8.91435 4.64004L8.91435 13.5C8.91435 13.9142 8.57856 14.25 8.16435 14.25C7.75013 14.25 7.41435 13.9142 7.41435 13.5L7.41435 4.64442L4.69679 7.36025C4.4038 7.65305 3.92893 7.6529 3.63613 7.35992C3.34333 7.06693 3.34348 6.59206 3.63646 6.29926L7.60141 2.33683Z"
fill="#039855" />
</svg>
</p>
</div>
</div>
</div>

View File

@@ -0,0 +1,137 @@
@props(['products' => []])
@php
$defaultProducts = [
[
'name' => 'Macbook pro 13"',
'variants' => 2,
'image' => '/images/product/product-01.jpg',
'category' => 'Laptop',
'price' => '$2399.00',
'status' => 'Delivered',
],
[
'name' => 'Apple Watch Ultra',
'variants' => 1,
'image' => '/images/product/product-02.jpg',
'category' => 'Watch',
'price' => '$879.00',
'status' => 'Pending',
],
[
'name' => 'iPhone 15 Pro Max',
'variants' => 2,
'image' => '/images/product/product-03.jpg',
'category' => 'SmartPhone',
'price' => '$1869.00',
'status' => 'Delivered',
],
[
'name' => 'iPad Pro 3rd Gen',
'variants' => 2,
'image' => '/images/product/product-04.jpg',
'category' => 'Electronics',
'price' => '$1699.00',
'status' => 'Canceled',
],
[
'name' => 'Airpods Pro 2nd Gen',
'variants' => 1,
'image' => '/images/product/product-05.jpg',
'category' => 'Accessories',
'price' => '$240.00',
'status' => 'Delivered',
],
];
$productsList = !empty($products) ? $products : $defaultProducts;
// Helper function for status classes
$getStatusClasses = function($status) {
$baseClasses = 'rounded-full px-2 py-0.5 text-theme-xs font-medium';
return match($status) {
'Delivered' => $baseClasses . ' bg-success-50 text-success-600 dark:bg-success-500/15 dark:text-success-500',
'Pending' => $baseClasses . ' bg-warning-50 text-warning-600 dark:bg-warning-500/15 dark:text-orange-400',
'Canceled' => $baseClasses . ' bg-error-50 text-error-600 dark:bg-error-500/15 dark:text-error-500',
default => $baseClasses . ' bg-gray-50 text-gray-600 dark:bg-gray-500/15 dark:text-gray-400',
};
};
@endphp
<div class="overflow-hidden rounded-2xl border border-gray-200 bg-white px-4 pb-3 pt-4 dark:border-gray-800 dark:bg-white/[0.03] sm:px-6">
<div class="flex flex-col gap-2 mb-4 sm:flex-row sm:items-center sm:justify-between">
<div>
<h3 class="text-lg font-semibold text-gray-800 dark:text-white/90">Recent Orders</h3>
</div>
<div class="flex items-center gap-3">
<button class="inline-flex items-center gap-2 rounded-lg border border-gray-300 bg-white px-4 py-2.5 text-theme-sm font-medium text-gray-700 shadow-theme-xs hover:bg-gray-50 hover:text-gray-800 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-white/[0.03] dark:hover:text-gray-200">
<svg class="stroke-current fill-white dark:fill-gray-800" width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M2.29004 5.90393H17.7067" stroke="" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
<path d="M17.7075 14.0961H2.29085" stroke="" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
<path d="M12.0826 3.33331C13.5024 3.33331 14.6534 4.48431 14.6534 5.90414C14.6534 7.32398 13.5024 8.47498 12.0826 8.47498C10.6627 8.47498 9.51172 7.32398 9.51172 5.90415C9.51172 4.48432 10.6627 3.33331 12.0826 3.33331Z" fill="" stroke="" stroke-width="1.5" />
<path d="M7.91745 11.525C6.49762 11.525 5.34662 12.676 5.34662 14.0959C5.34661 15.5157 6.49762 16.6667 7.91745 16.6667C9.33728 16.6667 10.4883 15.5157 10.4883 14.0959C10.4883 12.676 9.33728 11.525 7.91745 11.525Z" fill="" stroke="" stroke-width="1.5" />
</svg>
Filter
</button>
<button class="inline-flex items-center gap-2 rounded-lg border border-gray-300 bg-white px-4 py-2.5 text-theme-sm font-medium text-gray-700 shadow-theme-xs hover:bg-gray-50 hover:text-gray-800 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-white/[0.03] dark:hover:text-gray-200">
See all
</button>
</div>
</div>
<div class="max-w-full overflow-x-auto custom-scrollbar">
<table class="min-w-full">
<thead>
<tr class="border-t border-gray-100 dark:border-gray-800">
<th class="py-3 text-left">
<p class="font-medium text-gray-500 text-theme-xs dark:text-gray-400">Products</p>
</th>
<th class="py-3 text-left">
<p class="font-medium text-gray-500 text-theme-xs dark:text-gray-400">Category</p>
</th>
<th class="py-3 text-left">
<p class="font-medium text-gray-500 text-theme-xs dark:text-gray-400">Price</p>
</th>
<th class="py-3 text-left">
<p class="font-medium text-gray-500 text-theme-xs dark:text-gray-400">Status</p>
</th>
</tr>
</thead>
<tbody>
@foreach($productsList as $product)
<tr class="border-t border-gray-100 dark:border-gray-800">
<td class="py-3 whitespace-nowrap">
<div class="flex items-center gap-3">
<div class="h-[50px] w-[50px] overflow-hidden rounded-md">
<img src="{{ $product['image'] }}" alt="{{ $product['name'] }}" />
</div>
<div>
<p class="font-medium text-gray-800 text-theme-sm dark:text-white/90">
{{ $product['name'] }}
</p>
<span class="text-gray-500 text-theme-xs dark:text-gray-400">
{{ $product['variants'] }} Variants
</span>
</div>
</div>
</td>
<td class="py-3 whitespace-nowrap">
<p class="text-gray-500 text-theme-sm dark:text-gray-400">{{ $product['category'] }}</p>
</td>
<td class="py-3 whitespace-nowrap">
<p class="text-gray-500 text-theme-sm dark:text-gray-400">{{ $product['price'] }}</p>
</td>
<td class="py-3 whitespace-nowrap">
<span class="{{ $getStatusClasses($product['status']) }}">
{{ $product['status'] }}
</span>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>

View File

@@ -0,0 +1,40 @@
<div
class="rounded-2xl border border-gray-200 bg-white px-5 pb-5 pt-5 dark:border-gray-800 dark:bg-white/[0.03] sm:px-6 sm:pt-6">
<div class="flex flex-col gap-5 mb-6 sm:flex-row sm:justify-between">
<div class="w-full">
<h3 class="text-lg font-semibold text-gray-800 dark:text-white/90">
Statistics
</h3>
<p class="mt-1 text-gray-500 text-theme-sm dark:text-gray-400">
Target youve set for each month
</p>
</div>
<div class="flex items-start w-full gap-3 sm:justify-end">
<div x-data="{ selected: 'overview' }"
class="inline-flex w-fit items-center gap-0.5 rounded-lg bg-gray-100 p-0.5 dark:bg-gray-900">
@php
$options = [
['value' => 'overview', 'label' => 'Overview'],
['value' => 'sales', 'label' => 'Sales'],
['value' => 'revenue', 'label' => 'Revenue'],
];
@endphp
@foreach ($options as $option)
<button @click="selected = '{{ $option['value'] }}'"
:class="selected === '{{ $option['value'] }}' ? 'shadow-theme-xs text-gray-900 dark:text-white bg-white dark:bg-gray-800' :
'text-gray-500 dark:text-gray-400'"
class="px-3 py-2 font-medium rounded-md text-theme-sm hover:text-gray-900 dark:hover:text-white">
{{ $option['label'] }}
</button>
@endforeach
</div>
</div>
</div>
<div class="max-w-full overflow-x-auto custom-scrollbar">
<div id="chartThree" class="-ml-4 min-w-[700px] pl-2 xl:min-w-full"></div>
</div>
</div>