@extends('email.layouts.email') @section('styles') @endsection @section('content')

Hello {{ $mail_body->user->name??'Restaurant Owner' }},

A campaign is showing interest on your restaurant as a fund raiser.
Please check the following details and reply from mobile app.

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 Name & address Contact Discount rate
{!! $mail_body->restaurantDetails->restaurant_name??'No name found.' !!}
{!! $mail_body->restaurantDetails->address??'' !!}
@php $contact_no = ''; if(isset($mail_body->restaurantDetails->restaurantUser) && count($mail_body->restaurantDetails->restaurantUser)) { foreach($mail_body->restaurantDetails->restaurantUser as $key2 => $user) $contact_no .= $user->phone.', '; } $contact_no .= $mail_body->restaurantDetails->phone??''; @endphp {{ trim($contact_no, ', ')??'Not found.' }} {{ $mail_body->associatedRestaurant->discount_rate??0 }}%

 

Thank you

{{ get_setting("site-name") }}

@endsection @section('footer-2-user-type') @include('email.partials.footer-2-restaurant-owner') @endsection