@extends('frontends.layouts.index') @section('content')

{{ $model->getSelfTranslation('title') }}

{{ $model->child_string_displayed('category', 'name') }} (75)
{{ __('from/per person') }} {{ App\Setting::currency_symbol() }} {{ $model->first_discounted_price > 0 ? $model->first_discounted_price:$model->first_price }}
    @if($model->meal_provided)
  • {{ __('Meal') }}
  • @endif @if($model->hotel_provided)
  • {{ __('Hotel') }}
  • @endif @if($model->transport_provided)
  • {{ __('Transport') }}
  • @endif @if($model->accessibiliy_provided)
  • {{ __('Accessibiliy') }}
  • @endif @if($model->tour_guide_provided)
  • {{ __('Tour guide') }}
  • @endif
@if($model->photos()->where('is_header','=',false)->count())
@endif

{{ __('Description') }}

{{ $model->getSelfTranslation('title') }}

{!! nl2br($model->getSelfTranslation('description')) !!}

{{ __('Highlight Places') }}

{{ $model->getSelfTranslation('highlight_places') }}

{{ __('Brochure Link') }}

@if($model->attachment_brochure)

{{ __('Download Brochure (English)') }}

@endif @if($model->attachment_brochure_ch)

{{ __('Download Brochure (Chinese)') }}

@endif
@if(count($model->time_tables))

{{ __('Schedule Of Tour') }}

@foreach($model->time_tables as $row) @endforeach
{{ __('Days') }} {{ __('Description') }}
{{ isset($row['label_days']) ? $row['label_days']:'' }} {!! nl2br(isset($row['description']) ? $row['description']:'') !!}
@endif


{{ __('Reviews') }}

@foreach($model->rating_comments as $row) @if($row->rating || $row->comment)
Image - {{ date('d-M-Y', strtotime($row->updated_at)) }} -

{{ $row->name }}

{{ nl2br($row->comment) }}

@for($i=1; $i<=$row->rating; $i++) @endfor @for($i=$row->rating+1; $i<=5; $i++) @endfor
@endif @endforeach
@stop @section('script') function init_update_price(me) { $('#preloader').fadeIn('slow'); // will fade out the white DIV that covers the website. var dateSelected = $(me).val(); if(dateSelected) { $.get("{{ action('HomeController@getTourPrice', [$model->getSelfTranslation('title')]) }}", {tourist_date:dateSelected}, function(data){ var adultPrice = ((data.adult_discounted_price > 0 ? data.adult_discounted_price:data.adult_price) || 0) var childPrice = ((data.child_discounted_price > 0 ? data.child_discounted_price:data.child_price) || 0) $(".adult_price").html(parseFloat(adultPrice).toFixed(decimalPoint)); $(".children_price").html(parseFloat(childPrice).toFixed(decimalPoint)); init_total_price(); $('#preloader').fadeOut('slow'); // will fade out the white DIV that covers the website. },"json"); } else { $(".adult_price").html(parseFloat(0).toFixed(decimalPoint)); $(".children_price").html(parseFloat(0).toFixed(decimalPoint)); init_total_price(); $('#preloader').fadeOut('slow'); // will fade out the white DIV that covers the website. } } $(".button_inc").on("click", function(){ init_total_price(); }); function init_total_price() { var adultPack = $("input[name=adult_pack]").val(); var adultPrice = ($(".adult_price").html() || 0); var childPack = $("input[name=child_pack]").val(); var childPrice = ($(".children_price").html() || 0); var totalAdultPrice = parseFloat(adultPack) * parseFloat(adultPrice); var totalChildPrice = childPack * childPrice; var total = totalAdultPrice + totalChildPrice; $(".total_price").html(total.toFixed(decimalPoint)); } @stop