@section('deals-info')
Information
Brand
: @php foreach ($result['brands'] as $key => $value) { if ($key == 0) { $comma = ''; }else{ $comma = ', '; } echo $comma.$value['name_brand']; } @endphp
Brand Rule
: {{ $result['brand_rule'] && $result['brand_rule'] == 'and' ? 'All selected brands' : 'One of the selected brands' }}
Product Type
: @php $product_type = $result['product_type'] ?? 'single'; $echo = ""; switch ($product_type) { case 'single + variant': $echo = 'Product + Product variant'; break; case 'variant': $echo = 'Product variant only'; break; default: $echo = 'Product only'; break; } echo $echo; @endphp
Deals Title
: {{ isset($result['deals_title']) ? $result['deals_title'] : '' }}
@if($deals_type != 'Promotion') @if(isset($result['deals_start']))
Start
: {{date("d M Y", strtotime($result['deals_start']))}} {{date("H:i", strtotime($result['deals_start']))}}
End
: {{date("d M Y", strtotime($result['deals_end']))}} {{date("H:i", strtotime($result['deals_end']))}}
@endif @endif @if($deals_type != 'WelcomeVoucher' && $deals_type != 'Promotion') @if($deals_type != 'Hidden') @if(isset($result['deals_end']))
Publish Start
: {{date("d M Y", strtotime($result['deals_publish_start']))}} {{date("H:i", strtotime($result['deals_publish_start']))}}
Publish End
: {{date("d M Y", strtotime($result['deals_publish_end']))}} {{date("H:i", strtotime($result['deals_publish_end']))}}
@endif @endif @endif
Charged Central
: {{$result['charged_central']}} %
Charged Outlet
: {{$result['charged_outlet']}} %
@if($deals_type != 'Promotion')
Total Voucher
: {{ !empty($result['deals_total_voucher']) ? number_format($result['deals_total_voucher']).' Vouchers' : (isset($result['deals_total_voucher']) ? 'unlimited' : '') }}
Used Voucher
: {{ number_format($result['deals_total_used']??0).' Vouchers' }}
@endif
User Limit
: {{ $result['user_limit']??false ? number_format($result['user_limit']).' Times usage' : 'Unlimited' }}
@if($deals_type != 'Promotion')
Voucher Expiry
: {{ ($result['deals_voucher_duration']??false) ? 'By Duration ( '.number_format($result['deals_voucher_duration']).' Days )' : (($result['deals_voucher_expired']??false) ? 'By Date ( '.date("d M Y", strtotime($result['deals_voucher_expired'])).' '.date("H:i", strtotime($result['deals_voucher_expired'])).' )' : '-') }}
Voucher Start
: {{ $result['deals_voucher_start']??false ? date("d M Y", strtotime($result['deals_voucher_start'])) : '-' }}
@endif
Image
:
Creator
: {{ isset($result['created_by_user']['name']) ? $result['created_by_user']['name'] : '' }}
Level
: {{ isset($result['created_by_user']['level']) ? $result['created_by_user']['level'] : ''}}
Created
: @if(isset($result['created_at'])) {{date("d F Y", strtotime($result['created_at']))}} {{date("H:i", strtotime($result['created_at']))}} @endif
@endsection