@extends('mobile.layouts.app') @section('title', app_name() . ' | Elite Rewards') @php $customer = auth()->user()->customer; $totalReward = $customer->used_point + $customer->balance_point; $totalReward = $totalReward > 0 ? $totalReward : 1; $date = ''; @endphp @push('after-styles') @endpush @section('content') @include('mobile.includes.app-bar', ['navBarName' => __('mobile.wallet')])
for Award Card
{{ $customer->card->card_no }} Name- {{ $customer->name }}
@php $qrCode = base64_encode( QrCode::format('png') ->size(150) ->generate($customer->card->encrypted_data) ); @endphp Pin Number: {{ $customer->card->user_pin }}
+{{ $customer->balance_point }} @lang('mobile.remaining_points')
@lang('mobile.point_balance') {{ $customer->balance_point }}
@lang('mobile.claim') {{ $customer->used_point }}
@lang('mobile.transactions')
    @foreach ($points as $key => $point) @php if ($key == 0) { $date = $point->created_date; } elseif (!$point->created_at->isSameDay($points[$key - 1]->created_at)) { $date = $point->created_date; } else { $date = ''; } @endphp @include('mobile.includes.wallet-point-component', [ 'date' => $date, 'time' => $point->created_time, 'user' => $point->user, 'point' => $point->point, 'invoice_no' => $point->invoice_no ? ($point->remark ? $point->invoice_no . ' , ' . $point->remark : $point->invoice_no) : $point->remark, 'ref_no' => $point->ref_no, 'status' => 'received', ]) @endforeach
{{ $points->links('mobile-pagination') }}
@endsection @push('after-scripts') @if (session('require_data')) @endif @endpush