@extends('layout.app') @section('content')
{{-- Global error bag --}} @if($errors->any())
    @foreach($errors->all() as $error)
  • • {{ $error }}
  • @endforeach
@endif
@csrf
{{-- ===== LEFT ===== --}}
{{-- Shipping Address --}}
Shipping Address
{{-- Name row --}}
{{-- @error('first_name')

{{ $message }}

@enderror--}}
{{-- @error('last_name')

{{ $message }}

@enderror--}}
{{-- Phone + Email --}}
{{-- @error('phone')

{{ $message }}

@enderror--}}
{{-- Country + City + State + Zip --}}
{{-- @error('country')

{{ $message }}

@enderror--}}
{{-- @error('city')

{{ $message }}

@enderror--}}
{{-- Address line --}}
{{-- Address Type --}}

Address Type

@foreach(['home' => 'Home Address', 'office' => 'Office Address', 'other' => 'Others'] as $val => $label) @endforeach
{{-- Payment --}}
Payment Method
{{-- Stripe --}} {{-- COD --}}
{{-- ===== RIGHT: Order Summary ===== --}}
Cart Items
@foreach($cart as $item) @endforeach
{{ $item['name'] }}

{{ $item['name'] }}

{{ $item['qty'] }}x @if($item['size']) · {{ $item['size'] }} @endif @if($item['color']) · {{ $item['color'] }} @endif

${{ number_format($item['price'] * $item['qty'], 2) }}
{{-- Order Summary --}}
Order Summary

Sub-Total ${{ number_format($subtotal, 2) }}

Shipping $0.00

Tax $0.00

Total ${{ number_format($total, 2) }}
{{-- Submit --}}

Your information is 100% secure and encrypted.

{{-- Float label style --}} @endsection @push('scripts') @endpush