@extends('admin.partials.master-header') @php // if($extra['is_official'] == 0) // { // $un_official = 'un_official_'; // } // else { // $un_official =''; // } $unofficial_permission = CommonHelper::getBranchSettings($extra['branch']->id,'is_unofficial_payment_vouchers'); $is_unofficial = $items->is_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_payment_voucher')) @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_payment_voucher')) @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_payment_voucher')) @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_payment_voucher')) @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_payment_voucher')) @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_payment_voucher')) @else @endif
@if($unofficial_permission && $is_unofficial == 0) @endif @if($unofficial_permission && $is_unofficial == 1) @endif @if(!$unofficial_permission) @if(!empty(config('settings.company_logo') && file_exists(public_path(config('settings.company_logo'))))) @endif @endif @include('admin.partials.pdf-image-show', ['imge_url' => $extra['branch']->img_url,'width'=>'max-width:120px'])

Voucher No.

{{ $extra['document_no'] }}

@if(CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'barcode_on_payment_voucher')) @php $generator = new Picqer\Barcode\BarcodeGeneratorPNG(); echo ''; @endphp @elseif(CommonHelper::getBranchSettings($extra['branch']->id, 'QR_code_on_payment_voucher'))
@php $data = ' Membership NO = "'.$sell_details->registration_no.'" Customer = "'.$customer_name.'" Phone no = "'.$sell_details->customer->phone.'" CNIC NO = "'.$customerNic[0].'" Sale Date = "'.date(config('settings.date_format'), strtotime($sell_details->sale_date_v2)).'" Unit NO ="'.$product->product_unique_id.' '; $QR = QrCode::size(70) ->generate($data); echo ''; @endphp @endif

Voucher No.

{{ $extra['document_no'] }}

@if(CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'barcode_on_payment_voucher')) @php $generator = new Picqer\Barcode\BarcodeGeneratorPNG(); echo ''; @endphp @elseif(CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'QR_code_on_payment_voucher'))
@php $data = ' Membership NO = "'.$sell_details->registration_no.'" Customer = "'.$customer_name.'" Phone no = "'.$sell_details->customer->phone.'" CNIC NO = "'.$customerNic[0].'" Sale Date = "'.date(config('settings.date_format'), strtotime($sell_details->sale_date_v2)).'" Unit NO ="'.$product->product_unique_id.' '; $QR = QrCode::size(70) ->generate($data); echo ''; @endphp @endif
@if(CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'company_name_on_payment_voucher') ) @if($unofficial_permission && $is_unofficial == 0)

{{ $unofficial_company_name}}

@endif @if($unofficial_permission && $is_unofficial == 1)

{{ $official_company_name}}

@endif @if(!$unofficial_permission)

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

@endif @endif @if(CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'company_address_on_payment_voucher') ) @if($unofficial_permission && $is_unofficial == 0)

{{ $unofficial_company_address}}

@endif @if($unofficial_permission && $is_unofficial == 1)

{{ $official_company_address}}

@endif @if(!$unofficial_permission)

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

@endif

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

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

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

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

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

Voucher No.

{{ $extra['document_no'] }}

@if(CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'barcode_on_payment_voucher')) @php $generator = new Picqer\Barcode\BarcodeGeneratorPNG(); echo ''; @endphp @elseif(CommonHelper::getBranchSettings($extra['branch']->id, $un_official.'QR_code_on_payment_voucher'))
@php $data = ' Membership NO = "'.$sell_details->registration_no.'" Customer = "'.$customer_name.'" Phone no = "'.$sell_details->customer->phone.'" CNIC NO = "'.$customerNic[0].'" Sale Date = "'.date(config('settings.date_format'), strtotime($sell_details->sale_date_v2)).'" Unit NO ="'.$product->product_unique_id.' '; $QR = QrCode::size(70) ->generate($data); echo ''; @endphp @endif