@extends('sales::layouts.exporting.print.master-local-style') @section('title', __('sales::invoice_returns.show_invoice_return')) @section('koolreport') @php $color = ($formDesign->color ?? getenv('DEFAULT_INVOICE_COLOR')); $subdomain = request()->route()->parameter('subdomain'); $is_student = app(\Hyn\Tenancy\Repositories\HostnameRepository::class)->findByHostname($subdomain)->website->company->is_student; @endphp
getLocale() == 'en') style="position:relative; direction:ltr;" @else style="position:relative; direction:rtl;" @endif> @if($is_student) @include('draft') @endif
{{__('sales::invoices.Reference ID')}} :
{{$billReturn->reference}}
@if (isset($billReturn->supplier_invoice_reference_number))
{{__('purchases::bill_returns.Supplier Invoice Reference Number')}} :
{{isset($billReturn)? $billReturn->supplier_invoice_reference_number : ""}}
@endif
{{__('sales::invoices.bill_date')}} :
{{ $billReturn->formatDate($billReturn->date)}}
{{__('sales::invoices.Customer')}} :
{{$billReturn->supplier->name}}
@if($formDesign->customer_phone_number)
@lang('sales::estimates.phone') :
@php $mobile = $billReturn->customer->mobile ? str_replace("+", "00", App\Enums\PhoneCode::get($billReturn->customer->country_code)) . '-' . $billReturn->customer->mobile : '' @endphp
@endif @if($formDesign->customer_email)
@lang('sales::estimates.email') :
@endif
@if($formDesign->payment_account)
{{__('sales::invoices.Payment Account')}}:
{{$billReturn->paymentAccount->name ?? ''}}
@endif @if($formDesign->payment_term)
{{__('sales::invoices.payment_term')}}:
{{$billReturn->paymentTerm ? $billReturn->paymentTerm->name : __('sales::invoices.cash')}}
@endif @if($formDesign->cost_center)
{{__('products::cost_center.Cost Center')}} :
@php $costCenter = $billReturn->trashedCostCenter @endphp
{{$costCenter?$costCenter['code'] . ' - ' . $costCenter['name_' . app()->getLocale()]: __('products::cost_center.main center') }}
@endif @if($formDesign->description)
{{__('sales::invoices.Description')}} :
{{$billReturn->description }}
@endif @if($formDesign->customer_tax_number && $billReturn->customer->tax_number)
{{__('sales::customers.Tax Number')}} :
{{$billReturn->customer->tax_number}}
@endif
@isset($pdfPath)
@endisset
@php $counterOfColumn=8; if(!$formDesign->product_description) { $counterOfColumn--; } if(!$formDesign->discount) { $counterOfColumn--; } if(!$formDesign->tax_amount) { $counterOfColumn--; } if(!$formDesign->product_image) { $counterOfColumn--; } $description = $formDesign->product_description; @endphp @if($formDesign->discount) @endif @if($formDesign->tax_amount) @endif @if(isset($billReturn->billReturnDetails) && count($billReturn->billReturnDetails) > 0 ) @foreach($billReturn->billReturnDetails as $record) @if($formDesign->product_image) @endif @if($description && count($checkDesc) > 0) @endif @if($formDesign->discount) @endif @if($formDesign->tax_amount) @endif @endforeach @endif
@lang('purchases::bill_returns.product_name') @lang('sales::invoices.qty') @lang('sales::invoices.unit_price')@lang('sales::invoices.discount')@lang('sales::invoices.vat') @lang('sales::invoices.vat_value')@lang('sales::invoices.Amount')
{{ $record->product->name }}
{{ $record->description }}{{ $record->quantity }} {{ number_format($record->price,2,".",",") }}{{ number_format($record->discount,2,".",",") }}{{ ($record->tax)?$record->tax->percentage:0 }} {{ number_format($record->vat_value,2,".",",") }} @if($formDesign->tax_status == \Modules\Settings\Enums\TaxStatusesEnum::INCLUDE_VAT) {{ number_format($record->total,2,".",",")}} @else {{ number_format($record->gross,2,".",",") }} @endif
@lang('sales::invoices.gross') :
{{ number_format($billReturn->total_amount,2,".",",") }} {!! __('settings::currencies.' . $billReturn->currency_code) !!}
@lang('sales::invoices.total_vat') :
{{ number_format($billReturn->total_vat,2,".",",") }} {!! __('settings::currencies.' . $billReturn->currency_code) !!}
@lang('sales::invoices.total_amount') :
{{ number_format($billReturn->total,2,".",",") }} {!! __('settings::currencies.' . $billReturn->currency_code) !!}
@if($formDesign->bank_name || $formDesign->account_name || $formDesign->iban)

{{ __('settings::forms_design.payment_information')}} :

@if($formDesign->bank_name)
{{ __('sales::estimates.bank_name')}} :
{{$formDesign->bank_name}}
@endif @if($formDesign->account_name)
{{__('settings::forms_design.account_name')}} :
{{$formDesign->account_name}}
@endif @if($formDesign->iban)
{{__('settings::forms_design.iban')}} :
{{$formDesign->iban}}
@endif @endif
@php $notes = $billReturn->notes ?? $formDesign->notes; $notes = filterImageTag($notes); @endphp @if( $formDesign->print_notes && !empty($notes))

{{ __('sales::estimates.notes') }} :

{!! $billReturn->notes ?? $formDesign->notes !!}

@endif
@php $terms=$billReturn->terms ?? $formDesign->terms; $terms = filterImageTag($terms); @endphp @if(!empty($terms))

{{ __('sales::estimates.terms_and_condition') }}

{!! $terms !!}

@endif
{{--
--}}
@if($formDesign->printing_language == \Modules\Settings\Enums\PrintingLanguagesEnum::BOTH_ENGLISH_ARABIC)