@extends('layouts.main_investor') @section('content')
@if(!empty($car->images))
@foreach(explode(',',$car->images) as $key=>$img)
department
@endforeach
@endif
@lang('site.id number')({{$car->id}})

{{$car->name ?? ''}}

{{$car->avgRating}}
{{$car->carComment->count() ?? 0}} @lang('site.comments')
@lang('site.price'):
@if($car->fixed_price)
{{$car->fixed_price ?? 0}}
@else @foreach(json_decode($car->changed_price)->day_num as $k=> $item5)
{{$item5}} @lang('site.person') -- {{json_decode($car->changed_price)->price[$k]}}
@endforeach @endif
@lang('site.Reservation deposit') :
@if($car->fixed_price)
{{$car->fixed_price ??0}}
@else @foreach(json_decode($car->changed_price)->day_num as $k=> $item5)
{{$item5}}@lang('site.person'); -{{json_decode($car->changed_price)->price[$k]}}
@endforeach @endif
money icon @lang('site.carbonbooking')
  • {!! html_entity_decode($car->description) !!}

    {{$car->name ?? ''}}

    {{$car->category ??''}}

    {{$car->year ??''}}

    {{$car->car_numbers ?? 0}}
  • ({{$car->CarReview->count() ?? 0 }})
    {{$car->CarReview->count() ?? 0 }} @lang('site.reviews')

    @lang('site.excellent')

    @lang('site.Based on reviews from all kinds of travelers')

    @foreach($car->CarReview->unique('name') as $review)
    @lang('site.Receipt and delivery procedures')
    {{$review->RateTotal($review->car_id) / $review->CountUser($review->car_id) ?? 0}}
    @endforeach

    @lang('site.Customer reviews')

    @foreach($car->carComments as $comment)
    @if(!empty($comment->user->image)) UserName @else UserName @endif

    {{$comment->user->firstname ?? ''}} {{$comment->user->firstname ?? ''}}
    @if(!empty($comment->user->country->flag_image)) flag-icon @else flag-icon @endif

    {!! html_entity_decode(substr($comment->description, 0, 125)) !!}

    {{$comment->rating ?? 0}}

    @endforeach
  • {{html_entity_decode($car->policy_place) ?? ''}}


@endsection