@extends('layouts.site') @section('style') @stop @section('content')
@csrf
{{-- @include('front.addresses.checkout_cart_items')--}}

user information

@if(Session::has('currency_code')) @php $currency_code=Session::get('currency_code')@endphp @else @php $currency_code='SA'; @endphp @endif @if(Session::has('currency_symbol')) @php $curr_symbol=Session::get('currency_symbol') @endphp @else @php $curr_symbol=''; @endphp @endif @if(Session::has('exchange_rate')) @php $exchange_rate=Session::get('exchange_rate')@endphp @else @php $exchange_rate=1; @endphp @endif @if(Session::has('start_date') && (Session::has('end_date')) && (Session::has('advertisment_id'))) @php $start_date=(Session::get('start_date')) ; $end_date=(Session::get('end_date')) ; $from_date = Carbon\Carbon::parse($start_date); // now from_date is a carbon instance $to_date =Carbon\Carbon::parse($end_date); // now to_date is a carbon instance if($from_date < $to_date){ $date = ($from_date->diff(Carbon\Carbon::parse($to_date))); $numberofDays = $date->format('%a')+1; }else{ $numberofDays = 1; } $lang=app()->getLocale(); $name='name_'.$lang; @endphp

{{ $advertisment["name_".$lang]}}

category: {{$advertisment->category->$name}}

city: {{$advertisment->city->$name}}

start Date:{{$start_date}}

End Date:{{$end_date}}

numberofDays:{{$numberofDays}}


{{$price_now=(round($advertisment['discount_price']/$exchange_rate,2) ?? round($advertisment['price']/$exchange_rate,2)) }} {{$curr_symbol}} @if($advertisment['discount_price']) {{round($advertisment['price']/$exchange_rate,2) }} {{$curr_symbol}} @endif
@php $subTotal = ( $price_now * $numberofDays) @endphp

subTotal:{{$subTotal}} {{ Session::put('subTotal',$subTotal)}}


@php $tax = Session::get('tax'); $tax_amount = Session::get('tax_amount'); $grand_total=$subTotal+ $tax_amount; @endphp

tax_amount:{{$tax_amount}}


Grand total:{{$grand_total}}


@php Session::put('grand_total',$grand_total) @endphp

Payment Methods

@else
There Are No Reservation
@endif
@stop @section('scripts') @stop