@if($config['enabled'] && count($config['boxes']) && count($config['items']))
@if($config['badge']) {{ $config['badge'] }} @endif

{{ $config['title'] }}

{{ $config['subtitle'] }}

1. Choose your box

@foreach($config['boxes'] as $i => $box) @endforeach

2. Fill your box ({{ $used }}/{{ $capacity }})

@if($used)@endif
@foreach($config['items'] as $i => $item) @php $qty = $selected[$i] ?? 0; @endphp
@if(!empty($item['image'])) {{ $item['name'] }} @else {{ $item['emoji'] ?? '๐Ÿฐ' }} @endif
{{ $item['name'] }}
+ Rs. {{ number_format($item['price']) }}
@if($qty) {{ $qty }} @endif
@endforeach
@error('selected')

{{ $message }}

@enderror

3. Personalise

@error('recipient')

{{ $message }}

@enderror
@error('message')

{{ $message }}

@enderror

Your box preview

{{ $config['boxes'][$boxIndex]['name'] }}
@for($s = 0; $s < $capacity; $s++) @php $slot = $slots[$s] ?? null; @endphp
@if($slot) @if(!empty($slot['image'])) {{ $slot['name'] }} @else {{ $slot['emoji'] ?? '๐Ÿฐ' }} {{ $slot['name'] }} @endif @else + @endif
@endfor
๐Ÿ”ด Happy Bhai Tika ๐Ÿ”ด
@if(trim($recipient))
To {{ $recipient }}
@endif

{{ trim($message) ?: 'Your message will appear here.' }}

{{ $config['boxes'][$boxIndex]['name'] }}Rs. {{ number_format($config['boxes'][$boxIndex]['price']) }}
@foreach($selected as $i => $qty) @if(isset($config['items'][$i]))
{{ $qty }}ร— {{ $config['items'][$i]['name'] }}Rs. {{ number_format($config['items'][$i]['price'] * $qty) }}
@endif @endforeach
Per boxRs. {{ number_format($total) }}
{{ $quantity }}
@if(!$used)

Add at least one item to continue.

@endif
@endif