@extends('modules.reports.layout') @section('title','Car Price Report With 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
{{-- --}} {{-- --}} {{-- 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( request('WorkTypeConst') == "TECHNICAL") {{ $lang == "ar" ? 'مجموع نسبة الضرر الفني' : ($lang == "hebrew" ? 'אחוז סך הנזק הטכני' : ($lang == "en" ? 'Total percentage of technical damage': "")) }} @else {{ _t('drops_cost', $lang) }} @endif --}} {{-- {{ _t('car_cost', $lang) }}--}} {{--
{{ _t('front', $lang) }} @if($carGuess) {{ getTotalCostForMaintenance($carGuess->accident_id, 'FRONT')}} @endif {{ _t('front', $lang) }} @if($carGuess) {{ getTotalCostForBodyMaintenance($carGuess->accident_id, 'FRONT') }} @endif {{ _t('front', $lang) }} @if($carGuess) {{ getTotalTaxesforCarDrop($carGuess->accident_id, 'FRONT') . '%'}} @endif @if($carGuess) {{ number_format($carGuess->car_price * (getTotalTaxesforCarDrop($carGuess->accident_id, 'FRONT') / 100), 2) }} @endif
{{ _t('rear', $lang) }} @if($carGuess) {{ getTotalCostForMaintenance($carGuess->accident_id, 'REAR')}} @endif {{ _t('rear', $lang) }} @if($carGuess) {{ getTotalCostForBodyMaintenance($carGuess->accident_id, 'REAR') }} @endif {{ _t('rear', $lang) }} @if($carGuess) {{ getTotalTaxesforCarDrop($carGuess->accident_id, 'REAR') . '%'}} @endif @if($carGuess) {{ number_format($carGuess->car_price * (getTotalTaxesforCarDrop($carGuess->accident_id, 'REAR') / 100), 2) }} @endif
{{ _t('top', $lang) }} @if($carGuess) {{ getTotalCostForMaintenance($carGuess->accident_id, 'TOP')}} @endif {{ _t('top', $lang) }} @if($carGuess) {{ getTotalCostForBodyMaintenance($carGuess->accident_id, 'TOP') }} @endif {{ _t('top', $lang) }} @if($carGuess) {{ getTotalTaxesforCarDrop($carGuess->accident_id, 'TOP') . '%'}} @endif @if($carGuess) {{ number_format($carGuess->car_price * (getTotalTaxesforCarDrop($carGuess->accident_id, 'TOP') / 100), 2) }} @endif
{{ _t('bottom', $lang) }} @if($carGuess) {{ getTotalCostForMaintenance($carGuess->accident_id, 'BOTTOM')}} @endif {{ _t('bottom', $lang) }} @if($carGuess) {{ getTotalCostForBodyMaintenance($carGuess->accident_id, 'BOTTOM') }} @endif {{ _t('bottom', $lang) }} @if($carGuess) {{ getTotalTaxesforCarDrop($carGuess->accident_id, 'BOTTOM') . '%'}} @endif @if($carGuess) {{ number_format($carGuess->car_price * (getTotalTaxesforCarDrop($carGuess->accident_id, 'BOTTOM') / 100), 2) }} @endif
{{ _t('right', $lang) }} @if($carGuess) {{ getTotalCostForMaintenance($carGuess->accident_id, 'RIGHT')}} @endif {{ _t('right', $lang) }} @if($carGuess) {{ getTotalCostForBodyMaintenance($carGuess->accident_id, 'RIGHT') }} @endif {{ _t('right', $lang) }} @if($carGuess) {{ getTotalTaxesforCarDrop($carGuess->accident_id, 'RIGHT') . '%'}} @endif @if($carGuess) {{ number_format($carGuess->car_price * (getTotalTaxesforCarDrop($carGuess->accident_id, 'RIGHT') / 100), 2) }} @endif
{{ _t('left', $lang) }} @if($carGuess) {{ getTotalCostForMaintenance($carGuess->accident_id, 'LEFT')}} @endif {{ _t('left', $lang) }} @if($carGuess) {{ getTotalCostForBodyMaintenance($carGuess->accident_id, 'LEFT') }} @endif {{ _t('left', $lang) }} @if($carGuess) {{ getTotalTaxesforCarDrop($carGuess->accident_id, 'LEFT') . '%'}} @endif @if($carGuess) {{ number_format($carGuess->car_price * (getTotalTaxesforCarDrop($carGuess->accident_id, 'LEFT') / 100), 2) }} @endif
{{ _t('summation', $lang) }} @if($carGuess) {{ getTotalCostForMaintenance($carGuess->accident_id) }} @endif {{ _t('summation', $lang) }} @if($carGuess) {{ getTotalCostForBodyMaintenance($carGuess->accident_id) }} @endif {{ _t('summation', $lang) }} @if($carGuess) {{ getTotalTaxesforCarDrop($carGuess->accident_id) . ' %' }} @endif @if($carGuess) {{ number_format($carGuess->car_price * (getTotalTaxesforCarDrop($carDropList[0]->accident_id) / 100) ,2) }} @endif
@if( request('WorkTypeConst') == "TECHNICAL") @else @endif
{{ _t('all_damage_percentage', $lang) }} @if($carGuess) {{ number_format((((getTotalCostForBodyMaintenance($carGuess->accident_id) + getTotalCostForMaintenance($carGuess->accident_id) + getTotalCostForMechanicMaintenance($carGuess->accident_id)) / ($carGuess->car_price)) * 100), 2)}} % @endif
@if( request('WorkTypeConst') == "TECHNICAL") {{ $lang == "ar" ? 'نسبة الضرر الفني' : ($lang == "hebrew" ? 'אחוז הנזק הטכני' : ($lang == "en" ? 'percentage of technical damage': "")) }} @else {{ _t('drop_percentage_value', $lang) }} @endif @if($carGuess) {{ getTotalTaxesforCarDrop($carGuess->accident_id) }} % @endif
{{ _t('car_cost', $lang) }} @if($carGuess) {{ $carGuess->car_price }} @endif
{{ _t('all_cost', $lang) }} @if($carGuess) {{ ((getTotalCostForBodyMaintenance($carGuess->accident_id) + getTotalCostForMaintenance($carGuess->accident_id) + getTotalCostForMechanicMaintenance($carGuess->accident_id))) }} @endif
{{ _t('dropCar_cost_summation', $lang) }} @if($carGuess) {{ $carGuess->car_price * (getTotalTaxesforCarDrop($carDropList[0]->accident_id) / 100) }} @endif
{{ _t('allSummation', $lang) }} @if($carGuess) {{ ((getTotalCostForBodyMaintenance($carGuess->accident_id) + getTotalCostForMaintenance($carGuess->accident_id) + getTotalCostForMechanicMaintenance($carGuess->accident_id))) + $carGuess->car_price * (getTotalTaxesforCarDrop($carDropList[0]->accident_id) / 100) }} @endif

@endsection