@extends('layouts/acc_layout') @section('title', '| Rent Register') @section('content') @include('successMsg')
{!! Form::open(array('url' => '','id'=>'entryForm', 'role' => 'form', 'class'=>'form-horizontal form-groups')) !!}
Rent Agreement
General Part:

{{---------------------------------------- Start of 1st coloum -----------------------------------------------}}
{!! Form::label('companyId', 'Company:', ['class' => 'col-sm-3 control-label']) !!}
@php $companyId = DB::table('gnr_company')->select('name')->where('id', $rentAgreementInfo->companyIdFk)->first(); @endphp
{!! Form::label('projectId', 'Project:', ['class' => 'col-sm-3 control-label']) !!}
@php $projectId = DB::table('gnr_project')->select('name','projectCode')->where('id', $rentAgreementInfo->projectIdFk)->first(); @endphp
{!! Form::label('projectTypeId', 'Project Type:', ['class' => 'col-sm-3 control-label']) !!}
@php $projectTypeId = DB::table('gnr_project_type')->select('name','projectTypeCode')->where('id', $rentAgreementInfo->projectTypeIdFk)->first(); @endphp
{!! Form::label('branchId', 'Branch:', ['class' => 'col-sm-3 control-label']) !!}
@php $branchId = DB::table('gnr_branch')->select('name','branchCode')->where('id', $rentAgreementInfo->branchIdFk)->first(); @endphp
{!! Form::label('orgSignatory', 'Org. Representative:', ['class' => 'col-sm-3 control-label']) !!}

Fatal error: Uncaught Error: Class "DB" not found in /home/shikkhaplus/public_html/demo_bk/resources/views/accounting/register/rentRegister/viewItem.blade.php:78 Stack trace: #0 {main} thrown in /home/shikkhaplus/public_html/demo_bk/resources/views/accounting/register/rentRegister/viewItem.blade.php on line 78