@extends('admin.master')

@section('title')
    Edit Future Plan
@endsection

@section('content')
    <div class="card card-custom" id="kt_card_4">
        <div class="card-header">
            <h3 class="card-title">
                Edit Future Plan
            </h3>
        </div>
        <form class="form" action="{{ route('futureplans.update', $futureplan->id) }}" method="POST" enctype="multipart/form-data">
            @csrf
            @method('PUT')
            <div class="card-body">
                <div class="form-group row">
                    <div class="col-lg-12">
                        <label>Future Plan Title: <span class="text-danger">*</span></label>
                        <input type="text" name="title" class="form-control mb-2" placeholder="Enter future plan title here" value="{{ old('title', $futureplan->title) }}" required />
                        @error('title')
                            <span class="text-danger">{{ $message }}</span>
                        @enderror
                    </div>
                </div>

            </div>

            <div class="card-footer">
                <div class="row">
                    <div class="col-lg-12 text-center">
                        <button type="submit" class="btn btn-success mr-2">Update Future Plan</button>
                        <a href="{{ route('futureplans.index') }}" class="btn btn-secondary">Cancel</a>
                    </div>
                </div>
            </div>
        </form>
    </div>
@endsection
