@extends('layouts/acc_layout') @section('title', '| Budget') @section('content') @php $userId=Auth::user()->id; $userBranchId=Auth::user()->branchId; @endphp

Budget Lists

{!! Form::open(array('url' => 'viewBudget/', 'role' => 'form', 'class'=>'form-horizontal form-groups', 'id' => 'viewBudgetForm', 'method'=>'get')) !!} {!! Form::hidden('checkFirstLoad', 1) !!}
{!! Form::label('', 'Project:', ['class' => 'control-label pull-left']) !!}
{!! Form::select('filProject', $projects, $projectSelected ,['id'=>'filProject','class'=>'form-control input-sm','autocomplete'=>'off']) !!}

{!! Form::label('', 'Project Type:', ['class' => 'control-label pull-left']) !!}
{!! Form::select('filProjectType', $projectTypes, $projectTypeSelected ,['id'=>'filProjectType','class'=>'form-control input-sm','autocomplete'=>'off']) !!}

{!! Form::label('', 'Branch:', ['class' => 'control-label pull-left']) !!}
{!! Form::select('branchId', $branchLists, $branchIdSelected ,['id'=>'filBranch','class'=>'form-control input-sm custom-select2','autocomplete'=>'off']) !!}

{!! Form::label('', 'Fiscal Year:', ['class' => 'control-label pull-left']) !!}
{!! Form::select('fiscalYearId', $fiscalYears, $fiscalYearSelected ,['id'=>'fiscalYearId','class'=>'form-control input-sm','autocomplete'=>'off']) !!}

{!! Form::label('', '', ['class' => 'control-label col-sm-12']) !!}
{!! Form::submit('Search', ['id' => 'budgetSearchSubmit', 'class' => 'btn btn-primary btn-xs']); !!}
{!! Form::close() !!}
{{ csrf_field() }} @php if (!empty($_GET['page'])) { $pageNumber = (int)$_GET['page']; } else { $pageNumber = 1; } $slNo = ($pageNumber - 1) * 50; @endphp @foreach ($budgets as $budget) @endforeach
SL# Project Project Type Branch Fiscal Year Status Action
{{ ++$slNo }} {{ $projects[$budget->projectId] }} {{ $projectTypes[$budget->projectTypeId] }} {{ $branchLists[$budget->branchIdFk] }} {{ $fiscalYears[$budget->fiscalYearId] }} @if ($budget->status == 0) @else @endif {{-- view budget --}} {{-- approve budget --}} {{-- edit budget --}}   {{-- Delete budget --}}
{{ $budgets->appends(request()->input())->links() }}
{{-- modal div --}} {{-- budget approve modal --}}