@extends('layouts.app') @section('content')
@include('layouts.includes.header')

Clone Orders

{!! Form::open(array('url'=>'/order/add_custom_order','id'=> 'product_form')) !!} {{ csrf_field() }}

Customer Details

Address Details

Billing Address

{!! Form::label('order_id', 'Order ID', array('class' => 'required')) !!} {!! Form::text('order_id', $orderDetail->orderNo, ['class' => 'form-control rounded', 'placeholder'=>'Order ID']) !!}
{!! Form::label('date', 'Order Date', array('class' => 'required')) !!}
{!! Form::text('date', null, ['class' => 'form-control rounded']) !!}
{!! Form::label('channel_name ', 'Channel Name', array('class' => 'required')) !!}
@php $name = explode(' ', $Order_shipping->shipping_name) @endphp
{!! Form::label('first_name', 'first name', array('class' => 'required')) !!} @if($Order_billing) {!! Form::text('first_name', $Order_billing->billing_first_name,['class' => 'form-control rounded','placeholder'=>'First Name']) !!} @else {!! Form::text('first_name', $name[0],['class' => 'form-control rounded','placeholder'=>'First Name']) !!} @endif
{!! Form::label('last_name', 'Last Name') !!} @if($Order_billing) {!! Form::text('last_name', $Order_billing->billing_last_name,['class' => 'form-control rounded', 'placeholder'=>'Last Name']) !!} @else {!! Form::text('last_name','', ['class' => 'form-control rounded', 'placeholder'=>'Last Name']) !!} @endif
{!! Form::label('email_id', 'Email Id', array('class' => 'required')) !!} @if($Order_billing) {!! Form::email('email_id', $Order_billing->billing_email,['class' => 'form-control rounded','placeholder'=>'Email']) !!} @else {!! Form::email('email_id', $Order_shipping->shipping_email,['class' => 'form-control rounded','placeholder'=>'Email']) !!} @endif
{!! Form::label('phone_number', 'Phone Number', array('class' => 'required')) !!} @if($Order_billing) {!! Form::number('phone_number',$Order_billing->billing_phone,['class' => 'form-control rounded required', 'placeholder'=>'Phone']) !!} @else {!! Form::number('phone_number',$Order_shipping->shipping_phone,['class' => 'form-control rounded required', 'placeholder'=>'Phone']) !!} @endif
{!! Form::label('billing_address1', 'Address Line 1', array('class' => 'required')) !!} @if($Order_billing) {!! Form::text('billing_address1', $Order_billing->billing_address, ['class' => 'form-control rounded', 'placeholder'=>'Address Line 1']) !!} @else {!! Form::text('billing_address1', $Order_shipping->shipping_addres, ['class' => 'form-control rounded', 'placeholder'=>'Address Line 1']) !!} @endif
{!! Form::label('billing_address2', 'Address Line 2') !!} @if($Order_billing) {!! Form::text('billing_address2', $Order_billing->billing_address_two, ['class' => 'form-control rounded', 'placeholder'=>'Address Line 2']) !!} @else {!! Form::text('billing_address2', $Order_shipping->shipping_address_two, ['class' => 'form-control rounded', 'placeholder'=>'Address Line 2']) !!} @endif
{!! Form::label('billing_country', 'Country', array('class' => 'required')) !!} @if($Order_billing)
@else
@endif
{!! Form::label('billing_zipcode', 'Post Code', array('class' => 'required')) !!} @if($Order_billing) {!! Form::text('billing_zipcode', isset($Order_shipping->shipping_zipcode) != '' ? $Order_shipping->shipping_zipcode : $Order_billing->billing_postcode, ['class' => 'form-control rounded', 'placeholder'=>'Post Code']) !!} @else {!! Form::text('billing_zipcode', isset($Order_shipping->shipping_zipcode) != '' ? $Order_shipping->shipping_zipcode : $Order_shipping->shipping_zipcode, ['class' => 'form-control rounded', 'placeholder'=>'Post Code']) !!} @endif
{!! Form::label('billing_city', 'City', array('class' => 'required')) !!} @if($Order_billing) {!! Form::text('billing_city', $Order_billing->billing_city, ['class' => 'form-control rounded', 'placeholder'=>'City']) !!} @else {!! Form::text('billing_city', $Order_shipping->shipping_city, ['class' => 'form-control rounded', 'placeholder'=>'City']) !!} @endif
{!! Form::label('billing_state', 'State', array('class' => 'required')) !!}
{!! Form::label('company_name', 'Company Name') !!} {!! Form::text('company_name', NUll, ['class' => 'form-control rounded', 'placeholder'=>'Company Name']) !!}
{!! Form::label('shipment_purpose ', 'Shipment Purpose ') !!} {!! Form::text('shipment_purpose', NUll, ['class' => 'form-control rounded', 'placeholder'=>'Shipment Purpose']) !!}
{!! Form::label('currency', 'Currency', array('class' => 'required')) !!}

