@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(); @endphp {{-- d-print-block ### if use this class header alignement broken in print page --}}
{{ $companyInfo->comp_name }}
@if(isset($companyAddShow) && $companyAddShow){{ $companyInfo->comp_addr }}
@endif@if(isset($branchName) && $branchName) {{ $branchName }} @else {{ $branchInfo->branch_name . " [" . $branchInfo->branch_code . "]" }} @endif
@if(isset($reportTitle) && $reportTitle) {{ $reportTitle }} @endif