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

{{ translate('feature_deal') }}

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