@extends('modules.reports.layout') @section('title','Insurance Company Finance') @section('content')

{{ $lang == "ar" ? 'كشف حساب شركة تأمين' : ($lang == "hebrew" ? 'פירוט חשבון של חברת ביטוח' : ($lang == "en" ? 'Insurance company account statement': "")) }}


@if($insuranceCompanyData != "all")
{{ _t('insurance_company', $lang) }} @if($insuranceCompanyData) {{ $lang == "ar" ? $insuranceCompanyData->name_ar : ($lang == "hebrew" ? $insuranceCompanyData->name_hebrew : ($lang == "en" ? $insuranceCompanyData->name_en: "")) }} @endif
@endif
@if($insuranceCompanyData == "all") @endif @php $estomatorCostSummation = 0; $allSummation = 0; $invoiceSummation = 0; @endphp @foreach($data as $item) @php $summation = 0 @endphp @if($insuranceCompanyData == "all") @endif @endforeach {{-- --}}
{{_t('insurance_company', $lang)}} {{_t('car_number', $lang)}} {{_t('file_number', $lang)}} {{_t('claim', $lang)}} {{_t('limit', $lang)}} {{_t('estimator_costs', $lang)}} {{_t('invoice_number', $lang)}} {{_t('invoice_cost', $lang)}} {{_t('discount', $lang)}} {{_t('cheque_number', $lang)}} {{_t('cheque_date', $lang)}} {{_t('cheque_bank', $lang)}} {{_t('register_date', $lang)}}
{{ ($item->insurance_company != null && !empty($item->insurance_company)) ? ( $lang == "ar" ? ($item->insurance_company->name_ar ?? '') : ( $lang == "hebrew" ? ($item->insurance_company->name_hebrew ?? '') : ( $lang == "en" ? ($item->insurance_company->name_en ?? '') : '' ) ) ) : '' }} {{$item->accident->car->car_number ?? ''}} {{$item->file_number}} {{$item->claim}} {{\App\Modules\Accident\Constants\WorkTypeConst::ALL[$item->maintenance_type]}} {{ ( getTotalCostForMechanicMaintenance($item->accident_id) + getTotalCostForMaintenance($item->accident_id) + getTotalCostForBodyMaintenance($item->accident_id)) * ($item->estimator_tax / 100) }} @php $summation = $summation + ( getTotalCostForMechanicMaintenance($item->accident_id) + getTotalCostForMaintenance($item->accident_id) + getTotalCostForBodyMaintenance($item->accident_id))* ($item->estimator_tax / 100); $estomatorCostSummation = $estomatorCostSummation + ( getTotalCostForMechanicMaintenance($item->accident_id) + getTotalCostForMaintenance($item->accident_id) + getTotalCostForBodyMaintenance($item->accident_id))* ($item->estimator_tax / 100); @endphp {{ $item->invoice_number}} {{ $item->invoice_cost}} @php $invoiceSummation = $invoiceSummation + (float)$item->invoice_cost; @endphp {{$item->cheque_number}} {{$item->cheque_date}} {{$item->cheque_bank}} {{ substr($item->register_date, 0 ,10) }}
{{_t('allSummation', $lang)}} {{$estomatorCostSummation}} {{$allSummation}}
@endsection