@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 --}}
{{ $companyInfo->comp_name }} |
{{ $companyInfo->comp_addr }} |
@if(isset($branchName) && $branchName) {{ $branchName }} @else {{ $branchInfo->branch_name . " [" . $branchInfo->branch_code . "]" }} @endif |