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