@extends('backend.layout') @section('content')
{{ __('Event Booking') }}
@if (count($bookings) == 0)

{{ __('NO EVENT BOOKING FOUND') . '!' }}

@else
@foreach ($bookings as $booking) @php $eventInfo = \App\Models\Event\EventContent::where('language_id', $defaultLang->id) ->where('event_id', $booking->event_id) ->first(); if (is_null($eventInfo)) { $eventInfo = \App\Models\Event\EventContent::where('event_id', $booking->event_id)->first(); } $title = $eventInfo ? $eventInfo->title : ''; $slug = $eventInfo ? $eventInfo->slug : ''; @endphp @php $customer = $booking->customerInfo()->first(); @endphp @php $position = $booking->currencyTextPosition; $symbol = $booking->currencySymbol; @endphp @includeIf('backend.event.booking.show-attachment') @endforeach
{{ __('Booking ID') }} {{ __('Event') }} {{ __('Organizer') }} {{ __('Customer') }} {{ __('Cust. Paid') }} {{ __('Org. Received') }} {{ __('Paid via') }} {{ __('Payment Status') }} {{ __('Tickect Scan Status') }} {{ __('Actions') }}
{{ '#' . $booking->booking_id }} @if ($eventInfo) {{ strlen($title) > 30 ? mb_substr($title, 0, 30, 'utf-8') . '...' : $title }} @else {{ '-' }} @endif @if ($booking->organizer) {{ strlen($booking->organizer->username) > 20 ? mb_substr($booking->organizer->username, 0, 20, 'UTF-8') . '....' : $booking->organizer->username }} @else {{ __('Admin') }} @endif @if ($customer) {{ $customer->fname }} {{ $customer->lname }} @else {{ '-' }} @endif {{ $position == 'left' ? $symbol . ' ' : '' }}{{ $booking->price + $booking->tax }}{{ $position == 'right' ? ' ' . $symbol : '' }} @if ($booking->organizer) {{ $position == 'left' ? $symbol . ' ' : '' }}{{ $booking->price - $booking->commission }}{{ $position == 'right' ? ' ' . $symbol : '' }} @else - @endif {{ !is_null($booking->paymentMethod) ? $booking->paymentMethod : '-' }} @if ($booking->gatewayType == 'online')

{{ __('Completed') }}

@elseif ($booking->gatewayType == 'offline') @if ($booking->paymentStatus == 'pending')
@csrf
@else {{ ucfirst($booking->paymentStatus) }} @endif @else @if ($booking->paymentStatus == 'free') {{ ucfirst($booking->paymentStatus) }} @else - @endif @endif
@if ($booking->scan_status == 1) {{ __('Already Scanned') }} @else {{ __('Not Scanned') }} @endif
@endif
@endsection