@extends('layouts.default', ['appTopMenu' => true]) @php use App\Models\inventory\Purchase_model; @endphp @section('title','Dashboard') @push('scripts') @endpush @section('content')
@if (session('status'))
{!! session('status') !!}
@elseif(session('failed'))
{{ session('failed') }}
@endif @if(\Session::has('success'))
{{\Session::get('success')}}
@endif {{ Form::open(array('name'=>'budgetReportForm','url' => 'budget/report', 'class'=>'form-horizontal' ,'method' => 'POST')) }}
Search Budget Details Form
{!! Form::Label('Cheque / Bank Ref No.', 'Cheque / Bank Ref No.') !!} {{ $errors->first('cheque_no') }}
{!! Form::Label('', '') !!}
{{ Form::close() }} @if (!empty($cheque_details))
Cheque /Bank Ref No. Details
@foreach ($cheque_details as $data) {{$balance_amount=$data->budget-$data->p_amount}} @endforeach
Cheque /Bank Ref No.--- {{Request::input('cheque_no')}}
# Cheque /Bank Ref No Amount Sanction Letter No & Date Purpose Purpose Amount Utilized Amount Balance Amount Remark
{{ $loop->iteration }} {{ $data->cheque_no }} {{ $data->c_amount }} {{ $data->letter_no }} || {{ \Carbon\Carbon::parse($data->letter_date)->format('d-m-Y') }} {{ $data->pname }} {{ $data->budget}} {{ $data->p_amount }} {{ $balance_amount }} {{ $data->remark }}
@endif
@endsection