@php $unofficial_permission = CommonHelper::getBranchSettings($extra['branch']->id,'is_unofficial_payment_vouchers'); if(!userAllowedUnofficial()){ $unofficial_permission = 0; } $is_unofficial = $items['item']->is_official; if($is_unofficial == null) { $is_unofficial = $item->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, 'company_logo_setting') && CommonHelper::getBranchSettings($extra['branch']->id, 'company_logo_position') == 'left' && CommonHelper::getBranchSettings($extra['branch']->id, 'company_logo_on_jv')) @elseif(CommonHelper::getBranchSettings($extra['branch']->id, 'branch_logo_setting') && CommonHelper::getBranchSettings($extra['branch']->id, 'branch_logo_position') == 'left' && CommonHelper::getBranchSettings($extra['branch']->id, 'branch_logo_on_jv')) @elseif(CommonHelper::getBranchSettings($extra['branch']->id, 'branch_logo_setting') && CommonHelper::getBranchSettings($extra['branch']->id, 'branch_logo_position') == 'right' && CommonHelper::getBranchSettings($extra['branch']->id, 'branch_logo_on_jv')) @elseif(CommonHelper::getBranchSettings($extra['branch']->id, 'company_logo_setting') && CommonHelper::getBranchSettings($extra['branch']->id, 'company_logo_position') == 'right' && CommonHelper::getBranchSettings($extra['branch']->id, 'company_logo_on_jv')) @else @endif @if (CommonHelper::getBranchSettings($extra['branch']->id, 'company_logo_setting') && CommonHelper::getBranchSettings($extra['branch']->id, 'company_logo_position') == 'right' && CommonHelper::getBranchSettings($extra['branch']->id, 'company_logo_on_jv')) @elseif(CommonHelper::getBranchSettings($extra['branch']->id, 'branch_logo_setting') && CommonHelper::getBranchSettings($extra['branch']->id, 'branch_logo_position') == 'right' && CommonHelper::getBranchSettings($extra['branch']->id, 'branch_logo_on_jv')) @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.

{{ $data['parent']['jv_no'] }}

{{-- @if($data['branch']->barcode_setting == 1) --}} @if(CommonHelper::getBranchSettings($extra['branch']->id, 'barcode_on_jv')) @php $generator = new Picqer\Barcode\BarcodeGeneratorPNG(); echo ''; @endphp @elseif(CommonHelper::getBranchSettings($extra['branch']->id, 'QR_code_on_jv'))
@php $data = ' Voucher No = "'.$extra['document_no'].'"'; $QR = QrCode::size(70) ->generate($data); echo ''; @endphp @endif {{-- @endif --}}

Voucher No.

{{ $data['parent']['jv_no'] }}

{{-- @if($data['branch']->barcode_setting == 1) --}} @if(CommonHelper::getBranchSettings($extra['branch']->id, 'barcode_on_jv')) @php $generator = new Picqer\Barcode\BarcodeGeneratorPNG(); echo ''; @endphp @elseif(CommonHelper::getBranchSettings($extra['branch']->id, 'QR_code_on_jv'))
@php $data = ' Voucher No = "'.$extra['document_no'].'"'; $QR = QrCode::size(70) ->generate($data); echo ''; @endphp @endif {{-- @endif --}}
@if(CommonHelper::getBranchSettings($extra['branch']->id, 'company_name_on_jv') ) @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, 'company_address_on_jv') ) @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, 'branch_name_on_jv') )

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

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

{{ $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.

{{ $data['parent']['jv_no'] }}

{{-- @if($data['branch']->barcode_setting == 1) --}} @if(CommonHelper::getBranchSettings($extra['branch']->id, 'barcode_on_jv')) @php $generator = new Picqer\Barcode\BarcodeGeneratorPNG(); echo ''; @endphp @elseif(CommonHelper::getBranchSettings($extra['branch']->id, 'QR_code_on_jv'))
@php $data = ' Voucher No = "'.$extra['document_no'].'"'; $QR = QrCode::size(70) ->generate($data); echo ''; @endphp @endif {{-- @endif --}}