@extends('frontend.layout') @section('pageHeading') {{ __('Check Out') }} @endsection @section('custom-style') @endsection @section('hero-section') {{ __('Checkout') }} {{ __('Home') }} {{ __('Checkout') }} @php $authUser = Auth::guard('customer')->user(); @endphp @endsection @section('content') {{-- @csrf {{ __('Billing Details') }} {{ __('First Name') }} * @error('fname') {{ $message }} @enderror {{ __('Last Name') }} * @error('lname') {{ $message }} @enderror {{ __('Email') }} * @error('email') {{ $message }} @enderror {{ __('Phone') }} * @error('phone') {{ $message }} @enderror {{ __('Country') }} * @error('country') {{ $message }} @enderror {{ __('State') }} {{ __('City') }} @error('city') {{ $message }} @enderror {{ __('Zip/Post Code') }} @error('zip_code') {{ $message }} @enderror {{ __('Address') }} * {{ old('address', $authUser != null ? $authUser->address : '') }} @error('address') {{ $message }} @enderror @if ($selTickets != '') @php Session::put('selTickets', $selTickets); @endphp @endif @csrf {{ @$event->title }} {{ date('D, d M Y', strtotime($event->start_date)) }} {{ $event->start_time }} @if ($event->event_type == 'venue') {{ $event->address }} @else {{ __('Online') }} @endif {{ __('Order Summary') }} @php $selTickets = Session::get('selTickets'); @endphp @if ($selTickets != null) {{ __('Tickets Info') }} @foreach ($selTickets as $selTicket) @php $ticket = App\Models\Event\Ticket::where( 'id', $selTicket['ticket_id'], )->first(); if ($ticket->pricing_type == 'variation') { $varition_key = App\Models\Event\VariationContent::where([ ['ticket_id', $selTicket['ticket_id']], ['name', $selTicket['name']], ]) ->select('key') ->first(); $varition_name = App\Models\Event\VariationContent::where([ ['ticket_id', $ticket->id], ['language_id', $currentLanguageInfo->id], ['key', $varition_key->key], ])->first(); if ($varition_name) { $name = $varition_name->name; } else { $name = ''; } } else { $ticket_content = App\Models\Event\TicketContent::where([ ['ticket_id', $ticket->id], ['language_id', $currentLanguageInfo->id], ])->first(); if (empty($ticket_content)) { $ticket_content = App\Models\Event\TicketContent::where([ ['ticket_id', $ticket->id], ])->first(); } $name = $ticket_content->title; } @endphp @if (array_key_exists('seat_id', $selTicket) && array_key_exists('slot_id', $selTicket) && array_key_exists('seat_name', $selTicket) && array_key_exists('slot_name', $selTicket) && array_key_exists('qty', $selTicket) && array_key_exists('payable_price', $selTicket) && array_key_exists('name', $selTicket)) {{ $selTicket['qty'] }} * {{ $selTicket['name'] }} {{ __('Slot Name') }}:{{ $selTicket['slot_name'] }} {{ __('Seat Name') . ':' . $selTicket['seat_name'] }} {{ symbolPrice($selTicket['payable_price']) }} @else {{ $name }} {{ $selTicket['qty'] }}x @endif @endforeach @endif {{ __('Total Tickets') }} {{ $quantity }} {{ __('Ticket Price') }} @if (Session::get('total_early_bird_dicount') != '') {{ symbolPrice(Session::get('sub_total') - Session::get('total_early_bird_dicount')) }} @else {{ symbolPrice(Session::get('sub_total')) }} @endif @if (Session::get('total_early_bird_dicount') != 0) {{ symbolPrice(Session::get('sub_total')) }} @endif @if (Session::get('discount') != '') {{ __('Coupon Discount') }} - {{ symbolPrice(Session::get('discount')) }} @endif @if (Session::get('total_early_bird_dicount') != '') {{ __('Subtotal') }} @if (Session::get('total_early_bird_dicount') != '') @php $symbol_subtotal = Session::get('sub_total') - (Session::get('total_early_bird_dicount') + Session::get('discount')); @endphp {{ symbolPrice($symbol_subtotal) }} @else {{ symbolPrice(Session::get('sub_total') - Session::get('discount')) }} @endif @endif @php if (Session::get('total_early_bird_dicount') != '') { $subtotal = Session::get('sub_total') - (Session::get('total_early_bird_dicount') + Session::get('discount')); } else { $subtotal = Session::get('sub_total') - Session::get('discount'); } $tax = ($subtotal * $basicData->tax) / 100; $tax = round($tax, 2); @endphp {{ __('Tax') }} ({{ $basicData->tax }}%) + {{ symbolPrice($tax) }} {{ __('Total') }} @php $symbol_total = Session::get('sub_total') - (Session::get('discount') + Session::get('total_early_bird_dicount')) + $tax; @endphp {{ symbolPrice($symbol_total) }} @php $sub_total = Session::get('sub_total'); $discount = Session::get('discount'); $total_early_bird_dicount = Session::get('total_early_bird_dicount'); $grand_total = $sub_total + $tax - ($discount + $total_early_bird_dicount); Session::put('tax', $tax); Session::put( 'grand_total', $sub_total - ($discount + $total_early_bird_dicount), ); @endphp @if ($total != 0 || Session::get('sub_total') != 0) {{ __('Coupon') }} {{ __('Apply') }} {{ __('Payment Method') }} @if (Session::has('paypal_error')) {{ Session::get('paypal_error') }} @php Session::forget('paypal_error'); @endphp @endif @if (Session::has('error')) {{ Session::get('error') }} @endif {{ __('Select a payment method') }} @foreach ($online_gateways as $online_gateway) keyword == old('gateway') ? 'selected' : '' }}> {{ __("$online_gateway->name") }} @endforeach @foreach ($offline_gateways as $offline_gateway) id == old('gateway') ? 'selected' : '' }}> {{ __("$offline_gateway->name") }} @endforeach @error('gateway') {{ $message }} @enderror() @if (Session::has('currency_error')) {{ Session::get('currency_error') }} @endif @error('identity_number') {{ $message }} @enderror @foreach ($offline_gateways as $offlineGateway) @if (!is_null($offlineGateway->short_description)) {{ __('Description') }} {{ $offlineGateway->short_description }} @endif @if (!is_null($offlineGateway->instructions)) {{ __('Instructions') }} {!! $offlineGateway->instructions !!} @endif @if ($offlineGateway->has_attachment == 1) {{ __('Attachment') . '*' }} @error('attachment') {{ $message }} @enderror @endif @endforeach {{ __('Proceed to Pay') }} @else {{ __('Submit') }} @endif --}} Billing Details First Name Last Name Email Phone Country State City Zip/Post Code Address Proceed to Payment @endsection @section('custom-script') @endsection
{{ $message }}
{{ Session::get('paypal_error') }}
{{ Session::get('error') }}
{{ Session::get('currency_error') }}
{{ $offlineGateway->short_description }}