@extends('frontend.layouts.app')
<?php $user = Auth::user(); ?>
@section('content')
    <div class="row pb-100"></div>
    <div class="row pb-50"></div>
    <div class="row pb-10"></div>
    <div id="pos">
    <div class="row">
        <div class="col-md-8 col-md-offset-2">
                    {{ Form::open(['route' => 'frontend.check', 'class' => '', 'role' => 'form', 'method' => 'get' , 'enctype' => 'multipart/form-data']) }}

            <div class="control-group">
{{--                        {{dd($plan)}}--}}
{{--                        {{dd($enable_promocode->value)}}--}}
                        @if($enable_promocode->value == 1)
                        <div class="col-md-6">
                            {{ Form::textGroupFullWidth('promocode', trans('Promocode'), 'info', ['placeholder' => trans('Promocode')]) }}

                            {{--{{ Form::text('promocode', null,--}}
                            {{--['class' => 'form-control', 'maxlength' => '191', 'required' => 'required', 'autofocus' => 'autofocus', 'placeholder' => trans('Promocode')]) }}--}}
                        </div>
                        @endif
                        <div class="col-md-12">
                            {{ Form::selectGroup('payment_method', trans('Payment Method'), 'caret-down', ['stripe'=>'Stripe'], null, []) }}
                        </div>

                        {{--<div class="box box-info">--}}
                            {{--<div class="box-body">--}}
                                {{--<div class="pull-left">--}}
                                    {{--@if($user==NULL)--}}
                                        {{--{{ link_to_route('frontend.index', trans('Skip'), [], ['class' => 'btn btn-danger btn-md']) }}--}}
                                    {{--@else--}}
                                        {{--{{ link_to_route('frontend.user.dashboard', trans('Skip'), [], ['class' => 'btn btn-danger btn-md']) }}--}}
                                    {{--@endif--}}
                                {{--</div><!--pull-left-->--}}
                                <style>
                                    /*.row{*/
                                        /*width: 50% !important;*/
                                    /*}*/
                                    .btn{
                                        background-color: #F6AB36;
                                        width: 130px;
                                    }
                                    #pos{
                                        width: 80%;
                                    }
                                    #butt{
                                        position: relative;
                                        /*margin-left: -150px;*/
                                        margin-right: 460px;
                                    }
                                    #position{
                                        /*float: left;*/
                                        margin-left: 900px;
                                        margin-top: -900px;
                                        /*margin-bottom: 500px;*/
                                        z-index: 100;

                                    }
                                </style>
                                <div class="pull-right">
                                    <div id="butt">
                                        {{ Form::submit(trans('Confirm'), ['class' => 'btn']) }}
                                    </div>
                                </div><!--pull-right-->

                                <div class="clearfix"></div>
                            </div><!-- /.box-body -->
                        </div>
                        {{ Form::close() }}
                        <div class="row text-center">
                        </div>



                    </div><!-- panel body -->
                </div><!-- panel -->
            </div>
    </div>
    <div id="position">

        <div class="container">
            <div class="row pb-50">
                {{--@foreach($plans as $key=>$plan)--}}
                    <div class="col-md-4 wow slideInUp" data-wow-offset="50" data-wow-delay=".30s">
                        <div class="pricing-box clrbg-before clrbg-after transition">
                            <div class="title-wrap text-center">
                                @if($currency_position->value=='left')
                                    @if($currency_space->value=='1')

                                        <h2 class="section-title fs-36">{{$currency_symbol->value}} {{$plan->price, $decimal_places->value}}</h2>
                                    @else
                                        <h2 class="section-title fs-36">{{$currency_symbol->value}}{{$plan->price, $decimal_places->value}}</h2>
                                    @endif



                                @else
                                    <h2 class="section-title fs-36">{{$plan->price}}{{$currency_symbol->value}}</h2>
                                @endif
                                <p>{{$plan->type}}</p>
                                <div class="btn-1">{{$plan->plan_name}}</div>
                            </div>
                            <div class="price-content">
                                <ul class="title-2">
                                    @if($currency_position->value=='left')
                                        @if($currency_space->value=='1')
                                            <li> Promo Price: <span class="gray-clr">{{$currency_symbol->value}} {{$plan->promoprice, $decimal_places->value}}</span></li>
                                        @else
                                            <li> Promo Price: <span class="gray-clr">{{$currency_symbol->value}} {{$plan->promoprice, $decimal_places->value}}</span></li>
                                        @endif

                                    @else
                                        <li> Promo Price: <span class="gray-clr">{{$plan->promoprice}}{{$currency_symbol->value}}</span></li>

                                    @endif
                                    <li> Drivers Allowed: <span class="gray-clr">{{$plan->drivercount}}</span> </li>
                                    <li> SMS Limit: <span class="gray-clr">{{$plan->smslimit}}</span> </li>
                                <!-- <li> Expiry Date: <span class="gray-clr">{{$plan->expiry}}</span> </li> -->
                                </ul>
                            </div>
                            {{--<div class="order">--}}
                                {{--<a href="{{ route('frontend.register',$plan->id) }}" class="title-1 theme-clr"> <span class="transition"> Start now </span> <i class="arrow_right fs-26"></i> </a>--}}
                            {{--</div>--}}
                            <div class="pricing-hover clrbg-before clrbg-after transition"></div>
                        </div>
                        {{--<div class="row pb-50"></div>--}}
                    </div>
                {{--@endforeach--}}
            </div>
        </div>

    </div>
    <div class="row pb-100"></div>
@endsection