@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' => 'misYearlyBudget/view/', 'role' => 'form', 'class'=>'form-horizontal form-groups', 'id' => 'viewBudgetForm', 'method'=>'get')) !!} {{-- // Projects --}}
{!! Form::label('projectId', 'Project:', ['class' => 'col-sm-12 control-label']) !!}
{!! Form::select('projectId', $projects, null ,['id'=>'filProject','class'=>'form-control input-sm','autocomplete'=>'off']) !!}

{{-- // Branches --}}
{!! Form::label('', 'Branch:', ['class' => 'control-label pull-left']) !!}
{!! Form::select('branchId', $branches, null ,['id'=>'filBranch','class'=>'form-control input-sm','autocomplete'=>'off']) !!}

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

{{-- // Types --}}
{!! Form::label('', 'Type:', ['class' => 'control-label pull-left']) !!}
{!! Form::select('typeId', array('all'=>'All') + $budgetTypes, null ,['id'=>'filType','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 $pageNumber = (!empty($_GET['page'])) ? (int)$_GET['page'] : 1; $no = ($pageNumber - 1) * 20; @endphp @if (count($budgets) == 0) @else @foreach($budgets as $key => $budget) {{-- --}} @endforeach @endif
SL# Project Branch Fiscal Year Budget Type Status Action
No Budget Available In This Search Range
{{ $loop->iteration }} {{ $projects[$budget['projectIdFk']]}} {{ $branches[$budget['branchIdFk']] }} {{ $fiscalYears[$budget['fiscalYearIdFk']] }} {{ ucfirst($budgetType) }} {{ ucfirst($budget['budgetType']) }} @if ($budget['softDel'] == 1) @else @endif {{-- budget details --}} {{-- --}} {{-- --}} {{-- // VIEW DETAILS --}}   {{-- // EDIT --}} {{-- approve budget --}} {{-- --}} {{-- edit budget --}} {{-- --}}   {{-- Delete budget --}} {{-- --}}
{{--
{{ $budgets->links() }}
--}}
{{-- modal div --}} {{-- budget approve modal --}}
@endsection