Shipping Address

@php $name = explode(' ', $Order_shipping->shipping_name); @endphp
{!! Form::label('sfirst_name', 'First Name', array('class' => 'required')) !!} {!! Form::text('sfirst_name', $name[0],['class' => 'form-control rounded','placeholder'=>'First Name']) !!}
{!! Form::label('slast_name', 'Last Name') !!} {!! Form::text('slast_name', '',['class' => 'form-control rounded', 'placeholder'=>'Last Name']) !!}
{!! Form::label('semail_id', 'Email Id', array('class' => 'required')) !!} {!! Form::email('semail_id', $Order_shipping->shipping_email,['class' => 'form-control rounded','placeholder'=>'Email']) !!}
{!! Form::label('sphone_number', 'Phone Number',array('class' => 'required')) !!} {!! Form::number('sphone_number',$Order_shipping->shipping_phone,['class' => 'form-control rounded', 'placeholder'=>'Phone']) !!}
{!! Form::label('shipping_address1', 'Address Line 1', array('class' => 'required')) !!} {!! Form::text('shipping_address1', $Order_shipping->shipping_addres, ['class' => 'form-control rounded', 'placeholder'=>'Address Line 1']) !!}
{!! Form::label('shipping_address2', 'Address Line 2') !!} {!! Form::text('shipping_address2', $Order_shipping->shipping_address_two, ['class' => 'form-control rounded', 'placeholder'=>'Address Line 2']) !!}
{!! Form::label('shipping_country', 'Country', array('class' => 'required')) !!}
{!! Form::label('shipping_zipcode', 'Post Code', array('class' => 'required')) !!} {!! Form::text('shipping_zipcode', isset($address->shipping_zipcode) != '' ? $address->shipping_zipcode : $Order_shipping->shipping_postcode, ['class' => 'form-control rounded', 'placeholder'=>'Post Code']) !!}
{!! Form::label('shipping_city', 'City', array('class' => 'required')) !!} {!! Form::text('shipping_city', $Order_shipping->shipping_city, ['class' => 'form-control rounded', 'placeholder'=>'City']) !!}
{!! Form::label('shipping_state', 'State', array('class' => 'required')) !!}

Pickup Details

{{ csrf_field() }}

Billing Address

{!! Form::label('pickup_address *', 'Pickup Address', array('class' => 'required')) !!}
{!! Form::label('eway_bill_no', 'Eway Bill No.') !!} {!! Form::text('eway_bill_no', isset($address->eway_bill_no) != '' ? $address->eway_bill_no : NUll, ['class' => 'form-control rounded', 'placeholder'=>'Eway Bill No.']) !!}

Product Details

