@extends('layouts/gnr_layout') @section('title', '| Branch') @section('content') @include('successMsg') @php $branchIdsFromEmployeeTable = DB::table('hr_emp_org_info')->distinct()->pluck('branch_id_fk')->toArray(); $branchIdsFromLedgerTable = array(); $ledgers = DB::table('acc_account_ledger')->select('projectBranchId')->get(); foreach ($ledgers as $ledger) { $projectBranchIdString = str_replace(["[","]","\""],"",$ledger->projectBranchId); $firstResultArray = explode(',',$projectBranchIdString); foreach ($firstResultArray as $firstResult) { $secondResultArray = explode(':',$firstResult); array_push($branchIdsFromLedgerTable, (int) $secondResultArray[1]); } } $branchIdsFromLedgerTable = array_unique($branchIdsFromLedgerTable); $branchIdsFromLedgerTable = array_diff($branchIdsFromLedgerTable,[0]); $foreignBranchIds = array_merge($branchIdsFromEmployeeTable, $branchIdsFromLedgerTable); $foreignBranchIds = array_unique($foreignBranchIds); @endphp

BRANCH LIST

{{ csrf_field() }} @foreach($branchs as $branch) @endforeach
SL# B. Code Branch Name Contact Person Phone Address B. Start Date S. Start Date L. Day End Close Status Action
{{++$no}} {{$branch->branchCode}}  {{$branch->name}}  {{$branch->contactPerson}} {{$branch->phone}}  {{$branch->address}}
Warning: Undefined variable $branch in /home/shikkhaplus/public_html/resources/views/gnr/tools/companySetting/branch/viewBranch.blade.php on line 85

Warning: Attempt to read property "branchOpeningDate" on null in /home/shikkhaplus/public_html/resources/views/gnr/tools/companySetting/branch/viewBranch.blade.php on line 85

Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /home/shikkhaplus/public_html/resources/views/gnr/tools/companySetting/branch/viewBranch.blade.php on line 86
1970-01-01

Warning: Undefined variable $branch in /home/shikkhaplus/public_html/resources/views/gnr/tools/companySetting/branch/viewBranch.blade.php on line 91

Warning: Attempt to read property "softwareStartDate" on null in /home/shikkhaplus/public_html/resources/views/gnr/tools/companySetting/branch/viewBranch.blade.php on line 91

Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /home/shikkhaplus/public_html/resources/views/gnr/tools/companySetting/branch/viewBranch.blade.php on line 92
1970-01-01
1
Warning: Undefined variable $branch in /home/shikkhaplus/public_html/resources/views/gnr/tools/companySetting/branch/viewBranch.blade.php on line 98

Warning: Attempt to read property "status" on null in /home/shikkhaplus/public_html/resources/views/gnr/tools/companySetting/branch/viewBranch.blade.php on line 98
  @php if (in_array($branch->id, $foreignBranchIds)) { $canDelete = 0; } else{ $canDelete = 1; } @endphp