direction == 1) dir="rtl" @endif> {{-- required meta tags --}} {{-- title --}} {{ 'Equipment Invoice | ' . config('app.name') }} {{-- fav icon --}} {{-- styles --}} @php $mb = '35px'; $width = '50%'; $ml = '18px'; $floatR = 'right'; $floatL = 'left'; @endphp

{{ __('EQUIPMENT BOOKING INVOICE') }}

@php $position = $bookingInfo->currency_text_position; $currency = $bookingInfo->currency_text; @endphp {{-- booking details start --}}

{{ __('Booking Details') }}

{{ __('Booking No') . ': ' }}{{ '#' . $bookingInfo->booking_number }}

{{ __('Vendor') . ': ' }} @if ($bookingInfo->vendor) {{ $vendor = optional($bookingInfo->vendor)->username }} @else @php $admin = App\Models\Admin::first(); @endphp {{ $admin->username }} @endif

{{ __('Customer') . ': ' }} @if ($bookingInfo->user) {{ $vendor = optional($bookingInfo->user)->username }} @else {{ $bookingInfo->name }} @endif

{{ __('Booking Date') . ': ' }}{{ $bookingInfo->created_at->toFormattedDateString() }}

@php $startDate = Carbon\Carbon::parse($bookingInfo->start_date); $endDate = Carbon\Carbon::parse($bookingInfo->end_date); @endphp

{{ __('Start Date') . ': ' }}{{ $startDate->toFormattedDateString() }}

{{ __('End Date') . ': ' }}{{ $endDate->toFormattedDateString() }}

@if (is_null($bookingInfo->total))

{{ __('Price') . ': ' }}{{ __('Negotiable') }}

@else

{{ __('Price') . ': ' }}{{ $position == 'left' ? $currency . ' ' : '' }}{{ number_format($bookingInfo->total, 2) }}{{ $position == 'right' ? ' ' . $currency : '' }}

@endif @if (!is_null($bookingInfo->discount))

{{ __('Discount') . ': ' }}{{ $position == 'left' ? $currency . ' ' : '' }}{{ number_format($bookingInfo->discount, 2) }}{{ $position == 'right' ? ' ' . $currency : '' }}

@endif @if (!is_null($bookingInfo->total) && !is_null($bookingInfo->discount))

@php $total = floatval($bookingInfo->total); $discount = floatval($bookingInfo->discount); $subtotal = $total - $discount; @endphp {{ __('Subtotal') . ': ' }}{{ $position == 'left' ? $currency . ' ' : '' }}{{ number_format($subtotal, 2) }}{{ $position == 'right' ? ' ' . $currency : '' }}

@endif @if (!is_null($bookingInfo->shipping_cost))

{{ __('Shipping Cost') . ': ' }}{{ $position == 'left' ? $currency . ' ' : '' }}{{ number_format($bookingInfo->shipping_cost, 2) }}{{ $position == 'right' ? ' ' . $currency : '' }}

@endif @if (!is_null($bookingInfo->security_deposit_amount < 0))

{{ __('Security Deposit Amount') . ': ' }}{{ $position == 'left' ? $currency . ' ' : '' }}{{ number_format($bookingInfo->security_deposit_amount, 2) }}{{ $position == 'right' ? ' ' . $currency : '' }}

@endif @if (!is_null($bookingInfo->grand_total))

{{ __('Grand Total') . ': ' }}{{ $position == 'left' ? $currency . ' ' : '' }}{{ number_format($bookingInfo->grand_total, 2) }}{{ $position == 'right' ? ' ' . $currency : '' }}

@endif @if (!is_null($bookingInfo->payment_method))

{{ __('Payment Method') . ': ' }}{{ $bookingInfo->payment_method }}

@endif

{{ __('Payment Status') . ': ' }}{{ ucfirst($bookingInfo->payment_status) }}

{{ __('Shipping Location') . ': ' }}{{ $bookingInfo->location }}

{{ __('Shipping Method') . ': ' }}{{ $bookingInfo->shipping_method }}

{{-- booking details end --}} {{-- billing details start --}}

{{ __('Billing Details') }}

{{ __('Name') . ': ' }}{{ $bookingInfo->name }}

{{ __('Email') . ': ' }}{{ $bookingInfo->email }}

{{ __('Contact Number') . ': ' }}{{ $bookingInfo->contact_number }}

{{-- billing details end --}}