@php $pi = $productItems ?? \App\Services\ProductItemSettingsService::get(\App\Services\ThemeService::active()); $columnOptions = [ 1 => '1 item per row', 2 => '2 items per row', 3 => '3 items per row', 4 => '4 items per row', 5 => '5 items per row', 6 => '6 items per row', ]; $fitOptions = [ 'contain' => 'Contain — Fit entire image within container', 'cover' => 'Cover — Fill container, crop if needed', ]; @endphp @push('styles') @endpush
Column Settings

{{ ucfirst(\App\Services\ThemeService::active()) }} theme এর storefront product grid layout configure করুন।

Column Configuration
Home page এ প্রতি row তে কতগুলো product column দেখাবে।
Category / shop listing page এ প্রতি row তে column সংখ্যা।
Product detail page এর Related Products section এ column সংখ্যা।
Pagination — প্রতি page এ কতগুলো product load হবে।

Button Display Settings
Enable করলে Buy Now 70% + Add to Cart icon 30% width। Disable করলে Buy Now full width (100%)।

Image Display Settings
@foreach([ ['key' => 'home_image_fit', 'label' => 'Home Page Image Fit', 'preview' => 'home', 'hint' => 'Home page product cards'], ['key' => 'category_image_fit', 'label' => 'Category Page Image Fit', 'preview' => 'category', 'hint' => 'Category / shop listing cards'], ['key' => 'product_image_fit', 'label' => 'Product Page Image Fit', 'preview' => 'product', 'hint' => 'Related products on product detail page'], ] as $row)
{{ $row['hint'] }}
@endforeach
Column Preview
@foreach([ ['id' => 'home', 'label' => 'Home Page', 'class' => 'pi-preview-home', 'cols' => (int) ($pi['home_columns'] ?? 6), 'fit' => $pi['home_image_fit'] ?? 'contain'], ['id' => 'category', 'label' => 'Category Page', 'class' => 'pi-preview-category', 'cols' => (int) ($pi['category_columns'] ?? 6), 'fit' => $pi['category_image_fit'] ?? 'contain'], ['id' => 'product', 'label' => 'Product Page', 'class' => 'pi-preview-product', 'cols' => (int) ($pi['product_columns'] ?? 6), 'fit' => $pi['product_image_fit'] ?? 'contain'], ] as $block)
{{ $block['label'] }}
@for($i = 1; $i <= $block['cols']; $i++)
{{ $i }}
@endfor
Image Fit: {{ ucfirst($block['fit']) }}
@endforeach
Image Fit Examples
Contain
Full image visible
Cover
Fills box, may crop
@push('scripts') @endpush