@extends('layouts.back-end.app') @section('title', \App\CPU\translate('Flash Deal')) @push('css_or_js') @endpush @section('content')

{{\App\CPU\translate('flash_deals')}}

@csrf @php($language=\App\Model\BusinessSetting::where('type','pnc_language')->first()) @php($language = $language->value ?? null) @php($default_lang = 'en') @php($default_lang = json_decode($language)[0])
@foreach(json_decode($language) as $lang)
@endforeach
banner image
( {{\App\CPU\translate('ratio')}} 5:1 )
{{ \App\CPU\translate('flash_deal_table')}} {{ $flash_deal->total() }}
@foreach($flash_deal as $k=>$deal) @endforeach
{{ \App\CPU\translate('SL')}} {{ \App\CPU\translate('Title')}} {{ \App\CPU\translate('Duration')}} {{ \App\CPU\translate('status')}} {{ \App\CPU\translate('active_products')}} {{ \App\CPU\translate('publish')}} {{ \App\CPU\translate('action')}}
{{$flash_deal->firstItem()+ $k}} {{$deal['title']}} {{date('d-M-y',strtotime($deal['start_date']))}} - {{date('d-M-y',strtotime($deal['end_date']))}} @if(\Carbon\Carbon::parse($deal['end_date'])->endOfDay()->isPast()) {{ \App\CPU\translate('expired')}} @else {{ \App\CPU\translate('active')}} @endif {{ $deal->products_count }}
{{$flash_deal->links()}}
@if(count($flash_deal)==0)
Image Description

{{\App\CPU\translate('No data to show')}}

@endif
@endsection @push('script') @endpush