@extends('modules.reports.layout') @section('title','Body Parts Report') @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)}} | {{_t('release_date', $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}} | @if($carGuess) {{substr($carGuess->register_date, 0,10) }} @endif |
| {{_t('body_car_part_name', $lang)}} | {{_t('body_car_part_type', $lang)}} | {{_t('body_car_part_price', $lang)}} | {{----}} {{-- {{_t('side', $lang)}}--}} {{-- | --}}{{_t('count', $lang)}} | {{_t('cost', $lang)}} | {{_t('tax', $lang)}} | {{_t('part_code', $lang)}} |
|---|---|---|---|---|---|---|---|
| {{ $lang == "ar" ? $bodyPart->bodyPart->name_ar : ($lang == "hebrew" ? $bodyPart->bodyPart->name_hebrew : ($lang == "en" ? $bodyPart->bodyPart->name_en: "")) }} | {{_t($bodyPart->part_type, $lang)}} | {{$bodyPart->part_price}} | {{----}} {{-- {{ _t(strtolower($bodyPart->maintenance_side), $lang) }}--}} {{-- | --}}{{$bodyPart->part_number}} | @php $cost = floatval($bodyPart->part_price) * intval($bodyPart->part_number); $summation = $summation + $cost; $taxSummation = $taxSummation + ($cost * ($bodyPart->tax/100)); $consumption_taxSummation = $consumption_taxSummation + ($cost * ($bodyPart->consumption_tax/100)); @endphp {{$cost}} | {{$bodyPart->tax}} % | {{$bodyPart->industry_part_number}} |
| {{ _t('summation', $lang) }} | {{ $summation }} | |
|---|---|---|
| {{ _t('tax', $lang) }} | {{ $taxSummation }} | |
| {{ _t('summation_with_tax', $lang) }} | {{ $summation + $taxSummation}} | |
| {{ _t('consumption_tax', $lang) }} | {{ $consumption_taxSummation }} | |
| {{ _t('cost_to_pay', $lang) }} | {{ $summation + $taxSummation + $consumption_taxSummation }} | |