@extends('layouts.main-closed') @section('page-style') @endsection @section('page-plugin') @endsection @section('page-script') @endsection @section('content')

Back to Quest Detail
@include('layouts.notifications')
{{$detail['info']['name']}}
  • Start Date {{date('d F Y H:i', strtotime($detail['info']['date_start']))}}
  • End Date {{$detail['info']['date_end'] ? date('d F Y H:i', strtotime($detail['info']['date_end'])) : '-'}}
  • Benefit @php $benefit = null; switch ($detail['info']['quest_benefit']['benefit_type']) { case 'voucher': $benefit = '('.$detail['info']['quest_benefit']['deals']['deals_title'].')'; break; default: $benefit = '('.number_format($detail['info']['quest_benefit']['value'],0,',','.').')'; break; } @endphp {{ $detail['info']['quest_benefit']['benefit_type'] }} {{ $benefit }}
  • Total Rule {{ number_format(($detail['info']['total_rule'] ?? 0),0,',','.') }}
  • Total User {{ number_format(($detail['info']['total_user'] ?? 0),0,',','.') }}
  • Total User Complete {{ number_format(($detail['info']['total_user_complete'] ?? 0),0,',','.') }}
  • Image
  • Short Description
  • {{ $detail['info']['short_description'] ?: 'No short description' }}
{{$detail['info']['name']}} Rule
@foreach ($detail['rule'] as $item)
{{$item['name']}}
Quest Rule
@switch($item['quest_rule']) @case('nominal_transaction')
Transaction Nominal
: Minimum {{number_format($item['trx_nominal'])}}
@break @case('total_transaction')
Transaction Total
: {{$item['trx_total']}}
@break @case('total_product')
Product Total
: {{$item['product_total']}}
@break @case('total_outlet')
Outlet Different
: {{$item['different_outlet']}}
@break @case('total_province')
Province Different
: {{$item['different_province']}}
@break @endswitch

Additional Rule
@if (!is_null($item['id_product_category']) || !is_null($item['different_category_product']))
@if (!is_null($item['id_product_category']))
Product Category
: {{$item['product_category']['product_category_name']}}
@endif
@endif @if (!is_null($item['id_product']) || !is_null($item['product_total']))
@if (!is_null($item['id_product']))
Product
: {{$item['product']['product_name']}}
@endif @if (!is_null($item['product_total']) && $item['quest_rule'] != 'total_product')
Product Total
: {{$item['product_total']}}
@endif
@endif @if (!is_null($item['id_outlet']) || !is_null($item['different_outlet']))
@if (!is_null($item['id_outlet']))
Outlet
: {{$item['outlet']['outlet_name']}}
@endif
@endif @if (!is_null($item['id_province']) || !is_null($item['different_province']))
@if (!is_null($item['id_province']))
Province
: {{$item['province']['province_name']}}
@endif
@endif @if (!is_null($item['trx_nominal']) || !is_null($item['trx_total']))
@if (!is_null($item['trx_nominal']) && $item['quest_rule'] != 'nominal_transaction')
Transaction Nominal
: Minimum {{number_format($item['trx_nominal'])}}
@endif
@endif
Total User Complete
: {{ number_format( ($item['user_complete'] ?? 0),0,',','.') }}
@endforeach
List User
Name Phone Email Date Claim Date Complete Date Claim Benefit Status Claim Benefit Status Total Rule Complete
@endsection