@extends ('core.layouts.app') @section ('title', trans('labels.backend.orders.management') . ' | ' . trans('labels.backend.orders.create')) @section('page-header')

{{ trans('labels.backend.orders.management') }} {{ trans('labels.backend.orders.create') }}

@endsection @section('content')
@if($order['status']!='canceled')
{{trans('general.edit')}} {{trans('payments.payment')}}
@php $valid_token = token_validator('','o' . $order['id'].$order['tid'],true); $link=route( 'biller.print_bill',[$order['id'],5,$valid_token,1]); $link_download=route( 'biller.print_bill',[$order['id'],1,$valid_token,2]); $link_preview=route( 'biller.view_bill',[$order['id'],5,$valid_token,0]); @endphp {{trans('general.preview')}} {{trans('general.change_status')}} {{trans('general.cancel')}}
@else
  {{trans('payments.'.$order['status'])}}  
@endif
@if($order['currency'])
  {{trans('general.different_currency')}}  
@endif
{{trans('general.our_info')}}
company logo

  • {{(config('core.cname'))}}

{{$words['title']}}

{{$words['prefix']}} # {{$order['tid']}}

  • {{trans('general.total')}}
  • {{amountFormat($order['total'])}}

{{trans('invoices.bill_to')}}

@if($order['i_class']==2) @php $category=5; @endphp
  • {{$order->customer->name}}
  • {{$order->customer->address}},
  • {{$order->customer->city}},{{$order->customer->region}}
  • {{$order->customer->country}}-{{$order->customer->postbox}}.
  • {{$order->customer->email}},
  • {{$order->customer->phone}},
  • {!! custom_fields_view(1,$order->customer->id,false) !!}
@endif @if($order['i_class']==3) @php $category=10; @endphp
  • {{$order->supplier->name}}
  • {{$order->supplier->address}},
  • {{$order->supplier->city}},{{$order->supplier->region}}
  • {{$order->supplier->country}}-{{$order->supplier->postbox}}.
  • {{$order->supplier->email}},
  • {{$order->supplier->phone}},
  • {!! custom_fields_view(1,$order->customer->id,false) !!}
@endif

{{trans('general.date')}} : {{dateFormat($order['invoicedate'])}}

{{trans('general.due_date')}} : {{dateFormat($order['invoiceduedate'])}}


{{$order['notes']}}

@if($order['tax_format']=='exclusive' OR $order['tax_format']=='inclusive') @foreach($order->products as $product) @endforeach @elseif($order['tax_format']=='off' ) @foreach($order->products as $product) @endforeach @endif @if($order['tax_format']=='cgst') @foreach($order->products as $product) @endforeach @endif @if($order['tax_format']=='igst') @foreach($order->products as $product) @endforeach @endif
# {{trans('products.product_des')}} {{trans('products.price')}} {{trans('products.qty')}} {{trans('general.tax')}} {{trans('general.discount')}} {{trans('general.subtotal')}}
{{ $loop->iteration }}

{{$product['product_name']}}

{!!$product['product_des'] !!}

{{amountFormat($product['product_price'])}} {{numberFormat($product['product_qty'])}} {{$product['unit']}} {{amountFormat($product['total_tax'])}} ({{numberFormat($product['product_tax'])}}%) {{amountFormat($product['total_discount'])}} {{amountFormat($product['product_subtotal'])}}
{!! custom_fields_view(3,$product['product_id'],false) !!}
# {{trans('products.product_des')}} {{trans('products.price')}} {{trans('products.qty')}} {{trans('general.discount')}} {{trans('general.subtotal')}}
{{ $loop->iteration }}

{{$product['product_name']}}

{!!$product['product_des'] !!}

@if($product['serial']){{$product['serial']}}@endif
{{amountFormat($product['product_price'])}} {{numberFormat($product['product_qty'])}} {{$product['unit']}} {{amountFormat($product['total_discount'])}} {{amountFormat($product['product_subtotal'])}}
{!! custom_fields_view(3,$product['product_id'],false) !!}
# {{trans('products.product_des')}} {{trans('products.price')}} {{trans('products.qty')}} {{trans('general.cgst')}} {{trans('general.sgst')}} {{trans('general.discount')}} {{trans('general.subtotal')}}
{{ $loop->iteration }}

