Address
@php
$addressFields = [
// 'salutation' => 'Salutation',
'country' => 'Country',
'postcode' => 'Postal Code',
// ... other fields as needed
];
@endphp
{{-- --- NEW: Coupon Code Section --- --}}
Discounts
@error('coupon_code')
{{ $message }}
@enderror
{{-- --- NEW: Coin Usage Section --- --}}
@php
// This logic is from your reference file
$initial_coins_to_use = 0;
if ((float) getSetting('coin_value') > 0 && Auth::check() && Auth::user()->coins > 0) {
$coinValue = (float) getSetting('coin_value');
$maxCoinsForTotal = floor($total / $coinValue); // Using $total from this page
$maxCoinsUserHas = Auth::user()->coins;
$initial_coins_to_use = min($maxCoinsForTotal, $maxCoinsUserHas);
}
@endphp
{{-- --- NEW: Payment Method Section --- --}}
Select Payment Method
{{-- Payment Button --}}