@php use App\Lib\MyHelper; $configs = session('configs'); @endphp @extends('layouts.main') @section('page-style') @endsection @section('page-plugin') @endsection @section('page-script') @endsection @section('content')

@include('layouts.notifications')
Detail

{{$detail['user']['name']}}

  • {{$detail['user']['phone']}} ({{$detail['user']['provider']}})
  • {{$detail['user']['email']}}
  • @if($detail['user']['gender'] == 'Male') {{$detail['user']['gender']}}
  • @else {{$detail['user']['gender']}} @endif
  • {{$detail['user']['city']['city_name']}}, {{$detail['user']['city']['province']['province_name']}}
  • {{date("d F Y", strtotime($detail['user']['birthday']))}}
  • {{date("d F Y H:i:s", strtotime($detail['user']['created_at']))}}
  • @if(MyHelper::hasAccess([20], $configs))
  • @if(isset($detail['user']['memberships'][0])) {{$detail['user']['memberships'][0]['membership_name']}} @endif
  • @php $first = false; @endphp @if(MyHelper::hasAccess([21], $configs)) @if(isset($detail['user']['memberships'][0]['benefit_point_multiplier'])) @php $first = true; @endphp Point Received : {{$detail['user']['memberships'][0]['benefit_point_multiplier']}}%
    @endif @endif @if(MyHelper::hasAccess([22], $configs)) @if(isset($detail['user']['memberships'][0]['benefit_cashback_multiplier'])) @if($first == true) @endif @php $first = true; @endphp Cashback Received : {{$detail['user']['memberships'][0]['benefit_cashback_multiplier']}}%
    @endif @endif @if(MyHelper::hasAccess([24], $configs)) @if(isset($detail['user']['memberships'][0]['benefit_promo_id'])) @if($first == true) @endif @php $first = true; @endphp Promo ID : {{$detail['user']['memberships'][0]['benefit_promo_id']}}
    @endif @endif @if(MyHelper::hasAccess([23], $configs)) @if(isset($detail['user']['memberships'][0]['benefit_discount'])) @if($first == true) @endif Discount : {{$detail['user']['memberships'][0]['benefit_discount']}}%
    @endif @endif
  • @endif
{{$detail['user']['level']}}
  • Phone @if($detail['user']['phone_verified']==1) verified @else not verified @endif
  • Email @if($detail['user']['email_verified']==1) verified @else not verified @endif
  • Email Unsubscribed @if($detail['user']['email_unsubscribed']==0) No @else Yes @endif
History
@if($type == 'transactions')
@if(!empty($detail['transactions']['data'])) @foreach($detail['transactions']['data'] as $res) @endforeach @else @endif
Date Receipt Number Total Price Payment Status Actions
{{ date('d F Y H:i', strtotime($res['transaction_date'])) }} {{ $res['transaction_receipt_number'] }} Rp {{ number_format($res['transaction_grandtotal']) }} {{ $res['transaction_payment_status'] }} Detail
Transaction is empty
@if ($paginator)
Showing {{$from}} to {{$to}} of {{$total}} entries
@endif
@elseif($type == 'point')
Voucher
{{ $detail['voucher'] }}
Transaction
{{ $detail['trx'] }}
@if(!empty($detail['point']['data'])) @foreach ($detail['point']['data'] as $point) @if ($point['source'] != 'voucher') @else @endif @endforeach @else @endif
Source Point Date Time Detail
{{ ucwords($point['source']) }} {{ number_format($point['point']) }} {{ date('d F Y', strtotime($point['created_at'])) }} {{ date('H:i:s', strtotime($point['created_at'])) }} {{ $point['transaction']['transaction_receipt_number'] }} {{ $point['detail_product']['trx_id'] }}
History point is empty
@if ($paginator)
Showing {{$from}} to {{$to}} of {{$total}} entries
@endif
@elseif($type == 'log')
@if(!empty($detail['log']['data'])) @foreach($detail['log']['data'] as $no => $data) @endforeach @else @endif
Action Date Time Status Subject IP User Agent
Detail {!!str_replace(" "," ", date('d F Y', strtotime($data['created_at'])))!!} {{$data['response_status']}} {!!str_replace(" "," ", $data['subject'])!!} {{$data['ip']}} {!!str_replace(" "," ", $data['useragent'])!!}
History Activity is empty
@if ($paginator)
Showing {{$from}} to {{$to}} of {{$total}} entries
@endif
@endif
@if($type == 'log') @foreach($detail['log']['data'] as $no => $data) @endforeach @endif @endsection