@extends('layouts.dashboard')
@section('style')

    {{--<link rel="stylesheet" href="{{ asset('assets/cus/cus.css') }}">--}}

@endsection
@section('content')

    <div class="row">
        <div class="col-md-12">

            <div class="panel panel-default panel-shadow" data-collapsed="0"><!-- to apply shadow add class "panel-shadow" -->

                <!-- panel head -->
                <div class="panel-heading">
                    <div class="panel-title">{{ $page_title }}</div>

                </div>

                <!-- panel body -->
                <div class="panel-body">

                    {!! Form::model($plan,['route'=>['plan-update',$plan->id],'method'=>'put','class'=>'form-horizontal','files'=>true]) !!}
                    <div class="form-body">

                        <div class="form-group">
                            <label class="col-sm-3 control-label"><b>Plan Name : </b></label>

                            <div class="col-sm-6">
                                <div class="input-group">
                                    <input name="name" value="{{ $plan->name }}" class="form-control input-lg" type="text" required placeholder="Plan Name ">
                                    <span class="input-group-addon"><i class="fa fa-file-text"></i></span>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label"><b>Plan Price : </b></label>

                            <div class="col-sm-6">
                                <div class="input-group">
                                    <input name="price" value="{{ $plan->price }}" class="form-control input-lg" type="text" required placeholder="Plan Price ">
                                    <span class="input-group-addon"><strong>{{ $site_currency }}</strong></span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label"><b>Number of Click : </b></label>

                            <div class="col-sm-6">
                                <div class="input-group">
                                    <input name="click" value="{{ $plan->click }}" class="form-control input-lg" type="number" required placeholder="Number Of Click ">
                                    <span class="input-group-addon"><strong>Clicks</strong></span>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label"><b>Plan Status : </b></label>
                            <div class="col-sm-6">
                                <input name="status" type="checkbox" {{ $plan->status == 1 ? 'checked' : '' }} class="make-switch" id="test" data-size="large">
                            </div>
                        </div>

                        <div class="form-group">

                            <div class="row">
                                <div class="col-md-offset-3 col-md-6">
                                    <button type="submit" class="btn btn-primary btn-block margin-top-10"><i class="fa fa-send"></i> Update Plan</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    {!! Form::close() !!}

                </div>

            </div>

        </div>
    </div>


@endsection
@section('scripts')



@endsection

