@extends('sales::layouts.exporting.print.master') @php $subdomain = request()->route()->parameter('subdomain'); $is_student = app(\Hyn\Tenancy\Repositories\HostnameRepository::class)->findByHostname($subdomain)->website->company->is_student; @endphp @section('title', __('sales::customer_receipts.Show Customer Receipt')) @section('extra-styles') @endsection @section('koolreport')
getLocale() == 'en') style="float: left; padding-right: 5%;" @endif class="col-xs-4 font-large-1">

@lang('sales::customer_receipts.Show Customer Receipt Print',[],'en')

@lang('sales::customer_receipts.Show Customer Receipt Print',[],'ar')

getLocale() == 'en') style="direction: initial;" @endif class="col-xs-8"> {!! $customerPaymentReceipt->formDesign->header !!}
@if($is_student) @include('draft') @endif
{{__('sales::customer_receipts.Reference ID')}} {{$customerPaymentReceipt->reference}} {{__('sales::customer_receipts.Payment Account')}} {{$customerPaymentReceipt->account->name}}
{{__('sales::customer_receipts.Payment Date')}} {{$customerPaymentReceipt->formatDate($customerPaymentReceipt->date)}} {{__('sales::customer_receipts.Kind')}} {{ Modules\Purchases\Enums\PaymentReceiptTypesEnum::toString($customerPaymentReceipt->kind)}}
{{__('sales::customer_receipts.Customer')}} {{$customerPaymentReceipt->customer->name}} {{__('products::cost_center.Cost Center')}}
{{$costCenter?$costCenter['code'] . ' - ' . $costCenter['name_' . app()->getLocale()]: __('products::cost_center.main center') }}
@lang('sales::customer_receipts.Amount') {{ ($customerPaymentReceipt->paid_amount < 0 ) ? '(' . abs($customerPaymentReceipt->paid_amount ) . ')' : $customerPaymentReceipt->paid_amount }} {{__('sales::customer_receipts.Description')}}
{{ $customerPaymentReceipt->description }}
@if(count($customerPaymentReceipt->payments)) @if($customerPaymentReceipt->kind == Modules\Purchases\Enums\PaymentReceiptTypesEnum::PAID) @php $permission = 'sales.invoice-returns.view'; @endphp @elseif($customerPaymentReceipt->kind == Modules\Purchases\Enums\PaymentReceiptTypesEnum::RECEIVED) @php $permission = 'sales.invoices.view'; @endphp @endif @can($permission)

@lang('sales::customer_receipts.Assigned Bills')

@if($customerPaymentReceipt->kind == Modules\Purchases\Enums\PaymentReceiptTypesEnum::PAID) @elseif($customerPaymentReceipt->kind == Modules\Purchases\Enums\PaymentReceiptTypesEnum::RECEIVED) @endif @foreach($customerPaymentReceipt->payments as $key => $payment) @endforeach
@lang('sales::invoice_returns.Reference ID') @lang('sales::invoice_returns.Amount')@lang('sales::invoices.Reference ID') @lang('sales::invoices.Amount')
{{$payment['reference']}} {{$payment['total']}}
@endcan @endif
@php $terms=$customerPaymentReceipt->terms ?? $customerPaymentReceipt->formDesign->terms ; @endphp @if(!is_null($terms))
{{ __('sales::customer_receipts.terms_and_condition') }}
{!! $terms !!}
@endif @php $notes=$customerPaymentReceipt->notes ?? $customerPaymentReceipt->formDesign->notes; @endphp @if( $customerPaymentReceipt->formDesign->print_notes && !empty($notes))
{{ __('sales::customer_receipts.notes') }}
{!! $notes !!}
@endif
getLocale() == 'en') style="direction: initial !important;" @endif id="footer-for-print" class="container-fluid">
{!! $customerPaymentReceipt->formDesign->footer !!}
@if($customerPaymentReceipt->formDesign->printing_language == \Modules\Settings\Enums\PrintingLanguagesEnum::BOTH_ENGLISH_ARABIC)