@include('emails.header') Hi {{ $data['user']?->name }},
Thank you for your recent ticket purchase! We're excited to have you participating in our upcoming draw. Below are the details of your purchase:

@if (count($data['order']->items)) @php $totalAmount = 0; $totalQuantity = 0; $totalContests = 0; @endphp @foreach ($data['order']->items as $key => $item) @php $tickets = \DB::table('orders_tickets') ->where(['order_id' => $item->order_id, 'contest_id' => $item->contest->id]) ->pluck('ticket_id') ->toArray(); @endphp @php $totalQuantity += $item->quantity; $totalAmount += $item->total; @endphp @endforeach {{-- --}} @else @endif
Draw Name Total Tickets Ticket Numbers Amount Draw Date Draw Time
{{ $item->contest->title }} {{ $item->quantity }} @foreach ($tickets as $ticket) {!! $ticket . '
' !!} @endforeach
{{ number_format($item->total, 2) }} {{ !empty($item->contest->draw_date) ? date('Y-m-d', strtotime($item->contest->draw_date)) : ' - ' }} {{ strtoupper(!empty($item->contest->draw_date) ? date('H:m a', strtotime($item->contest->draw_date)) : ' - ') }}
{{'Total : '}} {{$totalQuantity}} {{number_format($totalAmount, 2)}}
No Purchases Found


We wish you the best of luck in the draw and hope you win big! If you have any questions or need further assistance, feel free to reach out to us at support@bmfcompetitions.eu.

@include('emails.footer')