ok
Direktori : /home2/selectio/www/bharath/a1tex.in/resources/views/web-views/ |
Current File : /home2/selectio/www/bharath/a1tex.in/resources/views/web-views/deals.blade.php |
@extends('layouts.front-end.app') @section('title',\App\CPU\translate('Flash Deal Products')) @push('css_or_js') <meta property="og:image" content="{{asset('storage/app/public/company')}}/{{$web_config['web_logo']->value}}"/> <meta property="og:title" content="Deals of {{$web_config['name']->value}} "/> <meta property="og:url" content="{{env('APP_URL')}}"> <meta property="og:description" content="{!! substr($web_config['about']->value,0,100) !!}"> <meta property="twitter:card" content="{{asset('storage/app/public/company')}}/{{$web_config['web_logo']->value}}"/> <meta property="twitter:title" content="Deals of {{$web_config['name']->value}}"/> <meta property="twitter:url" content="{{env('APP_URL')}}"> <meta property="twitter:description" content="{!! substr($web_config['about']->value,0,100) !!}"> <style> .countdown-background{ background: {{$web_config['primary_color']}}; } .cz-countdown-days { border: .5px solid{{$web_config['primary_color']}}; } .cz-countdown-hours { border: .5px solid{{$web_config['primary_color']}}; } .cz-countdown-minutes { border: .5px solid{{$web_config['primary_color']}}; } .cz-countdown-seconds { border: .5px solid{{$web_config['primary_color']}}; } .flash_deal_product_details .flash-product-price { color: {{$web_config['primary_color']}}; } </style> @endpush @section('content') @php($decimal_point_settings = \App\CPU\Helpers::get_business_settings('decimal_point_settings')) <div class="__inline-59"> <div class="for-banner container"> <img class="d-block for-image" onerror="this.src='{{asset('public/assets/front-end/img/image-place-holder.png')}}'" src="{{asset('storage/app/public/deal')}}/{{$deal['banner']}}" alt="Shop Converse"> </div> <div class="container md-4 mt-3 rtl" style="text-align: {{Session::get('direction') === "rtl" ? 'right' : 'left'}};"> <div class="row g-3 flex-center align-items-center"> @php($flash_deals=\App\Model\FlashDeal::with(['products.product.reviews'])->where(['status'=>1])->where(['deal_type'=>'flash_deal'])->whereDate('start_date','<=',date('Y-m-d'))->whereDate('end_date','>=',date('Y-m-d'))->first()) <div class="col-sm-auto text-center {{Session::get('direction') === "rtl" ? 'text-sm-right' : 'text-sm-left'}}"> <span class="flash_deal_title "> {{ \App\CPU\translate('flash_deal')}} </span> </div> <div class="col-sm-auto "> <div class="countdown-background __countdown mx-auto"> <span class="cz-countdown d-flex justify-content-center align-items-center" data-countdown="{{isset($flash_deals)?date('m/d/Y',strtotime($flash_deals['end_date'])):''}} 11:59:00 PM"> <span class="cz-countdown-days align-items-center"> <span class="cz-countdown-value"></span> <span>{{ \App\CPU\translate('day')}}</span> </span> <span class="cz-countdown-value p-1">:</span> <span class="cz-countdown-hours align-items-center"> <span class="cz-countdown-value"></span> <span>{{ \App\CPU\translate('hrs')}}</span> </span> <span class="cz-countdown-value p-1">:</span> <span class="cz-countdown-minutes align-items-center"> <span class="cz-countdown-value"></span> <span>{{ \App\CPU\translate('min')}}</span> </span> <span class="cz-countdown-value p-1">:</span> <span class="cz-countdown-seconds align-items-center"> <span class="cz-countdown-value"></span> <span>{{ \App\CPU\translate('sec')}}</span> </span> </span> </div> </div> </div> </div> <!-- Toolbar--> <!-- Products grid--> <div class="container pb-5 mb-2 mb-md-4 mt-3 rtl" style="text-align: {{Session::get('direction') === "rtl" ? 'right' : 'left'}};"> <div class="row"> <section class="col-lg-12"> <div class="row mt-4"> @if($discountPrice) @foreach($deal->products as $dp) @if (isset($dp->product)) <div class="col-xl-2 col-sm-3 col-6 __mb-10px"> @include('web-views.partials._single-product',['product'=>$dp->product,'decimal_point_settings'=>$decimal_point_settings]) </div> @endif @endforeach @endif </div> </section> </div> </div> </div> @endsection @push('script') @endpush