@extends('layouts.masterHome2')

@section('content')

@if (session()->has('message'))
<div class="row">
        <!-- left column -->
        <div class="col-md-2"></div>
        <div class="col-md-4 alert alert-success alert-dismissible" style="font-size:18px;font-weight:bold;width:400px;margin-left:15px">
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                {!! session('message') !!}
        </div>
</div> 
@endif

<div class="row" style="padding:10px">
<div class="col-md-1" style="margin-left:18px"></div>
<div class="col-md-6" style="margin-left:18px">
      <div class="card card-info">
          <div class="card-header">
            <h3 class="card-title">تغزية  ميزانية  --- {{ $budget->name}} </h3>
          </div>
          <!-- /.card-header -->
          <!-- form start -->
          <form  role="form" method="POST" action="{{ url('/budget/feed') }}">
                        {{ csrf_field() }}
          <div class="box-body">
            <div class="card-body">

               

                <div class="form-group">
                  <label for="exampleInputPassword1">المبغ المؤقت  </label>
                  <input type="number" min="{{$budget->temp_amount}}" id="temp_amount" name="temp_amount" value="{{$budget->temp_amount}}" class="form-control"  placeholder=" المبلغ" required>
                </div>
                
                <input type="hidden" min="0" id="budget_id" name="budget_id" value="{{$budget->id}}" class="form-control"  placeholder=" id" required>

                <div class="card-footer">
                  <button type="submit" class="btn btn-info">Feed </button>
                </div>  

              </div>
          </div>


          </form>
      </div>


    </div>
  </div>






@endsection