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

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

A new campaign has been registered in your system. 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) { $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:

@if(count($mail_body->restaurants) || count($mail_body->googleRestaurants)) @php $countRestaurant = 0; @endphp @if(count($mail_body->restaurants)) @foreach($mail_body->restaurants as $key => $restaurant) @endforeach @endif @if(count($mail_body->googleRestaurants)) @foreach($mail_body->googleRestaurants as $key => $googleRestaurant) @endforeach @endif @else @endif
Sl no. Restaurant Name & address Contact Action
{{ ++$countRestaurant }} {!! $restaurant->restaurant_name??'No name found.' !!}
{!! $restaurant->address??'' !!}
@php $contact_no = ''; if(isset($restaurant->restaurantUser) && count($restaurant->restaurantUser)) { foreach($restaurant->restaurantUser as $key2 => $user) $contact_no .= $user->phone.', '; } $contact_no .= $restaurant->phone??''; @endphp {{ trim($contact_no, ', ')??'Not found.' }} Map View
{{ ++$countRestaurant }} {!! $googleRestaurant->restaurant_name??'No name found.' !!}
{!! $googleRestaurant->address??'' !!}
{{ $googleRestaurant->phone??'' }} Google Restaurant
No restaurant found.

 

Thank you

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

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