@extends('layouts.app') @section('title', __('Checkout')) @section('content') @php $m = $shop->money; $v = fn ($k) => old($k, $prefill[$k] ?? ''); $selProvince = old('province_id', $prefill['province_id']); @endphp

{{ __('Checkout') }}

@csrf
@if ($errors->any()) @endif

{{ __('Contact') }}

{{ __('Delivery address') }}

@error('province_id')

{{ $message }}

@enderror

{{ __('Pin your location on the map') }} ({{ __('optional') }})

{{ __('Tap the map or drag the pin to your door. This helps the courier find you.') }}

@error('latitude')

{{ $message }}

@enderror

{{ __('Delivery method') }}

{{ __('Choose your province to see delivery options.') }}

@error('shipping_method_id')

{{ $message }}

@enderror

{{ __('Payment') }}

@php $payTile = ['cod' => 'bg-accent-container text-on-accent-container', 'qr' => 'bg-tertiary-container text-on-tertiary-container', 'card' => 'bg-secondary-container text-on-secondary-container', 'bank_transfer' => 'bg-surface-low text-primary', 'wallet' => 'bg-tertiary text-on-tertiary']; $paySub = ['cod' => __('Pay cash when your order arrives'), 'qr' => __('Scan with your banking app'), 'card' => __('Pay securely by card'), 'bank_transfer' => __('Transfer from your bank'), 'wallet' => __('Pay with your e-wallet')]; @endphp
@foreach ($payments as $p) @endforeach
@error('payment')

{{ $message }}

@enderror
@push('head') @endpush @push('scripts') @endpush @endsection