@extends('sales::layouts.exporting.print.master-local-style') @section('title', __('sales::proforma_invoices.show_proforma_invoices')) @section('koolreport') @foreach ($proformaInvoices as $proformaInvoice)
getLocale() == 'en') style="direction:ltr;padding-bottom: 5px;" @else style="direction:rtl;" @endif>
@if (app()->getLocale() == 'ar')

@lang('sales::proforma_invoices.proforma_invoice', [], 'ar')

@else

@lang('sales::proforma_invoices.proforma_invoice', [], 'en')

@endif
@php if(mb_strlen($settings->name) > 150){ $name = mb_substr($settings->name,0, 150,'utf-8')."..."; } else { $name = $settings->name; } @endphp
{{__('sales::estimates.name')}} :
{{$name}}
@if($settings->taxable && $settings->tax_id_number)
@if($subdomain == 'malazuae' || $subdomain == 'ezhalha')
{{__('sales::invoice_template.license_number')}}:
@else
{{__('settings::general_settings.vat number')}}:
@endif
{{$settings->tax_id_number}}
@endif
@if($settings->address)
@php if(mb_strlen($settings->address) > 100){ $address = mb_substr($settings->address ,0, 100,'utf-8')."..."; } else { $address = $settings->address; } @endphp
{{__('settings::general_settings.address')}} :
{!! str_replace("\r\n","
", $address) !!}
@endif @if($proformaInvoice['formDesign']->commercial_number && $settings->commercial_number && $settings->commercial_number != '0')
{{__('settings::general_settings.commercial number')}}:
{{$settings->commercial_number}}
@endif
getLocale() == 'ar') style="padding: 0px;" @else style="padding: 2px;" @endif> @if($settings->img) company logo @else
@endif
getLocale() == 'en') style="direction: initial;" @endif> {!! $proformaInvoice['formDesign']->header !!}
@php $color = $proformaInvoice['formDesign']->color ?? getenv('DEFAULT_PROFORMA_INVOICE_COLOR'); @endphp
getLocale() == 'en') style="direction:ltr;" @else style="direction:rtl;" @endif>
{{ __('sales::estimates.reference_id') }}:
{{ isset($proformaInvoice['proformaInvoice']) ? $proformaInvoice['proformaInvoice']->code : $proformaInvoice['formDesign']->reference }}
{{ __('sales::estimates.description') }} :
{{ isset($proformaInvoice['proformaInvoice']) ? $proformaInvoice['proformaInvoice']->description : '..................' }}
{{ __('sales::estimates.customer') }} :
{{ isset($proformaInvoice['proformaInvoice']) ? $proformaInvoice['proformaInvoice']->customer->name : '..................' }}
{{ __('sales::estimates.phone') }} :
@if (isset($proformaInvoice['proformaInvoice'])) @php $mobile = $proformaInvoice['proformaInvoice']->customer->mobile ? str_replace("+", "00", App\Enums\PhoneCode::get($proformaInvoice['proformaInvoice']->customer->country_code)) . '-' . $proformaInvoice['proformaInvoice']->customer->mobile : '' @endphp @else
..................
@endif
@if ($proformaInvoice['formDesign']->customer_email)
{{ __('sales::estimates.email') }}:
@if (isset($proformaInvoice['proformaInvoice'])) {{ $proformaInvoice['proformaInvoice']->customer->email }} @else .................. @endif
@endif @if ($proformaInvoice['formDesign']->customer_tax_number)
{{ __('sales::customers.Tax Number') }}:
{{ isset($proformaInvoice['proformaInvoice']) ? $proformaInvoice['proformaInvoice']->customer->tax_number : '..................' }}
@endif
{{ __('sales::estimates.issue_date') }} :
{{ isset($proformaInvoice['proformaInvoice']) ? $proformaInvoice['proformaInvoice']->formatDate($proformaInvoice['proformaInvoice']->issue_date) : '..................' }}
@php $counterOfColumn = 9; $totalAmountWithServices = 0; if (!$proformaInvoice['formDesign']->product_description) { $counterOfColumn--; } if (!$proformaInvoice['formDesign']->discount) { $counterOfColumn--; } if (!$proformaInvoice['formDesign']->unit) { $counterOfColumn--; } if (!$proformaInvoice['formDesign']->tax_amount) { $counterOfColumn--; } if (!$proformaInvoice['formDesign']->product_image) { $counterOfColumn--; } @endphp