@extends('layouts/acc_layout') @section('title', '| Bank Account Register') @section('content') @include('successMsg')
Add Bank Account
@if($BankAcRegisters->approveStatus == 0)
{!! Form::open(array('url' => '','id'=>'entryForm', 'role' => 'form', 'class'=>'form-horizontal form-groups')) !!}
{!! Form::label('projectId', 'Project:', ['class' => 'col-sm-3 control-label']) !!}
@php $projectIds = DB::table('gnr_project')->select('id','name','projectCode')->get(); @endphp

{!! Form::label('projectTypeId', 'Project Type:', ['class' => 'col-sm-3 control-label']) !!}
@php $projectTypeIds = DB::table('gnr_project_type')->select('id','name','projectTypeCode')->get(); @endphp

{!! Form::label('branchId', 'Assign Branch:', ['class' => 'col-sm-3 control-label']) !!}
@php $branchIds = DB::table('gnr_branch')->selectRaw('id, CONCAT(LPAD(branchCode, 3, "0"), " - ", name) AS formatted_branch')->get(); $branchArray = json_decode(json_encode($branchIds), true); array_unshift($branchArray, ['id' => 0, 'formatted_branch' => 'All (with HO)']); array_unshift($branchArray, ['id' => -1, 'formatted_branch' => 'All (without HO)']); $branchIds = json_decode(json_encode($branchArray)); //dd($branchIds); @endphp

{!! Form::label('operateBranchId', 'Operate Branch:', ['class' => 'col-sm-3 control-label']) !!}
@php $operateBranchIds = DB::table('gnr_branch')->selectRaw('id, CONCAT(LPAD(branchCode, 3, "0"), " - ", name) AS formatted_branch')->get(); $branchArray = json_decode(json_encode($operateBranchIds), true); array_unshift($branchArray, ['id' => 0, 'formatted_branch' => 'All (with HO)']); array_unshift($branchArray, ['id' => -1, 'formatted_branch' => 'All (without HO)']); $operateBranchIds = json_decode(json_encode($branchArray)); // dd($branchIds); @endphp

{!! Form::label('ledgerId', 'Ledger Account:', ['class' => 'col-sm-3 control-label']) !!}
@php $ledgerAccounts = DB::table('acc_account_ledger') ->where('accountTypeId', 5) ->orderBy('code', 'asc') ->select(DB::raw("CONCAT(code, ' - ', name) AS nameWithCode"), 'id') ->get(); @endphp

{!! Form::label('acTypeId', 'Account Type:', ['class' => 'col-sm-3 control-label']) !!}

Fatal error: Uncaught Error: Class "DB" not found in /home/shikkhaplus/public_html/morning_bird_bk/resources/views/accounting/bankAc/bankAcRegister/editItem.blade.php:140 Stack trace: #0 {main} thrown in /home/shikkhaplus/public_html/morning_bird_bk/resources/views/accounting/bankAc/bankAcRegister/editItem.blade.php on line 140