@extends('layouts/acc_layout') @section('title', '| Month Wise Expense Budget') @section('content') @php use App\Service\UserUtility; $hasAccessToViewAllProjects = UserUtility::hasAccessToViewAllProjects(); @endphp

Month Wise Expense Budget

@php $userAccessibleBranchIds = App\Service\Service::getEngagedBranchesByUserId(Auth::user()->id); if (Auth::user()->branchId ==1 ) { $branchOptions = ['All' => 'All (With HO)', '-1' => 'All (WithOut HO)']; } else{ $branchOptions = ['0' => 'All']; } $branchOptions = $branchOptions + DB::table('gnr_branch')->select(DB::raw("CONCAT(LPAD(branchCode, 3, 0), ' - ', name) AS nameWithCode"), 'id') ->whereIn('id', $userAccessibleBranchIds) ->pluck('nameWithCode', 'id') ->all(); $searchElements = [ ['element' => 'project', 'col' => 1, 'attributes' => ['print_order' => '1']], ['element' => 'project_type', 'col' => 1, 'attributes' => ['print_order' => '3']], ['element' => 'report_level', 'attributes' => ['print' => '0'], 'child_print' => '1', 'child_print_order' => 2], ['element' => 'branchId', 'options' => $branchOptions,'col' => 1, 'attributes' => ['print_order' => '2']], ['element' => 'acc_depth_level', 'col' => 1, 'attributes' => ['print' => '0']], ['element' => 'custom', 'type' => 'select', 'name' => 'withZero', 'id' => 'fillWithZero', 'options' => [1 => 'Yes', 0 => 'No'], 'label' => "'0' Balance:", 'col' => 1, 'attributes' => ['print' => '0']], ['element' => 'fiscal_year', 'col' => 1, 'attributes' => ['print' => '0']], ]; @endphp @include('partials.searchPanel.main', ['searchElements' => $searchElements])
@endsection