@extends('layouts.main-app') @section('title', 'Home') @section('content') @include('layouts.navbar')
@if ($errors->any())
@endif

Welcome, John!

{{ number_format(Auth::user()->reward_points, 0) }}

Reward Points

{{ number_format(Auth::user()->redeem_balance, 0) }}

Redeemed Points

Free Shipping on Your Vitamin and Supplement Orders.

Enjoy free shipping on
all vitamin and
supplement order
over ₱1,000.

Active Subscriptions

@foreach ($subscriptions as $subscription_transactions)

Subscription No. {{$subscription_transactions->id}}

Next Delivery Date:

{{ $subscription_transactions->date_received }}

@endforeach

Recent Orders

@foreach ($orders->sortByDesc('created_at')->take(5) as $order) @endforeach
Order Number Date Status Order Total Points Courier Shipping Fee Uploaded Prescription Discount Proof
#{{ str_pad($order->id, 6, '0', STR_PAD_LEFT) }} {{ $order->created_at->format('F d, Y') }} {{ $order->status }} ₱{{ number_format($order->total, 2) }} {{ floor($order->total / 100) }} Points {{$order->courier ?: "No courier yet"}} {{$order->shipping_fee ?: "No shipping fee yet"}}
@if($order->status === 'Paid') View Details @else
@csrf
@endif
@include('layouts.footer') @endsection