@extends('modules.reports.layout') @section('title','Car Price Report Without Drop') @section('content')
{{_t('car_number', $lang)}} {{_t('file_number', $lang)}} {{_t('car_use', $lang)}} {{_t('car_model', $lang)}} {{_t('car_model_year', $lang)}} {{_t('vin_number', $lang)}}
{{$car->car_number}} @if($carGuess) {{ $carGuess->file_number }} @endif {{ $lang == "ar" ? $car->car_use_ar : ($lang == "hebrew" ? $car->car_use_hebrew : ($lang == "en" ? $car->car_use_en: "")) }} {{ $lang == "ar" ? $car->car_model_ar : ($lang == "hebrew" ? $car->car_model_hebrew : ($lang == "en" ? $car->car_model_en: "")) }} {{$car->car_model_year}} {{$car->vin_number}}

{{ _t('release_date', $lang) }} @if($carGuess) {{substr($carGuess->register_date, 0,10) }} @endif
{{ _t('file_number', $lang) }} @if($carGuess) {{ $carGuess->file_number }} @endif
{{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{--
--}} {{-- {{ _t('car_cost', $lang) }}--}} {{-- --}} {{-- @if($carGuess)--}} {{-- {{ $carGuess->car_price }}--}} {{-- @endif--}} {{--
--}}
{{-- --}} {{-- FRONT --}} {{-- --}} {{-- REAR --}} {{-- --}} {{-- TOP --}} {{-- --}} {{-- BOTTOM --}} {{-- --}} {{-- RIGHT --}} {{-- --}} {{-- LEFT --}} {{-- --}} {{-- --}}
{{ $lang == "ar" ? 'احتساب الأضرار والتعويض' : ($lang == "hebrew" ? 'חישוב נזקים ופיצויים' : ($lang == "en" ? 'Calculation of damages and compensation': "")) }}
{{ _t('maintenance_cost', $lang) }} {{ _t('body_cost', $lang) }} --}} {{-- {{ _t('mechanic_cost', $lang) }}--}} {{--
@if($carGuess)
{{ _t('front', $lang) }}
{{ getTotalCostForMaintenance($carGuess->accident_id, 'FRONT') }}
@endif
@if($carGuess)
{{ _t('front', $lang) }}
{{ getTotalCostForBodyMaintenance($carGuess->accident_id, 'FRONT') }}
@endif
--}} {{-- @if($carGuess)--}} {{--
--}} {{--
{{ _t('front', $lang) }}
--}} {{--
{{ getTotalCostForMechanicMaintenance($carGuess->accident_id, 'FRONT') }}
--}} {{--
--}} {{-- @endif--}} {{--
@if($carGuess)
{{ _t('rear', $lang) }}
{{ getTotalCostForMaintenance($carGuess->accident_id, 'REAR') }}
@endif
@if($carGuess)
{{ _t('rear', $lang) }}
{{ getTotalCostForBodyMaintenance($carGuess->accident_id, 'REAR') }}
@endif
--}} {{-- @if($carGuess)--}} {{--
--}} {{--
{{ _t('rear', $lang) }}
--}} {{--
{{ getTotalCostForMechanicMaintenance($carGuess->accident_id, 'REAR') }}
--}} {{--
--}} {{-- @endif--}} {{--
@if($carGuess)
{{ _t('top', $lang) }}
{{ getTotalCostForMaintenance($carGuess->accident_id, 'TOP') }}
@endif
@if($carGuess)
{{ _t('top', $lang) }}
{{ getTotalCostForBodyMaintenance($carGuess->accident_id, 'TOP') }}
@endif
--}} {{-- @if($carGuess)--}} {{--
--}} {{--
{{ _t('top', $lang) }}
--}} {{--
{{ getTotalCostForMechanicMaintenance($carGuess->accident_id, 'TOP') }}
--}} {{--
--}} {{-- @endif--}} {{--
@if($carGuess)
{{ _t('bottom', $lang) }}
{{ getTotalCostForMaintenance($carGuess->accident_id, 'BOTTOM') }}
@endif
@if($carGuess)
{{ _t('bottom', $lang) }}
{{ getTotalCostForBodyMaintenance($carGuess->accident_id, 'BOTTOM') }}
@endif
--}} {{-- @if($carGuess)--}} {{--
--}} {{--
{{ _t('bottom', $lang) }}
--}} {{--
{{ getTotalCostForMechanicMaintenance($carGuess->accident_id, 'BOTTOM') }}
--}} {{--
--}} {{-- @endif--}} {{--
@if($carGuess)
{{ _t('right', $lang) }}
{{ getTotalCostForMaintenance($carGuess->accident_id, 'RIGHT') }}
@endif
@if($carGuess)
{{ _t('right', $lang) }}
{{ getTotalCostForBodyMaintenance($carGuess->accident_id, 'RIGHT') }}
@endif
--}} {{-- @if($carGuess)--}} {{--
--}} {{--
{{ _t('right', $lang) }}
--}} {{--
{{ getTotalCostForMechanicMaintenance($carGuess->accident_id, 'RIGHT') }}
--}} {{--
--}} {{-- @endif--}} {{--
@if($carGuess)
{{ _t('left', $lang) }}
{{ getTotalCostForMaintenance($carGuess->accident_id, 'LEFT') }}
@endif
@if($carGuess)
{{ _t('left', $lang) }}
{{ getTotalCostForBodyMaintenance($carGuess->accident_id, 'LEFT') }}
@endif
--}} {{-- @if($carGuess)--}} {{--
--}} {{--
{{ _t('left', $lang) }}
--}} {{--
{{ getTotalCostForMechanicMaintenance($carGuess->accident_id, 'LEFT') }}
--}} {{--
--}} {{-- @endif--}} {{--
@if($carGuess)
{{ _t('summation', $lang) }}
{{ getTotalCostForMaintenance($carGuess->accident_id) }}
@endif
@if($carGuess)
{{ _t('summation', $lang) }}
{{ getTotalCostForBodyMaintenance($carGuess->accident_id) }}
@endif
--}} {{-- @if($carGuess)--}} {{--
--}} {{--
{{ _t('summation', $lang) }}
--}} {{--
{{ getTotalCostForMechanicMaintenance($carGuess->accident_id) }}
--}} {{--
--}} {{-- @endif--}} {{--
{{-- --}} {{-- --}} {{-- --}} {{-- --}}
{{ _t('all_cost', $lang) }} @if($carGuess) {{ ((getTotalCostForBodyMaintenance($carGuess->accident_id) + getTotalCostForMaintenance($carGuess->accident_id) + getTotalCostForMechanicMaintenance($carGuess->accident_id))) }} @endif
{{ _t('car_cost', $lang) }} @if($carGuess) {{ $carGuess->car_price }} @endif
--}} {{-- {{ _t('damage_percent', $lang) }}--}} {{-- --}} {{-- @if($carGuess)--}} {{-- {{ number_format((((getTotalCostForBodyMaintenance($carGuess->accident_id) + getTotalCostForMaintenance($carGuess->accident_id) + getTotalCostForMechanicMaintenance($carGuess->accident_id)) / ($carGuess->car_price)) * 100), 2)}}%--}} {{-- @endif--}} {{--
{{ _t('damage_percent', $lang) }} @if($carGuess) {{ number_format((((getTotalCostForBodyMaintenance($carGuess->accident_id) + getTotalCostForMaintenance($carGuess->accident_id) + getTotalCostForMechanicMaintenance($carGuess->accident_id)) / ($carGuess->car_price)) * 100), 2)}}% @endif


@endsection