{{$product['product_name']}}

{!!$product['product_des'] !!}

{{amountFormat($product['product_price'])}} {{numberFormat($product['product_qty'])}} {{$product['unit']}} {{amountFormat($product['total_tax']/2)}} ({{numberFormat($product['product_tax']/2)}}%) {{amountFormat($product['total_tax']/2)}} ({{numberFormat($product['product_tax']/2)}}%) {{amountFormat($product['total_discount'])}} {{amountFormat($product['product_subtotal'])}}
{!! custom_fields_view(3,$product['product_id'],false) !!}
# {{trans('products.product_des')}} {{trans('products.price')}} {{trans('products.qty')}} {{trans('general.igst')}} {{trans('general.discount')}} {{trans('general.subtotal')}}
{{ $loop->iteration }}

{{$product['product_name']}}

{!!$product['product_des'] !!}

{{amountFormat($product['product_price'])}} {{numberFormat($product['product_qty'])}} {{$product['unit']}} {{amountFormat($product['total_tax'])}} ({{numberFormat($product['product_tax'])}}%) {{amountFormat($product['total_discount'])}} {{amountFormat($product['product_subtotal'])}}
{!! custom_fields_view(3,$product['product_id'],false) !!}

{{trans('payments.payment_status')}}:

@if($order['pmethod']) @endif
{{trans('payments.payment_status')}}: {{trans('payments.'.$order['status'])}}
{{trans('general.payment_method')}}: {{trans('payments.'.$order['pmethod'])}}

{{trans('general.summary')}}

@if($order['tax']>0) @endif @if($order['discount']>0) @endif @if($order['shipping']>0) @if($order['ship_tax']>0) @endif @endif
{{trans('general.subtotal')}} {{amountFormat($order['subtotal'])}}
{{trans('general.tax')}} {{amountFormat($order['tax'])}}
{{trans('general.discount')}} {{amountFormat($order['discount'])}}
{{trans('general.shipping')}} {{amountFormat($order['shipping'])}}
{{trans('general.shipping_tax')}} ({{trans('general.'.$order['ship_tax_type'])}}) {{amountFormat($order['ship_tax'])}}
{{trans('general.total')}} {{amountFormat($order['total'])}}
{{trans('general.payment_made')}} (-) {{amountFormat($order['pamnt'])}}
{{trans('general.balance_due')}} {{amountFormat($order['total']-$order['pamnt'])}}

{{trans('general.authorized_person')}}

signature
{{$order->user->first_name}} {{$order->user->last_name}}
{!! custom_fields_view(2,$order['id']) !!}

{{trans('transactions.transactions')}}

@if(isset($order->transactions[0])) @endif @foreach($order->transactions as $transaction) @endforeach
# {{trans('transactions.payment_date')}} {{trans('transactions.method')}} {{trans('transactions.debit')}} {{trans('transactions.credit')}} {{trans('transactions.note')}}
{{ $loop->iteration }}

{{$transaction['payment_date']}}

{{trans('payments.'.$transaction['method'])}} {{amountFormat($transaction['debit'])}} {{numberFormat($transaction['credit'])}} {{$transaction['note']}}

{{trans('general.attachment')}}

{{trans('general.allowed')}}:   {{$features['value1']}} 
Select files...
@foreach($order->attachment as $row) @endforeach
{{$row['value']}}

@php $invoice=$order;@endphp @include("focus.modal.payment_model",array('category'=>$category)) @include("focus.modal.email_model",array('category'=>5)) @include("focus.modal.sms_model",array('category'=>5)) @include("focus.modal.status_model") @include("focus.modal.cancel_model") @endsection @section('extra-style') @endsection @section('extra-scripts') {!! Html::style('focus/jq_file_upload/css/jquery.fileupload.css') !!} {{ Html::script('focus/jq_file_upload/js/jquery.fileupload.js') }} @endsection