@foreach ($templates as $template)
@php
$themeName = App\Models\User\BasicSetting::where('user_id', $template->id)->pluck('theme')->first();
$category = 'others';
$displayName = __('Theme');
$badgeClass = 'bg-secondary';
if ($themeName == 'vegetables' || $themeName == 'grocery' || $themeName == 'grocery2') {
$category = 'grocery';
$displayName = ($themeName == 'grocery2') ? __('Ecom Grocery') : __('Grocery & Supermarket');
$badgeClass = 'badge-grocery';
} elseif ($themeName == 'manti' || $themeName == 'multipurpose') {
$category = 'multipurpose';
$displayName = __('Multipurpose');
$badgeClass = 'badge-multi';
} elseif ($themeName == 'fashion' || $themeName == 'apparel' || $themeName == 'jewellery' || $themeName == 'kids' || $themeName == 'clothing') {
$category = ($themeName == 'clothing') ? 'clothing' : 'fashion';
$displayName = match($themeName) {
'jewellery' => __('Jewellery & Accessories'),
'kids' => __('Kids Fashion'),
'clothing' => __('Clothing & Apparel'),
default => __('Fashion & Apparel'),
};
$badgeClass = 'badge-fashion';
} elseif ($themeName == 'electronics' || $themeName == 'gadgets') {
$category = 'electronics';
$displayName = __('Electronics & Gadgets');
$badgeClass = 'badge-electronics';
} elseif ($themeName == 'beauty' || $themeName == 'cosmetics' || $themeName == 'skinflow') {
$category = 'beauty';
$displayName = match($themeName) {
'skinflow' => __('Skin & Beauty Care'),
default => __('Beauty & Cosmetics'),
};
$badgeClass = 'badge-beauty';
} else {
$category = 'others';
$displayName = ucfirst($themeName ?? 'Default');
$badgeClass = 'badge-others';
}
$previewUrl = detailsUrl($template);
$purchaseUrl = route('front.pricing') . '?template=' . urlencode($template->username);
@endphp
{{ $displayName }} {{ __('Theme') }}
@endforeach
{{ __('Coming Soon') }}
{{ __('We are crafting new premium templates for your store.') }}
@php
$defaultPackage = \App\Models\Package::where('status', '1')->where('featured', '1')->first();
$defaultPackageId = $defaultPackage ? $defaultPackage->id : 1;
@endphp
{{ __('Register For More Themes') }}
{{-- Tailored For You section hidden per user request --}}