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

Show Restaurant(s) wise Order Details

@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
{{ $recordDetails->event['title']?$recordDetails->event['title']:'Not found.' }}

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

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

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

@foreach($recordDetails->assoRestaurants as $assoRestaurant) @php $restaurant = $assoRestaurant->getRestaurant; @endphp @endforeach
Restaurant Owner Details Restaurant Details Discount rate(%) Amount (total) Action
@if(objectToArray($restaurant->restaurantUser)) @foreach($restaurant->restaurantUser as $key => $owner)
{{ $owner->name??'' }}
{{ $owner->email??'' }}
@endforeach @endif
{{$restaurant->restaurant_name??''}}
@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.' }}
@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 }}
Restaurant(s) sold(base price) ${{ $assoRestaurant->total_base_price }}
Admin earn ${{ $assoRestaurant->total_admin_commission_price }}
Sold(without tax) ${{ $assoRestaurant->total_price }}
Tax. ${{ $assoRestaurant->total_tax_price }}
Final sold ${{ $assoRestaurant->final_price }}
@endsection @section('scripts') @endsection