@extends('layout.base') @section('page-title', __('basic.PageIndex')) @section('page-js-script') @endsection @section('container') @php //所有圖片 $allImage = [ 'main_banner' => [ 1 => asset('image/banner/37 Marketing Mar-Apr/02 MAIN BANNER/MAIN BANNER 1-1/' . app()->getLocale() . '.png'), // 2 => asset('image/banner/37 Marketing Mar-Apr/02 MAIN BANNER/MAIN BANNER 1-2/' . app()->getLocale() . '.png'), 3 => asset('image/banner/37 Marketing Mar-Apr/03 MAIN BANNER 2/699/699 ' . app()->getLocale() . '.png'), ], 'main_banner_right' => [ 1 => asset('image/banner/33 Marketing Banner Feb/05 MAIN BANNER-RIGHT 1/MAIN BANNER-RIGHT 1 - ' . app()->getLocale() . '.png'), 2 => asset('image/banner/33 Marketing Banner Feb/06 MAIN BANNER-RIGHT 2/MAIN BANNER-RIGHT 2 - ' . app()->getLocale() . '.png'), ], 'dashboard' => [ 'logo' => asset('image/banner/33 Marketing Banner Feb/07 DASHBOARD/DASHBOARD 3.png'), 'bg' => asset('image/banner/33 Marketing Banner Feb/07 DASHBOARD/DASHBOARD 1.png'), ], 'font' => [ 'flash_sale' => asset('image/banner/37 Marketing Mar-Apr/08 Flash Sale FRONT/FRONT ' . app()->getLocale() . '.png'), 'first_buy' => asset('image/banner/37 Marketing Mar-Apr/11 NEW MEMBER FRONT/699/699 ' . app()->getLocale() . '.png'), 'selected_brand' => asset('image/banner/37 Marketing Mar-Apr/14 SINGLE BRAND FRONT/' . app()->getLocale() . '.png'), ], 'background' => [ 'flash_sale' => asset('image/banner/37 Marketing Mar-Apr/09 Flash Sale BACKGROUND/09 FLASH SALE BACKGROUND.png'), 'first_buy' => asset('image/banner/37 Marketing Mar-Apr/12 NEW MEMBER BACKGROUND/12 NEW MEMBER BACKGROUND.png'), 'selected_brand' => asset('image/banner/37 Marketing Mar-Apr/15 SINGLE BRAND BACKGROUND/15 SINGLE BRAND BACKGROUND.png'), ], 'AD' => [ 1 => asset('image/banner/33 Marketing Banner Feb/ADS/ADS1 - ' . app()->getLocale() . '.png'), 2 => asset('image/banner/33 Marketing Banner Feb/ADS/ADS2 - ' . app()->getLocale() . '.png'), 3 => asset('image/banner/33 Marketing Banner Feb/ADS/ADS3 - ' . app()->getLocale() . '.png'), 4 => asset('image/banner/33 Marketing Banner Feb/ADS/ADS4 - ' . app()->getLocale() . '.png'), ], ]; @endphp {{-- @php $data = [ [ // 我的推薦 'code' => 'dashboard_1', 'color' => '#0073BB;', 'id' => 'recommend', 'title' => __('robot.Share'), 'img' => 'image/icon/1.png', 'num' => $numList['totalChildrenCount'] ?? 0, 'detail' => [ [ // 種子會員 'code' => 'dashboard_1_1', 'title' => __('robot.ShareMember'), 'img' => 'image/icon/7.png', 'num' => $numList['totalChildrenCount'] - $numList['fund_count'], ], [ // 回饋會員 'code' => 'dashboard_1_2', 'title' => __('robot.BonusMember'), 'img' => 'image/icon/8.png', 'num' => $numList['fund_count'], ], ], ], [ // 我的金庫 // 'color' => '#FFC700;', 'code' => 'dashboard_2', 'color' => '#ff8966;', 'id' => 'money', 'title' => __('robot.MyCoin'), 'img' => 'image/icon/2.png', 'num' => $numList['coin'] + $numList['bonus'], 'detail' => [ [ // 購物金 'code' => 'dashboard_2_1', 'title' => __('robot.ClcCoin'), 'img' => 'image/icon/5.png', 'num' => $numList['coin'], ], [ // 回饋金 'code' => 'dashboard_2_2', 'title' => __('robot.Cashback'), 'img' => 'image/icon/6.png', 'num' => $numList['bonus'], ], ], ], [ // 我的商品 'code' => 'dashboard_3', 'color' => '#259C8C;', 'id' => 'product', 'title' => __('robot.PurchaseHistory'), 'img' => 'image/icon/3.png', 'num' => '0', 'url' => route('orderlist'), 'detail' => [ // [ // 'title' => '種子會員', // 'num' => '50', // ], // [ // 'title' => '種子會員', // 'num' => '50', // ], ], ], [ // 我的通知 'code' => 'dashboard_4', 'color' => '#E73B56;', 'id' => 'notice', 'title' => __('robot.MyNotification'), 'img' => 'image/icon/4.png', 'num' => '0', 'url' => route('notice'), 'detail' => [ // [ // 'title' => '種子會員', // 'num' => '50', // ], // [ // 'title' => '種子會員', // 'num' => '50', // ], ], ], ]; @endphp --}} @php $data = [ [ // 種子會員 'code' => 'dashboard_1', 'color' => '#000000;', 'id' => 'recommend', 'title' => __('robot.ShareMember'), 'img' => 'image/dashboard/1.png', 'num' => $numList['totalChildrenCount'] - $numList['fund_count'], ], [ // 回饋會員 'code' => 'dashboard_2', 'color' => '#000000;', 'id' => 'money', 'title' => __('robot.BonusMember'), 'img' => 'image/dashboard/2.png', 'num' => $numList['fund_count'], ], [ // CLC幣 'code' => 'dashboard_3', 'color' => '#000000;', 'id' => 'product', 'title' => __('robot.ClcCoin'), 'img' => 'image/dashboard/3.png', 'num' => $numList['coin'], 'url' => route('coin'), ], [ // 回饋金 'code' => 'dashboard_4', 'color' => '#000000;', 'id' => 'notice', 'title' => __('robot.Cashback'), 'img' => 'image/dashboard/4.png', 'num' => $numList['bonus'], 'url' => '#', ], ]; @endphp {{-- Float Gif --}} {{--
--}} {{-- Slider --}}
{{-- @for ($i = 0; $i < 6; $i++) --}} @php $mbl = $banner['MB_L']['media'] ?? $allImage['main_banner']; @endphp @foreach ($mbl as $k => $item) {{-- @if ($k == 0)
@elseif ($k == 2)
@else
@endif --}} @if (!empty($banner['MB_L']['url'][$k]))
@else
@endif @endforeach {{-- @endfor --}}
{{-- @include('partial._dashboard', ['data' => $data, 'mobileOnly' => false]) --}}
@if (!empty($banner['MB_R_U']['url'][0])) @else @endif
@if (!empty($banner['MB_R_D']['url'][0])) @else @endif
{{-- Navlink --}} {{-- --}}
{{-- Mobile SP Area --}} {{--
@foreach ($data as $dl)
@foreach ($dl['detail'] as $tab)

{{ $tab['title'] }}

{{ $tab['num'] }}

@endforeach
@endforeach
--}} {{--
@foreach ($data as $dl)
@foreach ($dl['detail'] as $tab)

{{ $tab['title'] }}

{{ $tab['num'] }}

@endforeach
@endforeach
--}} @include('partial._dashboard', ['data' => $data, 'mobileOnly' => true]) {{-- Store Start --}}
{{-- FLASH SALE --}}

