@extends('mobile.layouts.app')
@section('title', app_name() . ' | Elite Rewards')
@section('content')
@php
$customer = auth()->user()->customer;
@endphp
@include('mobile.includes.app-bar', ['navBarName' => __('mobile.rewards')])
@include('mobile.includes.reward-filter-modal', ['merchants' => $merchants])
@lang('mobile.balance_points')
{{ $customer->balance_point }}
{{ $customer->balance_point + $customer->used_point }}
{{ $customer->used_point }}
@lang('mobile.available_rewards')
@lang('mobile.filter')
@foreach ($rewards as $reward)
@include('mobile.includes.reward-card', [
'merchant' => $reward->client->merchant_name,
'merchantLogo' => asset('uploads/'.$reward->client->logo),
'giftImage' => asset('uploads/'.$reward->image),
'giftTitle' => $reward->name,
'giftSecondTitle' => "{$reward->redeem_points} Points",
'goToLink' => route('mobile.rewards.detail', $reward),
])
@endforeach
{{ $rewards->appends($_GET)->links('mobile-pagination') }}
@endsection
@push('after-scripts')
@endpush