@use('App\Services\Date') @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="direction:ltr; width: 100%; max-width: 100%; box-sizing: border-box;" @else style="direction:rtl; width: 100%; max-width: 100%; box-sizing: border-box;" @endif> @if($is_student) @include('draft') @endif
{{__('sales::invoices.Reference ID')}} :
{{$invoiceReturn->reference}}
{{__('sales::invoices.bill_date')}} :
{{ Date::format($invoiceReturn->date)}}
{{__('sales::invoices.Customer')}} :
{{$invoiceReturn->customer->name}}
@if($formDesign->customer_phone_number)
@lang('sales::estimates.phone') :
@php $mobile = $invoiceReturn->customer->mobile ? str_replace("+", "00", App\Enums\PhoneCode::get($invoiceReturn->customer->country_code)) . '-' . $invoiceReturn->customer->mobile : '' @endphp
@endif @if($formDesign->customer_email)
@lang('sales::estimates.email') :
@endif
@if($formDesign->payment_account)
{{__('sales::invoices.Payment Account')}}:
{{$invoiceReturn->paymentAccount->name ?? ''}}
@endif @if($formDesign->payment_term)
{{__('sales::invoices.payment_term')}}:
{{$invoiceReturn->paymentTerm ? $invoiceReturn->paymentTerm->name : __('sales::invoices.cash')}}
@endif @if($formDesign->cost_center)
{{__('products::cost_center.Cost Center')}} :
{{$costCenter?$costCenter['code'] . ' - ' . $costCenter['name_' . app()->getLocale()]: __('products::cost_center.main center') }}
@endif @if($formDesign->description)
{{__('sales::invoices.Description')}} :
{{$invoiceReturn->description }}
@endif @if($formDesign->customer_tax_number && $invoiceReturn->customer->tax_number)
{{__('sales::customers.Tax Number')}} :
{{$invoiceReturn->customer->tax_number}}
@endif @if($invoiceReturn->invoice)
{{__('sales::invoice_template.related_invoice')}} :
{{$invoiceReturn->invoice->reference}}
@endif
@isset($pdfPath)
@endisset