@extends('layouts/base_view') @section('title') {!! $variables['header_routes'] !!} @endsection @section('content')

{!! $variables['judul'] !!}

@if($data->isPending()) @endif
@if($data->rejection_reason) @endif
IMEI {{ $data->imei }}
User {{ $data->endUser ? $data->endUser->full_name : '-' }}
Promotion @if($data->promotion) {{ $data->promotion->name }}
{{ ucwords(str_replace('_', ' ', $data->promotion->reward_method)) }} @else - @endif
Device Model {{ $data->deviceModel ? $data->deviceModel->full_name : '-' }}
Status {!! $data->status_badge !!}
Outlet @if($data->outlet) {{ $data->outlet->outlet_name }}
QR: {{ $data->outlet_qr_code }} @else {{ $data->outlet_qr_code ?: '-' }} @endif
Lottery Number {{ $data->lottery_number ?: '-' }}
Points Awarded {{ $data->points_awarded ? $data->formatted_points : '-' }}
Claimed At {{ $data->claimed_at ? $data->claimed_at->format('d/m/Y H:i:s') : '-' }}
Processed At {{ $data->processed_at ? $data->processed_at->format('d/m/Y H:i:s') : '-' }}
Rejection Reason {{ $data->rejection_reason }}

Reward Information

Reward Description:
{{ $data->reward_description }}

@if($data->promotion)

Promotion Details

Method: {!! $data->promotion->method_badge !!}

Period:
{{ $data->promotion->start_date->format('d/m/Y') }} - {{ $data->promotion->end_date->format('d/m/Y') }}

Status: {!! $data->promotion->status_badge !!}

Max Claims: {{ $data->promotion->max_claims_per_user }} per user

@if($data->promotion->reward_method === 'point_reward' && isset($data->promotion->configuration['point_value']))

Point Value: Rp {{ number_format($data->promotion->configuration['point_value'], 0, ',', '.') }} per point

@endif
@endif
@if($data->endUser)

User Claim History

Loading...

@endif
@endsection