@extends('admin.layouts.master') @section('head') @endsection @section('content')
Create A Manual Order
@if ($errors->any())
    {!! implode('', $errors->all('
  • :message
  • ')) !!}
@endif
@if ($view == 'user') {!! Form::open(['route' => 'manualorder.create', 'class' => 'form-horizontal']) !!}

Customer Details

{!! Form::label('email', trans('quickadmin::admin.users-create-email'), ['class'=>'col-sm-2 control-label']) !!}
{!! Form::email('email', $customer['email'], ['class'=>'form-control', 'placeholder'=> trans('quickadmin::admin.users-create-email_placeholder')]) !!}
{!! Form::label('first_name', 'First Name', ['class'=>'col-sm-4 control-label']) !!}
{!! Form::text('first_name', '', ['class'=>'form-control', 'placeholder'=> 'First Name']) !!}
{!! Form::label('last_name', 'Last Name', ['class'=>'col-sm-4 control-label']) !!}
{!! Form::text('last_name', '', ['class'=>'form-control', 'placeholder'=> 'Last Name']) !!}

Billing Address

{!! Form::label('billing_first_name', 'First Name', ['class'=>'col-sm-4 control-label']) !!}
{!! Form::text('billing_first_name', '', ['class'=>'form-control', 'placeholder'=> 'First Name']) !!}
{!! Form::label('billing_last_name', 'Last Name', ['class'=>'col-sm-4 control-label']) !!}
{!! Form::text('billing_last_name', '', ['class'=>'form-control', 'placeholder'=> 'Last Name']) !!}
{!! Form::label('billing_company', 'Company', ['class'=>'col-sm-2 control-label']) !!}
{!! Form::text('billing_company', '', ['class'=>'form-control', 'placeholder'=> 'Company']) !!}
{!! Form::label('billing_address_1', 'Address Line 1', ['class'=>'col-sm-2 control-label']) !!}
{!! Form::text('billing_address_1', '', ['class'=>'form-control', 'placeholder'=> 'Address Line 1']) !!}
{!! Form::label('billing_address_2', 'Address Line 2', ['class'=>'col-sm-2 control-label']) !!}
{!! Form::text('billing_address_2', '', ['class'=>'form-control', 'placeholder'=> 'Address Line 2']) !!}
{!! Form::label('billing_city', 'Town/City', ['class'=>'col-sm-2 control-label']) !!}
{!! Form::text('billing_city', '', ['class'=>'form-control', 'placeholder'=> 'Town/City']) !!}
{!! Form::label('billing_state', 'County', ['class'=>'col-sm-2 control-label']) !!}
{!! Form::text('billing_state', '', ['class'=>'form-control', 'placeholder'=> 'County']) !!}
{!! Form::label('billing_postcode', 'Postcode', ['class'=>'col-sm-2 control-label']) !!}
{!! Form::text('billing_postcode', '', ['class'=>'form-control', 'placeholder'=> 'Postcode']) !!}
{!! Form::label('billing_country', 'Country', ['class'=>'col-sm-2 control-label']) !!}
{!! Form::select('billing_country', $zones, 'GB'); !!}
{!! Form::label('billing_email', 'Billing Email', ['class'=>'col-sm-2 control-label']) !!}
{!! Form::text('billing_email', '', ['class'=>'form-control', 'placeholder'=> 'Email Address']) !!}
{!! Form::label('billing_phone', 'Phone', ['class'=>'col-sm-2 control-label']) !!}
{!! Form::text('billing_phone', '', ['class'=>'form-control', 'placeholder'=> 'Phone Numner']) !!}

Shipping Address

{!! Form::label('shipping_same_as', 'Same As Billing Address', ['class'=>'col-sm-4 control-label']) !!}
{{ Form::checkbox('shipping_same_as', 'y', true, array('id'=>'sameas')) }}

Create Order


@include('admin.manualorder.item')
Add item

{!! Form::label('customer_note', 'Order Notes', ['class'=>'col-sm-1 control-label']) !!}
{!! Form::textarea('customer_note', '', ['class'=>'form-control', 'style' => 'height: 80px;']) !!}

{!! Form::label('subtotal', 'Subtotal', ['class'=>'col-sm-2 col-sm-offset-8 control-label']) !!}
{!! Form::text('subtotal', '', ['class'=>'form-control', 'disabled' => 'disabled']) !!}
{!! Form::label('vat', 'VAT', ['class'=>'col-sm-2 col-sm-offset-8 control-label']) !!}
{!! Form::text('vat', '', ['class'=>'form-control', 'disabled' => 'disabled']) !!}
{!! Form::label('shipping', 'Shipping', ['class'=>'col-sm-2 col-sm-offset-8 control-label']) !!}
{!! Form::text('shipping', '14.50', ['class'=>'form-control']) !!}
{!! Form::label('paid', 'Paid', ['class'=>'col-sm-2 col-sm-offset-8 control-label']) !!}
{!! Form::checkbox('paid', 'true', false, ['class'=>'form-control']) !!}
{!! Form::submit('Create Order', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!} @else {!! Form::open(['route' => 'manualorder.lookup', 'class' => 'form-horizontal']) !!}
{!! Form::label('email', trans('quickadmin::admin.users-create-email'), ['class'=>'col-sm-2 control-label']) !!}
{!! Form::email('email', old('email'), ['class'=>'form-control', 'placeholder'=> trans('quickadmin::admin.users-create-email_placeholder')]) !!}
{!! Form::submit('Find User', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!} @endif
@endsection @section('js') @endsection