@extends('vendors.layout') @section('content')
@if (count($bookings) == 0)

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

@else
@foreach ($bookings as $booking) @endforeach
{{ __('Booking No.') }} {{ __('Customer Name') }} {{ __('Customer Contact Number') }} {{ __('Customer Email') }} {{ __('Equipment') }} {{ __('Start Date') }} {{ __('End Date') }} {{ __('Shipping Method') }} {{ __('Location') }} {{ __('Price') }} {{ __('Discount') }} {{ __('Shipping Cost') }} {{ __('Tax') }} {{ __('Grand Total') }} {{ __('Received Amount') }} {{ __('Commision') }} {{ __('Paid via') }} {{ __('Payment Status') }} {{ __('Shipping Status') }} {{ __('Booking Date') }}
{{ '#' . $booking->booking_number }} {{ $booking->name }} {{ $booking->contact_number }} {{ $booking->email }} {{ strlen($booking->equipmentTitle) > 20 ? mb_substr($booking->equipmentTitle, 0, 20, 'UTF-8') . '...' : $booking->equipmentTitle }} {{ $booking->startDate }} {{ $booking->endDate }} {{ ucwords($booking->shipping_method) }} {{ $booking->location }} @if (is_null($booking->total)) {{ __('Requested') }} @else {{ $booking->currency_text_position == 'left' ? $booking->currency_text . ' ' : '' }}{{ $booking->total }}{{ $booking->currency_text_position == 'right' ? ' ' . $booking->currency_text : '' }} @endif @if (is_null($booking->discount)) - @else {{ $booking->currency_text_position == 'left' ? $booking->currency_text . ' ' : '' }}{{ $booking->discount }}{{ $booking->currency_text_position == 'right' ? ' ' . $booking->currency_text : '' }} @endif @if (is_null($booking->shipping_cost)) - @else {{ $booking->currency_text_position == 'left' ? $booking->currency_text . ' ' : '' }}{{ $booking->shipping_cost }}{{ $booking->currency_text_position == 'right' ? ' ' . $booking->currency_text : '' }} @endif @if (is_null($booking->tax)) - @else {{ $booking->currency_text_position == 'left' ? $booking->currency_text . ' ' : '' }}{{ $booking->tax }}{{ $booking->currency_text_position == 'right' ? ' ' . $booking->currency_text : '' }} @endif @if (is_null($booking->grand_total)) - @else {{ $booking->currency_text_position == 'left' ? $booking->currency_text . ' ' : '' }}{{ $booking->grand_total }}{{ $booking->currency_text_position == 'right' ? ' ' . $booking->currency_text : '' }} @endif {{ $booking->currency_symbol_position == 'left' ? $booking->currency_symbol . ' ' : '' }}{{ $booking->received_amount }}{{ $booking->currency_symbol_position == 'right' ? ' ' . $booking->currency_symbol : '' }} {{ $booking->currency_symbol_position == 'left' ? $booking->currency_symbol . ' ' : '' }}{{ $booking->comission }}{{ $booking->currency_symbol_position == 'right' ? ' ' . $booking->currency_symbol : '' }} {{ is_null($booking->payment_method) ? '-' : $booking->payment_method }} @if ($booking->payment_status == 'completed') {{ __('Completed') }} @elseif ($booking->payment_status == 'pending') {{ __('Pending') }} @else {{ __('Rejected') }} @endif @if ($booking->shipping_status == 'pending') {{ __('Pending') }} @elseif ($booking->shipping_status == 'taken') {{ __('Taken') }} @elseif ($booking->shipping_status == 'delivered') {{ __('Delivered') }} @else {{ __('Returned') }} @endif {{ $booking->createdAt }}
@endif
@endsection