@extends('mage2::front.master')


@section('content')
    <h1>Checkout</h1>

    {!! Form::model($data,array( 'url' => url('order'))) !!}

    <div class="col-md-12">
        <h3>Billing Information</h3>
        
        <div class="form-group">
            {!!  Form::label('name', 'Name')  !!}
            {!!  Form::text('name',null,array('class'=>'form-control'))  !!}
        </div>

        <div class="form-group">
            {!!  Form::label('companyname', 'Company Name')  !!}
            {!!  Form::text('companyname',null,array('class'=>'form-control'))  !!}
        </div>

        @if(!app('front.auth')->check())
        <div class="form-group">
            {!!  Form::label('email', 'Email')  !!}
            {!!  Form::text('email',null,array('class'=>'form-control'))  !!}
        </div>
        <div class="form-group">
            {!!  Form::label('password', 'Password')  !!}
            {!!  Form::text('password',null,array('class'=>'form-control'))  !!}
        </div>
        @endif

        <div class="form-group">
            {!!  Form::label('number', 'Number')  !!}
            {!!  Form::text('number',null,array('class'=>'form-control'))  !!}
        </div>

        <div class="form-group">
            {!!  Form::label('street', 'Street')  !!}
            {!!  Form::text('street',null,array('class'=>'form-control'))  !!}
        </div>

        <div class="form-group">
            {!!  Form::label('area', 'Area')  !!}
            {!!  Form::text('area',null,array('class'=>'form-control'))  !!}
        </div>

        <div class="form-group">
            {!!  Form::label('city', 'City')  !!}
            {!!  Form::text('city',null,array('class'=>'form-control'))  !!}
        </div>

        <div class="form-group">
            {!!  Form::label('post_code', 'Post Code')  !!}
            {!!  Form::text('zip_code',null,array('class'=>'form-control'))  !!}
        </div>

        <div class="form-group">
            {!!  Form::label('country', 'Country')  !!}
            {!!  Form::text('country',null,array('class'=>'form-control'))  !!}
        </div>

        <div class="form-group">
            {!! Form::hidden('step','billing') !!}
            {!! Form::hidden('address_id') !!}
            {!! Form::hidden('customer_id') !!}
            {!! Form::button('continue',['class'=>'btn btn-primary','onclick' => 'jQuery(this).parents("form:first").submit()']) !!}

        </div>
    </div>

    {!! Form::close() !!}

@endsection