{{ __('sale.FlashSale') }}

:
:
{{ __('robot.More') }}
@if (!empty($banner['FS_L']['url'][0])) @else @endif
@foreach ($stock_list['flash'] as $k => $v)
@if (!empty($v['preferential_price'])) @else @endif
@endforeach
@include('partial._index_country', [ 'title' => __('robot.HotTaiwanProducts'), 'img' => $banner['CNT_TW']['media'][0] ?? asset('image/banner/0311test/CLC CHOICE.png'), 'list' => $stock_list['cnt_tw'], 'url' => $banner['CNT_TW']['url'][0] ?? null, ]) @include('partial._index_country', [ 'title' => __('robot.HotIndonesiaProducts'), 'img' => $banner['CNT_ID']['media'][0] ?? asset('image/banner/0311test/CLC CHOICE.png'), 'list' => $stock_list['cnt_id'], 'url' => $banner['CNT_ID']['url'][0] ?? null, ]) @include('partial._index_country', [ 'title' => __('robot.HotFilipinoProducts'), 'img' => $banner['CNT_PH']['media'][0] ?? asset('image/banner/0311test/CLC CHOICE.png'), 'list' => $stock_list['cnt_ph'], 'url' => $banner['CNT_PH']['url'][0] ?? null, ]) @include('partial._index_country', [ 'title' => __('robot.HotVietnamProducts'), 'img' => $banner['CNT_VN']['media'][0] ?? asset('image/banner/0311test/CLC CHOICE.png'), 'list' => $stock_list['cnt_vn'], 'url' => $banner['CNT_VN']['url'][0] ?? null, ]) {{-- category A --}} {{-- 大分類 --}}

{{ __('robot.Category') }}

@for ($i = 0; $i < count($catelist); $i++) @php $slug = str_replace('/', '__', $catelist[$i]['name']); @endphp @endfor
{{-- category C --}} {{-- 熱門分類0 --}} {{--
{{--
@for ($i = 0; $i < 10; $i++)
@endfor
@php $hl = $hotcatelist[0]; @endphp
@foreach ($hl['detail'] as $d)
@if (!empty($d['preferential_price'])) @else @endif
@endforeach
--}} @include('partial._index_swiper', [ 'title' => __('sale.NewMemberFirstBuy'), 'array' => $stock_list['first_buy'], 'imgFont' => $banner['FB_L']['media'][0] ?? $allImage['font']['first_buy'], 'imgBg' => $banner['FB_BG']['media'][0] ?? $allImage['background']['first_buy'], 'url' => $banner['FS_L']['url'][0] ?? null, ]) {{-- Popular --}}

{{ __('sale.Top10Products') }}

{{ __('robot.ViewMore') }}
{{-- @for ($i = 0; $i < 10; $i++)
@endfor --}} @foreach ($stock_list['popular'] as $k => $v)
@if (!empty($v['preferential_price'])) @else @endif
@endforeach
{{-- 熱門分類1 --}} {{--
@if (count($hotcatelist) > 1) @foreach ($hotcatelist as $k => $hl) @php if ($k == 0) { continue; } @endphp
@foreach ($hl['detail'] as $d)
@if (!empty($d['preferential_price'])) @else @endif
@endforeach
@endforeach @endif
--}} @include('partial._index_swiper', [ 'title' => __('sale.SingleBrandPromo'), 'array' => $stock_list['selected_brand'], 'imgFont' => $banner['SB_L']['media'][0] ?? $allImage['font']['selected_brand'], 'imgBg' => $banner['SB_BG']['media'][0] ?? $allImage['background']['selected_brand'], 'url' => $banner['SB_BG']['url'][0] ?? null, ]) {{-- CLC Choice --}} @include('partial._index_country', [ 'title' => __('sale.ClcChoice'), 'img' => $banner['CLC_CHOICE']['media'][0] ?? asset('image/banner/0311test/CLC CHOICE.png'), 'list' => $stock_list['clc_selected'], 'url' => $banner['CLC_CHOICE']['url'][0] ?? null, ]) {{-- AD --}}
@php $ads = $banner['IDX_D']['media'] ?? $allImage['AD']; @endphp @foreach ($ads as $k => $item) @if (!empty($banner['IDX_D']['url'][$k]))
@else
@endif @endforeach
{{-- Just For You --}}

{{ __('sale.JustForYou') }}

{{ __('robot.ViewMore') }}
@foreach ($stock_list['just_for_you'] as $k => $v) @if (!empty($v['preferential_price'])) @else @endif @endforeach
@endsection