@foreach($category as $index => $cat)
@endforeach
@foreach($contentsSections as $index => $content)
@foreach($content->productSection as $product)
@if($product->product != null)
@if ($product->product->stoke < 1)
@endif
@if($product->mainprice == $product->discount)
{{$product->product->discount}}
@lang('front.KD')
@else
{{$product->product->prefit_price_discount}}%
{{$product->product->discount}}@lang('front.KD')
{{$product->product->mainprice}}@lang('front.KD')
@endif
{{--
{{$product->product->free_deliver === true ? 'التوصيل مجاني' : ' ' }}--}}
{{--
@lang('front.qyt')
--}}
@endif
@endforeach
@if($index == 0)
@endif
@endforeach
@foreach($brands as $brand)
@endforeach
@if($categoryandSub != null)
@foreach($categoryandSub->subs as $cats)
@endforeach
@foreach(productsByCats($categoryandSub->id) as $prodd)
@if ($prodd->product->stoke < 1)
@endif
@if($prodd->product->mainprice == $prodd->product->discount)
{{$prodd->product->discount}}K.D
@else
{{$prodd->product->prefit_price_discount}}%
{{$prodd->product->discount}}K.D
{{$prodd->product->mainprice}}K.D
@endif
{{--
{{$product->product->free_deliver === true ? 'التوصيل مجاني' : ' ' }}--}}
{{--
@lang('front.qyt')
--}}
@endforeach
{{-- @endif--}}
{{--
--}}
{{--
--}}
{{-- @foreach($category as $cat)--}}
{{--
--}}
{{-- @endforeach--}}
{{--
--}}
@endif
@if($categoryandSub2 != null)
@foreach($categoryandSub2->subs as $cats)
@endforeach
@foreach(productsByCats($categoryandSub2->id) as $prod)
@if ($prod->product->stoke < 1)
@endif
{{$prod->product->prefit_price_discount}}%
{{$prod->product->discount}}@lang('front.KD')
{{$prod->product->mainprice}}@lang('front.KD')
{{--
{{$product->product->free_deliver === true ? 'التوصيل مجاني' : ' ' }}--}}
{{--
@lang('front.qyt')
--}}
@endforeach
{{-- @endif--}}
{{--
--}}
{{--
--}}
{{-- @foreach($category as $cat)--}}
{{--
--}}
{{-- @endforeach--}}
{{--
--}}
@endif
{{-- --}}
{{--
--}}
{{--
--}}
{{--
--}}
{{--
--}}
{{--
تسوق من افضل الماركات العالمية
--}}
{{-- --}}
{{--
--}}
{{--
--}}
{{--
--}}
{{--
--}}
{{-- @foreach(\App\models\Company::get() as $company)--}}
{{--
--}}
{{--
--}}
{{--

--}}
{{--
--}}
{{--
--}}
{{-- @endforeach--}}
{{--
--}}
{{--
--}}
{{--
--}}
{{-- --}}
{{-- @dd($platform)--}}
{{--@dd(\Illuminate\Support\Facades\Session::get('platform'))--}}
@endsection
@push('js')
{{--@dd(\Illuminate\Support\Facades\Session::get('platform')))--}}
@if($platform == 'AndroidOS')