@extends('email.layouts.email') @section('styles') @endsection @section('content')
A restaurant menu has been added with this email. Please check the following details,
| Event Details | |
| Event Id | {{ $mail_body->event->event_ID??'' }} |
| Event Name | {{ $mail_body->event->title??'' }} |
| Event Description | {{ $mail_body->event->description??'' }} |
| Event Type | {{ $mail_body->event->type==1?"One day":'Multiple Days' }} |
| Event Date | @php $event_date = 0; $userTimezone = $mail_body->userProfile->user_timezone??''; $mail_body->event->event_start_date = utcToLocalDateTime($userTimezone, $mail_body->event->event_start_date); $mail_body->event->event_end_date = utcToLocalDateTime($userTimezone, $mail_body->event->event_end_date); if($mail_body->event->type==1) { $event_date = date('M j, Y', strtotime($mail_body->event->event_start_date)); } else if($mail_body->event->type==2) { $event_date = date('M j, Y', strtotime($mail_body->event->event_start_date)).' - '.date('M j, Y', strtotime($mail_body->event->event_end_date)); } else{ $event_date = "Not found"; } @endphp {{ $event_date }} |
| Promotion Date | @php $mail_body->event->promotion_start_date = utcToLocalDateTime($userTimezone, $mail_body->event->promotion_start_date); $mail_body->event->promotion_end_date = utcToLocalDateTime($userTimezone, $mail_body->event->promotion_end_date); @endphp {{ date('M j, Y', strtotime($mail_body->event->promotion_start_date)).' - '.date('M j, Y', strtotime($mail_body->event->promotion_end_date)) }} |
| Pickup Time | @php $pickup_time = 'Not found.'; if($mail_body->event->is_all_day_pickup == 1) { $pickup_time = "All day pickup"; } else if($mail_body->event->is_all_day_pickup == 0) { $userTimezone = $mail_body->userProfile->user_timezone??''; $mail_body->event->promotion_start_time = utcToLocalDateTime($userTimezone, $mail_body->event->promotion_start_time); $mail_body->event->promotion_end_time = utcToLocalDateTime($userTimezone, $mail_body->event->promotion_end_time); $pickup_time = date('h:ia', strtotime($mail_body->event->promotion_start_time)).' - '.date('h:ia', strtotime($mail_body->event->promotion_end_time)); } @endphp {{ $pickup_time }} |
| Target Fund | ${{ $mail_body->event->target_fund??0 }} |
| Organization details | |
| Organization Type | {{ $mail_body->organization->is_school?'School':'Other Charitable Organization' }} |
| Organization Unique Id | {{ $mail_body->organization->organization_ID??'Not found' }} |
| Organization Name | {{ $mail_body->organization->name??'Not found' }} |
| Organization Address | {{ $mail_body->organization->address??'Not found' }} |
| Organization Zip code | {{ $mail_body->organization->zip_code??'Not found' }} |
| Organization Email | {{ $mail_body->organization->email??'Not found' }} |
| Organization Phone | {{ $mail_body->organization->phone??'Not found' }} |
| Restaurant details | |
| Name | {!! $mail_body->restaurant->restaurant_name??'No name found.' !!} |
| Address | {!! $mail_body->restaurant->address??'' !!} |
| Contact | @php $contact_no = ''; if(isset($mail_body->restaurant->restaurantUser) && count($mail_body->restaurant->restaurantUser)) { foreach($mail_body->restaurant->restaurantUser as $key2 => $user) $contact_no .= $user->phone.', '; } $contact_no .= $mail_body->restaurant->phone??''; @endphp {{ trim($contact_no, ', ')??'Not found.' }} |
| Menu link | {{ $mail_body->menuLink }} |
{{ get_setting("site-name") }}
@endsection @section('footer-2-user-type') @include('email.partials.footer-2-admin') @endsection