@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 }}

{{ $companyInfo->comp_addr }}

@if(isset($branchName) && $branchName) {{ $branchName }} @else {{ $branchInfo->branch_name . " (" . $branchInfo->branch_code . ")" }} @endif

@if(isset($reportTitle) && $reportTitle) {{ $reportTitle }} @endif
@if(isset($printIcon) && $printIcon)
@if(isset($incompleteBranch) && $incompleteBranch) @endif {{-- style="background-color:transparent;border:none;" --}}
@endif @if(isset($printDate) && $printDate)
Printed Date: {{ (new Datetime())->format('d-m-Y') }}
@endif