@php use App\Services\CommonService as Common; $branchInfo = DB::table('gnl_branchs') ->where([['is_delete', 0], ['is_active', 1], ['id', Common::getBranchId()]]) ->select('id', 'branch_name','branch_addr', 'branch_code') ->first(); $companyInfo = DB::table('gnl_companies') ->where([['is_delete', 0], ['is_active', 1], ['id', Common::getCompanyId()]]) ->select('id', 'comp_name','comp_addr','comp_logo') ->first(); $serviceCharge = (!empty(Request::input('withServiceCharge'))) ? Request::input('withServiceCharge') : null; // dd($serviceCharge); @endphp {{-- d-print-block ### if use this class header alignement broken in print page --}}
@if(!empty($companyInfo->comp_logo) && file_exists($companyInfo->comp_logo)) @endif
@if(isset($companyAddShow) && $companyAddShow) @endif
{{ $companyInfo->comp_name }}
{{ $companyInfo->comp_addr }}
@if(isset($branchName) && $branchName) {{ $branchName }} @else {{ $branchInfo->branch_name . " [" . $branchInfo->branch_code . "]" }} @endif
@if(isset($reportTitle) && $reportTitle)
{{ $reportTitle }} @if($serviceCharge == 'yes') - With Service Charge @elseif($serviceCharge == 'no') - Without Service Charge @endif
@endif
@if(isset($printIcon) && $printIcon)
@if(isset($incompleteBranch) && $incompleteBranch) @endif @if(isset($printDate) && $printDate)
Printed Date: {{ (new Datetime())->format('d-m-Y') }}
@endif
@endif {{-- @if(isset($printDate) && $printDate)
Printed Date: {{ (new Datetime())->format('d-m-Y') }}
@endif --}}