@extends('admin.layouts.app')
@section('content')
<div class="row">
@include('admin.layouts.errors')

    <div class="col-lg-6">
        <div class="card">
            <div class="card-body">
                <h4 class="card-title">ویرایش پلن</h4>
                <div>
                    <form action="{{ route('subscribe-plans.update', $subscribePlan->id) }}" method="post">
                        @csrf
                        @method('PUT')
                        <div class="mb-4">
                        <label for="">نام را وارد کنید</label>
                            <input class="form-control" name="name" type="text" value="{{ $subscribePlan->name }}">
                        </div>

                        <div class="mb-4">
                        <label for="">قیمت را وارد کنید</label>
                            <input class="form-control" name="price" type="text" value="{{ $subscribePlan->price }}">
                        </div>

                        <div class="mb-4">
                        <label for="">تعداد روز را وارد کنید</label>
                            <input class="form-control" name="expired_day" type="text" value="{{ $subscribePlan->expired_day }}">
                        </div>

                        <div class="custom-control custom-switch mb-2" dir="ltr">
                            <input type="checkbox" class="custom-control-input" id="customSwitch1" name="is_active" @if($subscribePlan->is_active) checked @endif>
                            <label class="custom-control-label" for="customSwitch1">قعال؟</label>

                        <div class="custom-control custom-switch mb-2" dir="ltr">
                            <input type="checkbox" class="custom-control-input" id="is_free" name="is_free" @if($subscribePlan->is_free) checked @endif>
                            <label class="custom-control-label" for="is_free">رایگان؟</label>
                        </div>


                        <label for="">نوع ( تایپ)</label>
                        <input class="form-control" name="type" type="text" placeholder="" value="{{ $subscribePlan->type }}">
                    </div>



                    <label for="">شناسه</label>
                    <input class="form-control" name="transaction" type="text" placeholder="" value="{{ $subscribePlan->transaction }}">
                </div>


                        <button type="submit" class="btn btn-primary">ثبت</button>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection