@extends('admin.layouts.admin') @section('title') Admin | Show Campaign @endsection @section('styles') @endsection @section('content')

Show Campaign Details

@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

Events details


Event Date(s) @php $event_date = 0; $recordDetails->event['event_start_date'] = utcToLocalDateTime($user_timezone, $recordDetails->event['event_start_date']); $recordDetails->event['event_end_date'] = utcToLocalDateTime($user_timezone, $recordDetails->event['event_end_date']); if($recordDetails->event['type']==1) { $event_date = date('M j, Y', strtotime($recordDetails->event['event_start_date'])); } else if($recordDetails->event['type']==2) { $event_date = date('M j, Y', strtotime($recordDetails->event['event_start_date'])).' - '.date('M j, Y', strtotime($recordDetails->event['event_end_date'])); } else{ $event_date = "Not found"; } @endphp {{ $event_date }}
Target Fund ${{ $recordDetails->event['target_fund']??'0' }}
Event Promotion Date(s) @php $recordDetails->event['promotion_start_date'] = utcToLocalDateTime($user_timezone, $recordDetails->event['promotion_start_date']); $recordDetails->event['promotion_end_date'] = utcToLocalDateTime($user_timezone, $recordDetails->event['promotion_end_date']); @endphp {{ date('M j, Y', strtotime($recordDetails->event['promotion_start_date'])).' - '.date('M j, Y', strtotime($recordDetails->event['promotion_end_date'])) }}
Event Promotion Time @php $pickup_time = 'Not found.'; if($recordDetails->event['is_all_day_pickup']==1) { $pickup_time = "All day pickup"; } else if($recordDetails->event['is_all_day_pickup'] == 0) { $promotion_start_time = utcToLocalDateTime($user_timezone, $recordDetails->event['promotion_start_time']); $promotion_end_time = utcToLocalDateTime($user_timezone, $recordDetails->event['promotion_end_time']); $pickup_time = date('h:ia', strtotime($promotion_start_time)).' - '.date('h:ia', strtotime($promotion_end_time)); } @endphp {{ $pickup_time }}

Others information:

@if($recordDetails->event['is_active'] == 1) ACTIVE @else INACTIVE @endif

{{ $recordDetails->event['event_ID']?$recordDetails->event['event_ID']:'Not found.' }}

{{ $recordDetails->event['title']?$recordDetails->event['title']:'Not found.' }}

{{$recordDetails->event['type']==1?"One day":'Multiple Days' }}

{!! $recordDetails->event['description']??'Not found.' !!}

@php $url = 'storage/images/events/web/'.$recordDetails->event['banner_image']; @endphp @if($recordDetails->event['banner_image'] && file_exists(public_path($url))) Banner image @else No image. @endif

Event Organizer details


{{ $recordDetails->eventUser->name??'Not found.' }}

{{ $recordDetails->eventUser->email??'Not found.' }}

@if($recordDetails->eventUser->is_active == 1) ACTIVE @else INACTIVE @endif

{{ $recordDetails->eventUser->phone??'Not found.' }}

Organization details


{{ $recordDetails->organization['name']?$recordDetails->organization['name']:'Not found.' }}

@if($recordDetails->organization['is_active'] == 1) ACTIVE @else INACTIVE @endif

{!! $recordDetails->organization['zip_code']??'Not found.' !!}

{{ $recordDetails->organization['organization_ID']?$recordDetails->organization['organization_ID']:'Not found.' }}

{{ $recordDetails->organization['is_school']?'School':'Other Charitable Organization' }}

{{$recordDetails->organization['email']?$recordDetails->organization['email']:'Not Found' }}

{{$recordDetails->organization['phone']?$recordDetails->organization['phone']:'Not Found' }}

{{$recordDetails->organization['country_code']?'+'.$recordDetails->organization['country_code']:'Not Found' }}

{!! $recordDetails->organization['city']??'Not found.' !!}

{!! $recordDetails->organization['state']??'Not found.' !!}

{!! $recordDetails->organization['address']??'Not found.' !!}

System Restaurant List


@foreach($recordDetails->restaurantDetails as $restaurant) @endforeach
Restaurant Owner Details Restaurant Details Discount rate(%) Phone No Status Map View
@if(objectToArray($restaurant->restaurantUser)) @foreach($restaurant->restaurantUser as $key => $owner)
{{ $owner->name??'' }}
{{ $owner->email??'' }}
{!! $owner->is_active==1?( "Active" ): "Inactive" !!}
@endforeach @endif
{{$restaurant->restaurant_name??''}}
Country: {{$restaurant->country??''}}
State: {{$restaurant->state??''}}
Zip Code: {{$restaurant->zip_code??''}}
Address: {{$restaurant->address??''}}
{!! $restaurant->is_active==1?( "Active" ): "Inactive" !!}
@php $associateEvents = $restaurant->restaurantAssociateEvent; $eventId = $associateEvents->pluck('event_id')->search($recordDetails->event['id']); $associateEventDetails = $associateEvents[$eventId]; $restaurant_response = $associateEventDetails->is_confirm_by_restaurant; $admin_send_request = $associateEventDetails->is_interest_send_by_admin; if($admin_send_request == 0) { $restaurant_response = "Send request"; } elseif($admin_send_request && $restaurant_response == 0) { $restaurant_response = "pending"; } else if($admin_send_request && $restaurant_response == 1) { $restaurant_response = "approved"; } else if($restaurant_response == 2) { $restaurant_response = "rejected"; } @endphp {{ $associateEventDetails->discount_rate??0 }} @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.' }} @if($admin_send_request == 0) @elseif($associateEventDetails->is_confirm_by_restaurant==1) {{ $restaurant_response??'' }} @elseif($associateEventDetails->is_confirm_by_restaurant==2) {{ $restaurant_response??'' }} @elseif($associateEventDetails->is_confirm_by_restaurant==0) {{ $restaurant_response??'' }} @endif Map View

Google Restaurant List


@foreach($recordDetails->googleRestaurantDetails as $googleRestaurant) @php $associateDetails = $googleRestaurant->restaurantAssociateEvent->where("event_id", $recordDetails->event['id'])->first(); if($associateDetails->is_live == 1) { continue; } @endphp @endforeach
Restaurant Owner Details Restaurant Details Restaurant Contact Details Action
@if($googleRestaurant->user_name) {{ $googleRestaurant->user_name??'' }}
@endif @if($googleRestaurant->user_email) {{ $googleRestaurant->user_email??'' }}
@endif @if($googleRestaurant->user_phone) {{ $googleRestaurant->user_phone??'' }}
@endif
{{$googleRestaurant->restaurant_name??''}}
{{$googleRestaurant->address??''}}
{!! str_replace(",", ",
", $googleRestaurant->phone??'') !!}
@if($googleRestaurant->is_live) Registered @else @endif @if($googleRestaurant->user_email && $googleRestaurant->is_live == 0) Send Reg. Form ({{ $googleRestaurant->email_sent_count }}) @endif
@endsection @section('scripts') @endsection