@extends('frontend.layout') @section('pageHeading') @if (!empty($pageHeading)) {{ $pageHeading->equipment_details_page_title }} @endif @endsection @section('metaKeywords') {{ $details->meta_keywords }} @endsection @section('metaDescription') {{ $details->meta_description }} @endsection @section('content') {{-- csrf-token for ajax request --}} @includeIf('frontend.partials.breadcrumb', [ 'breadcrumb' => $bgImg->breadcrumb, 'title' => Str::limit($details->title, 20, '...'), ])
@php $sliderImages = json_decode($details->slider_images); @endphp

{{ $details->title }}

{{ optional($details->vendor)->shop_name }}
@if ($details->vendor) {{ __('By') }} {{ $vendor = optional($details->vendor)->username }} @else {{ __('By') }} {{ __('Admin') }} @endif

{{ $details->categoryName }}

{!! replaceBaseUrl($details->description, 'summernote') !!}

@php $features = explode(PHP_EOL, $details->features); @endphp
@foreach ($features as $feature) @endforeach
{{ $feature }}
@if (count($reviews) == 0)
{{ __('This equipment has no review yet') . '!' }}
@else @foreach ($reviews as $review)
@if (empty($review->user->image)) image @else image @endif
    @for ($i = 0; $i < $review->rating; $i++)
  • @endfor
@php $name = $review->user->username; $date = date_format($review->created_at, 'F d, Y'); @endphp {{ $name == ' ' ? 'User' : $name }}{{ ' – ' . $date }}

{{ $review->comment }}

@endforeach @endif @guest('web') {{ __('Login') }} @endguest @auth('web')
@csrf
@endauth
{!! showAd(3) !!}
@csrf
@php $position = $currencyInfo->base_currency_symbol_position; $symbol = $currencyInfo->base_currency_symbol; // calculate tax $currTotal = $details->lowest_price; $taxAmount = $basicData['equipment_tax_amount']; $calculatedTax = $currTotal * ($taxAmount / 100); // calculate grand total $grandTotal = $currTotal + $calculatedTax + $details->security_deposit_amount; @endphp
{{ __('Price') }}
@if (!empty($currTotal))

{{ $position == 'left' ? $symbol : '' }}{{ number_format($currTotal, 2) }}{{ $position == 'right' ? $symbol : '' }}

@endif
{{-- show error message for request-price-message --}} @error('price_message')
{{ $message }}
@enderror
@if (!empty($details->per_day_price)) {{ $position == 'left' ? $symbol : '' }}{{ $details->per_day_price }}{{ $position == 'right' ? $symbol : '' }}{{ '/' . __('Day') }} @endif @if (!empty($details->per_week_price)) {{ $position == 'left' ? $symbol : '' }}{{ $details->per_week_price }}{{ $position == 'right' ? $symbol : '' }}{{ '/' . __('Week') }} @endif @if (!empty($details->per_month_price)) {{ $position == 'left' ? $symbol : '' }}{{ $details->per_month_price }}{{ $position == 'right' ? $symbol : '' }}{{ '/' . __('Month') }} @endif
@if (Auth::guard('web')->check() == false && $basicData['guest_checkout_status'] == 1)
{{ __('You are now booking as a guest') . '. ' . __('if you want to log in before booking') . ', ' . __('then please') }} {{ __('Click Here') }}
@endif

@error('dates')

{{ $message }}

@enderror
@guest('web') @endguest @auth('web') @php $name = Auth::guard('web')->user()->first_name; if (!empty(Auth::guard('web')->user()->last_name)) { $name = $name . ' ' . Auth::guard('web')->user()->last_name; } @endphp @endauth @error('name')

{{ $message }}

@enderror
@guest('web') @endguest @auth('web') @endauth @error('contact_number')

{{ $message }}

@enderror
@guest('web') @endguest @auth('web') @endauth @error('email')

{{ $message }}

@enderror
@php $shippingMethod = session()->get('shippingMethod'); @endphp
@if ($basicData['self_pickup_status'] == 1 || $basicData['two_way_delivery_status'] == 1)
@if ($basicData['self_pickup_status'] == 1)
@endif @if ($basicData['two_way_delivery_status'] == 1)
@endif
@error('shipping_method')

{{ $message }}

@enderror @endif
@if ($shippingMethod == 'self pickup')
@if (count($locations) > 0) @endif @error('location')

{{ $message }}

@enderror
@endif @if ($shippingMethod == 'two way delivery')
@if (count($locations) > 0) @if ($basicData['two_way_delivery_status'] == 1)

{{ __('Shipping charge is only applicable for') . ' "' . __('two way delivery') . '".' }}

@endif @endif @error('location')

{{ $message }}

@enderror
@endif
  • {{ __('Discount') }} () {{ $position == 'left' ? $symbol : '' }}0.00{{ $position == 'right' ? $symbol : '' }}
  • {{ __('Subtotal') }} {{ $position == 'left' ? $symbol : '' }}{{ number_format($currTotal, 2) }}{{ $position == 'right' ? $symbol : '' }}
  • {{ __('Tax') }} {{ '(' . $basicData['equipment_tax_amount'] . '%)' }} () {{ $position == 'left' ? $symbol : '' }}{{ number_format($calculatedTax, 2) }}{{ $position == 'right' ? $symbol : '' }}
  • @if ($basicData['two_way_delivery_status'] == 1)
  • {{ __('Shipping Charge') }} () {{ $position == 'left' ? $symbol : '' }}0.00{{ $position == 'right' ? $symbol : '' }}
  • @endif @if ($details->security_deposit_amount > 1)
  • {{ __('Security Deposit Amount') }} () {{ $position == 'left' ? $symbol : '' }}{{ $details->security_deposit_amount }}{{ $position == 'right' ? $symbol : '' }} {{ __('This amount will be refunded, once the equipment is returned to Vendor safely') }}
  • @endif
  • {{ __('Grand Total') }} {{ $position == 'left' ? $symbol : '' }}{{ number_format($grandTotal, 2) }}{{ $position == 'right' ? $symbol : '' }}
@if ($details->price_btn_status == 0 && (count($onlineGateways) > 0 || count($offlineGateways) > 0))
@php $stripeExist = false; if (count($onlineGateways) > 0) { foreach ($onlineGateways as $onlineGateway) { if ($onlineGateway->keyword == 'stripe') { $stripeExist = true; break; } } } @endphp @error('gateway')

{{ $message }}

@enderror
@if ($stripeExist == true) @endif
@error('identity_number')

{{ $message }}

@enderror
@error('city')

{{ $message }}

@enderror
@error('country')

{{ $message }}

@enderror
@error('address')

{{ $message }}

@enderror
@error('zipcode')

{{ $message }}

@enderror
@foreach ($offlineGateways as $offlineGateway)
@if ($offlineGateway->has_attachment == 1)

@error('attachment')

{{ $message }}

@enderror
@endif @if (!is_null($offlineGateway->short_description))

{{ $offlineGateway->short_description }}

@endif @if (!is_null($offlineGateway->instructions))

{!! replaceBaseUrl($offlineGateway->instructions, 'summernote') !!}

@endif
@endforeach
@endif @if ($basicData['guest_checkout_status'] == 1)
@elseif(Auth::guard('web')->check() == false && $basicData['guest_checkout_status'] == 0) @else
@endif
{{-- equipment search form start --}}
{{-- equipment search form end --}} @endsection @section('script') {{-- --}} @endsection