@php use Carbon\Carbon; use Illuminate\Support\Facades\Session @endphp @extends('layouts.back-end.app') @section('title', translate('flash_Deal')) @section('content') @php($direction = Session::get('direction'))

{{translate('flash_deals')}}

@csrf @php($language = getWebConfig(name:'pnc_language')) @php($defaultLanguage = 'en') @php($defaultLanguage = $language[0])
@foreach($language as $lang)
@endforeach
{{translate('banner_image')}}
( {{translate('ratio').' '.'5:1'}} )
{{ translate('flash_deal_table')}} {{ $flashDeals->total() }}
@foreach($flashDeals as $key => $deal) @endforeach
{{ translate('SL')}} {{ translate('title')}} {{ translate('duration')}} {{ translate('status')}} {{ translate('active_products')}} {{ translate('publish')}} {{ translate('action')}}
{{$flashDeals->firstItem()+ $key }} {{$deal['title']}} {{date('d-M-y',strtotime($deal['start_date'])).'-'.' '}} {{date('d-M-y',strtotime($deal['end_date']))}} @if(Carbon::parse($deal['end_date'])->endOfDay()->isPast()) {{ translate('expired')}} @else {{ translate('active')}} @endif {{ $deal->products_count }}
@csrf
{{$flashDeals->links()}}
@if(count($flashDeals)==0) @include('layouts.back-end._empty-state',['text'=>'no_data_found'],['image'=>'default']) @endif
@endsection @push('script') @endpush