@extends('layouts.app') @section('content')

Checkout

@if($items->count() === 0)

Your cart is empty.

@else

Order Summary

Monthly Total ${{ number_format($total, 2) }}
Yearly Total (Save ${{ number_format($items->sum(fn($i) => $i['price'] * 2 * $i['qty']), 2) }}) ${{ number_format($items->sum(fn($i) => $i['price'] * 10 * $i['qty']), 2) }}
Proceed to Payment @endif
@endsection