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

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

@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
{{ \App\CPU\translate('feature_deal')}} {{ \App\CPU\translate('Table')}} {{ $flash_deals->total() }}
@foreach($flash_deals as $k=>$deal) @endforeach
{{ \App\CPU\translate('SL')}} {{ \App\CPU\translate('Title')}} {{ \App\CPU\translate('Start Date')}} {{ \App\CPU\translate('End Date')}} {{ \App\CPU\translate('active')}} / {{ \App\CPU\translate('expired')}} {{ \App\CPU\translate('status')}} {{ \App\CPU\translate('action')}}
{{$k+1}} {{$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
{{$flash_deals->links()}}
@if(count($flash_deals)==0)
Image Description

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

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