{{-- @use('App\Models\Preparationclassoffers') @component('mail::message') # New Online Enquiry Form Submission Congratulations on receiving a new online enquiry form submission! Your expertise and dedication have attracted yet another prosperous user seeking guidance. We are excited to share the details of the form that has been submitted: Keep up the excellent work! - **Name:** {{ $formData['name'] }} - **Email:** {{ $formData['email'] }} - **Phone:** {{ $formData['phone'] }} @php $class = Preparationclassoffers::where('preparationclassoffer_id', $formData['preparationclassoffers_id']) ->where('status', 1) ->first(); @endphp - **Preferred class:** {{ $class->title }} @if ($class->classtime) {{ $class->classtime->format('H:i A') }} @else (00:00) @endif Best regards, {{ config('app.name') }} @endcomponent --}} @use('App\Models\Preparationclassoffers') @component('mail::message') # New Online Enquiry Form Submission Congratulations on receiving a new online enquiry form submission! Your expertise and dedication have attracted yet another prosperous user seeking guidance. Here are the details of the form that has been submitted: - **Name:** {{ $formData['name'] }} - **Email:** {{ $formData['email'] }} - **Phone:** {{ $formData['phone'] }} @if ($formData['enquiry_type'] == 'contact') - **Message:** {{ $formData['message'] }} @else @php $class = Preparationclassoffers::where('preparationclassoffer_id', $formData['preparationclassoffers_id']) ->where('status', 1) ->first(); @endphp @if ($class) - **Preferred class:** {{ $class->title }} @if ($class->classtime) ({{ $class->classtime->format('H:i A') }}) @else (00:00) @endif @else - **Preferred class:** N/A @endif @endif @component('mail::button', ['url' => config('app.url')]) View Enquiries @endcomponent Best regards,
{{ config('app.name') }} @endcomponent