@php use App\Lib\MyHelper; $grantedFeature = session('granted_features'); date_default_timezone_set('Asia/Jakarta'); @endphp @extends('layouts.main-closed') @include('promocampaign::promocampaign_filter') @section('page-style') @endsection @section('page-plugin') @endsection @section('page-script') @yield('child-script') @endsection @section('content')
No | Name | Creator | Periode | Code Type | Promo Type | Status | Actions |
---|---|---|---|---|---|---|---|
{{ $i++ }} | {{ $res['campaign_name'] }} | {{ $res['user']['name'] }} |
Start : {{ date("d F Y", strtotime($date_start)) }} {{ date("H:i", strtotime($date_start)) }} End : {{ date("d F Y", strtotime($date_end)) }} {{ date("H:i", strtotime($date_end)) }} |
{{$res['code_type']}} | {{ $res['promo_type'] }} | @if ( empty($res['step_complete']) ) Not Complete @elseif($date_end < $now) Ended @elseif($date_start <= $now) Started @elseif($date_start > $now) Not Started @endif | @if(MyHelper::hasAccess([201], $grantedFeature)) @endif @if(MyHelper::hasAccess([204], $grantedFeature)) @if( isset($res['date_start']) ) @if ($res['date_start'] > date("Y-m-d H:i:s")) @endif @endif @endif |
Promo Campaign not found |