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

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

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

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

{{trans('purchaseorders.purchaseorder')}}

{{prefix(9)}} # {{$purchaseorder['tid']}}

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

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

  • {{$purchaseorder->supplier->name}}
  • {{$purchaseorder->supplier->address}},
  • {{$purchaseorder->supplier->city}},{{$purchaseorder->supplier->region}}
  • {{$purchaseorder->supplier->country}}-{{$purchaseorder->supplier->postbox}}.
  • {{$purchaseorder->supplier->email}},
  • {{$purchaseorder->supplier->phone}},

{{trans('invoices.invoice_date')}} : {{dateFormat($purchaseorder['invoicedate'])}}

{{trans('invoices.invoice_due_date')}} : {{dateFormat($purchaseorder['invoiceduedate'])}}


{{$purchaseorder['notes']}}

@if($purchaseorder['tax_format']=='exclusive' OR $purchaseorder['tax_format']=='inclusive') @foreach($purchaseorder->products as $product) @endforeach @elseif($purchaseorder['tax_format']=='off' ) @foreach($purchaseorder->products as $product) @endforeach @endif @if($purchaseorder['tax_format']=='cgst') @foreach($purchaseorder->products as $product) @endforeach @endif @if($purchaseorder['tax_format']=='igst') @foreach($purchaseorder->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($purchaseorder['pmethod']) @endif
{{trans('payments.payment_status')}}: {{trans('payments.'.$purchaseorder['status'])}}
{{trans('general.payment_method')}}: {{$purchaseorder['pmethod']}}

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

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

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

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

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

@if(isset($purchaseorder->transactions[0])) @endif @foreach($purchaseorder->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']}}

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

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

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

@php $invoice=$purchaseorder; @endphp @include("focus.modal.payment_model",array('category'=>9)) @include("focus.modal.email_model",array('category'=>9)) @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