@php $unofficial_permission = CommonHelper::getBranchSettings($extra['branch']->id,'is_unofficial_payment_vouchers'); $is_unofficial = $items['item']->is_official ?? $item->is_official ?? $actual_received->is_official; $un_official = 'un_official_'; if($is_unofficial == 1) { $un_official = ''; } $official_company_logo = $extra['branch']->official_company->logo; $official_company_name = $extra['branch']->official_company->name; $official_company_address = $extra['branch']->official_company->address; $unofficial_company_logo = $extra['branch']->unofficial_company->logo; $unofficial_company_name = $extra['branch']->unofficial_company->name; $unofficial_company_address = $extra['branch']->unofficial_company->address; @endphp @if (CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'company_logo_setting') && CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'company_logo_position') == 'left' && CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'company_logo_on_receipt')) @elseif(CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'branch_logo_setting') && CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'branch_logo_position') == 'left' && CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'branch_logo_on_receipt')) @elseif(CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'branch_logo_setting') && CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'branch_logo_position') == 'right' && CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'branch_logo_on_receipt')) @elseif(CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'company_logo_setting') && CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'company_logo_position') == 'right' && CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'company_logo_on_receipt')) @else @endif @if (CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'company_logo_setting') && CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'company_logo_position') == 'right' && CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'company_logo_on_receipt')) @elseif(CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'branch_logo_setting') && CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'branch_logo_position') == 'right' && CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'branch_logo_on_receipt')) @else @endif
@if(!empty(config('settings.company_logo') && file_exists(public_path(config('settings.company_logo'))))) @endif @include('admin.partials.pdf-image-show', ['imge_url' => $extra['branch']->img_url,'width'=>'max-width:120px'])

Voucher No.

{{ $extra['document_no'] }}

{{-- @if($data['branch']->barcode_setting == 1) --}} @if(CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'barcode_on_receipt')) @php $generator = new Picqer\Barcode\BarcodeGeneratorPNG(); echo ''; @endphp @elseif(CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'QR_code_on_receipt'))
@php if($extra['receipt_type'] == 'general') { $data = 'Receipt No = "'.$extra['document_no'].'"'; } else { $data = ' Membership NO = "'.$sell->registration_no.'" Customer = "'.$sell->customer->name.'" Phone no = "'.$sell->customer->phone.'" Sale Date = "'.date(config('settings.date_format'), strtotime($sell->sale_date_v2)).'" Unit NO ="'.$sell->product->product_unique_id.' '; } $QR = QrCode::size(70) ->generate($data); echo ''; @endphp @endif {{-- @endif --}}

Voucher No.

{{ $extra['document_no'] }}

{{-- @if($data['branch']->barcode_setting == 1) --}} @if(CommonHelper::getBranchSettings($extra['branch']->id, 'barcode_on_receipt')) @php $generator = new Picqer\Barcode\BarcodeGeneratorPNG(); echo ''; @endphp @elseif(CommonHelper::getBranchSettings($extra['branch']->id, 'QR_code_on_receipt'))
@php if($extra['receipt_type'] == 'general') { $data = 'Receipt No = "'.$extra['document_no'].'"'; } else { $data = ' Membership NO = "'.$sell->registration_no.'" Customer = "'.$sell->customer->name.'" Phone no = "'.$sell->customer->phone.'" Sale Date = "'.date(config('settings.date_format'), strtotime($sell->sale_date_v2)).'" Unit NO ="'.$sell->product->product_unique_id.' '; } $QR = QrCode::size(70) ->generate($data); echo ''; @endphp @endif {{-- @endif --}}
@if(CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'company_name_on_receipt') )

{{ config('settings.company_name')}}

@endif @if(CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'company_address_on_receipt') )

{{ config('settings.address_1')}} {{ config('settings.address_2')}} {{ config('settings.city')}}

@endif @if(CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'branch_name_on_receipt') )

{{ $extra['branch']->name }}

@endif @if(CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'branch_address_on_receipt') )

{{ $extra['branch']->location }}

@endif
@if(!empty(config('settings.company_logo') && file_exists(public_path(config('settings.company_logo'))))) @endif @include('admin.partials.pdf-image-show', ['imge_url' => $extra['branch']['img_url'],'width'=>'max-width:120px'])

Voucher No.

{{ $extra['document_no'] }}

{{-- @if($data['branch']->barcode_setting == 1) --}} @if(CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'barcode_on_receipt')) @php $generator = new Picqer\Barcode\BarcodeGeneratorPNG(); echo ''; @endphp @elseif(CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'QR_code_on_receipt'))
@php if($extra['receipt_type'] == 'general') { $data = 'Receipt No = "'.$extra['document_no'].'"'; } else { $data = ' Membership NO = "'.$sell->registration_no.'" Customer = "'.$sell->customer->name.'" Phone no = "'.$sell->customer->phone.'" Sale Date = "'.date(config('settings.date_format'), strtotime($sell->sale_date_v2)).'" Unit NO ="'.$sell->product->product_unique_id.' '; } $QR = QrCode::size(70) ->generate($data); echo ''; @endphp @endif {{-- @endif --}}