@foreach($products as $productValue) @endforeach
{!! Form::label('product *', 'PRODUCT', array('class' => 'required')) !!} {!! Form::label('sku *', 'SKU', array('class' => 'required')) !!} {!! Form::label('hsn', 'HSN') !!} {!! Form::label('quantity *', 'QUANTITY', array('class' => 'required')) !!} {!! Form::label('tax', 'TAX(%)') !!} {!! Form::label('price *', 'PRICE', array('class' => 'required')) !!} {!! Form::label('duscount', 'DISCOUNT') !!} {!! Form::label('total', 'TOTAL') !!} {!! Form::label('action', 'ACTION') !!}
{!! Form::text('product_name[]', $productValue->name, ['class' => 'form-control rounded add_product_search', 'placeholder'=>'Search product name','required' => 'required']) !!}
    {!! Form::text('product_sku[]', $productValue->sku, ['class' => 'form-control rounded sku', 'placeholder'=>'Enter SKU','required' => 'required']) !!}
    {!! Form::number('product_hsn[]', $productValue->hsn, ['class' => 'form-control rounded', 'placeholder'=>'Enter HSN']) !!}
    {!! Form::text('product_quantity[]', $productValue->quantity, ['class' => 'form-control rounded qun', 'placeholder'=>'Enter Qty', 'required' => 'required']) !!}
    {!! Form::text('product_tax[]', $productValue->total_tax, ['class' => 'form-control rounded', 'placeholder'=>'Enter Tax']) !!}
    {!! Form::text('product_price[]', $productValue->price, ['class' => 'form-control rounded product_price', 'placeholder'=>'Enter Price']) !!}
    {!! Form::text('product_discount[]', $productValue->discount, ['class' => 'form-control rounded discc', 'placeholder'=>'Enter Discount']) !!}
    {!! Form::text('product_total[]', $productValue->total, ['class' => 'form-control rounded','readonly', 'placeholder'=>'0.00']) !!}

    Weight & Dimensions

    {!! Form::label('weight', 'Weight (Kg)',array('class' => 'required')) !!} {!! Form::number('weight', $orderDetail->total_weight,['class' => 'form-control rounded', 'placeholder'=>'Enter Weight']) !!}

    (Max 3 digits after decimal place)
    Note: The minimum chargeable weight is 0.50 Kg

    {!! Form::label('dimension', 'Dimension (cm)', ['class' => 'd-block']) !!}
    L {!! Form::number('total_length',$orderDetail->total_length,['class' => 'form-control rounded numeric',]) !!}
    B {!! Form::number('total_width',$orderDetail->total_width,['class' => 'form-control rounded numeric']) !!}
    H {!! Form::number('total_height',$orderDetail->total_height,['class' => 'form-control rounded numeric']) !!}

    Payment Details

    {!! Form::label('payment_method', 'Payment Method', array('class' => 'required')) !!}
    @php $sub_total = $orderDetail->orderAmount + $orderDetail->shipping_total + $orderDetail->order_giftwrap + $orderDetail->order_transaction - $orderDetail->discount_total; @endphp {!! Form::label('sub_total', 'Sub Total') !!} {!! Form::text('sub_total',$sub_total,['class' => 'form-control rounded','placeholder'=>'0', 'disabled' => 'disabled']) !!}
    shipping_total? 'checked':''}}>
    order_giftwrap? 'checked':''}}>
    order_transaction ? 'checked':''}}>
    discount_total? 'checked':''}}>
    @if($orderDetail->shipping_total)
    Shipping Charges
    @endif
    @if($orderDetail->order_giftwrap)
    Giftwrap Charges
    @endif
    @if($orderDetail->order_transaction)
    Transaction Charges
    @endif
    @if($orderDetail->discount_total)
    Discounts Charges
    @endif
    {!! Form::text('grand_total', $orderDetail->orderAmount,['class' => 'form-control rounded','placeholder'=>'0']) !!}

    {!! Form::label('reseller_name', 'Reseller Name') !!} {!! Form::text('reseller_name', NULL,['class' => 'form-control rounded']) !!}
    {!! Form::close() !!}
    @endsection