@php use App\Services\CommonService as Common; $branchInfo = DB::table('gnl_branchs') ->where([['is_delete', 0], ['is_active', 1], ['is_approve', 1], ['id', Common::getBranchId()]]) ->select('id', 'branch_name','branch_addr', 'branch_code', 'branch_phone') ->first(); $companyInfo = DB::table('gnl_companies') ->where([['is_delete', 0], ['is_active', 1], ['id', Common::getCompanyId()]]) ->select('id', 'comp_name', 'comp_addr', 'comp_logo', 'bill_logo', 'logo_view_bill', 'logo_view_report', 'logo_report_width', 'logo_bill_width', 'logo_bill_width_pos', 'name_view_bill', 'name_view_report', 'br_add_view_bill') ->first(); @endphp
@if($companyInfo->logo_view_report == 1) @endif @if($companyInfo->name_view_report == 1) @endif @if ($companyInfo->br_add_view_bill == 1) @endif @if((isset($title) && $title) || (isset($reportTitle) && $reportTitle)) @endif

{{ $companyInfo->comp_name }}

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