<form class="row g-3 auto-width project_budget" action="{{ route('project-budget.update', $data->id)}}" method="post" enctype='multipart/form-data'>
    @csrf
    @method('PUT')
    {{-- <div class="col-md-12">
        <div>
            <label for="projects_id" class="form-label">Projects <span class="text-danger"><b>*</b></span></label>
        </div>
        <div class="input-group">
            <select class="single-select form-control" name="projects_id">
                <option value="">--Select Project --</option>
                @foreach ($project as $list)
                <option value="{{ $list->id }}" {{ $list->id == $data->projects_id ? 'selected':'' }}>{{ $list->title }}</option>
                @endforeach
            </select>
        </div>
        <span class="text-danger error_projects_id" style="display: none;">This field is required.</span>
    </div> --}}
    <div class="col-md-12">
        <div>
            <label for="budget_type_id" class="form-label">Budget Type <span class="text-danger"><b>*</b></span></label>
        </div>
        <div class="input-group">
            <select class="single-select form-control" name="budget_type_id">
                 <option value="">--Select Budget Type --</option>
                 @foreach ($budgetType as $list)
                 <option value="{{ $list->id }}" {{ $list->id == $data->budget_type_id   ? 'selected':'' }}>{{ $list->name }}</option>
                 @endforeach
            </select>
        </div>
        <span class="text-danger error_budget_type_id" style="display: none;">This field is required.</span>
    </div>
     {{-- Amount --}}
     <div class="col-md-12">
        <label for="amount" class="form-label">Amount </label>
        <input type="text" class="form-control" id="amount" name="amount" aria-describedby="inputGroupPrepend" required placeholder="Enter Amount" value="{{$data->amount}}">
        <span class="text-danger error_amount" style="display:none;">This field is required.</span>
    </div>
    <input type="hidden" name="projects_id" value="{{$data->projects_id}}">
</form>
