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

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

@endsection @section('content')
@if($invoice['status']!='canceled')
{{trans('labels.backend.invoices.edit')}} {{trans('general.make_payment')}} @php $valid_token = token_validator('','i' . $invoice['id'].$invoice['tid'],true); $link=route( 'biller.print_bill',[$invoice['id'],1,$valid_token,1]); $link_download=route( 'biller.print_bill',[$invoice['id'],1,$valid_token,2]); $link_preview=route( 'biller.view_bill',[$invoice['id'],1,$valid_token,0]); if($invoice['i_class']>1) { $title= trans('invoices.subscription'); $inv_no= prefix(6).' # '.$invoice['tid']; } else if($invoice['i_class']==1) { $title= trans('invoices.pos'); $inv_no= prefix(10).' # '.$invoice['tid']; } else { $title= trans('invoices.invoice'); $inv_no= prefix(1).' # '.$invoice['tid']; } @endphp {{trans('general.preview')}} {{trans('general.change_status')}} {{trans('general.cancel')}}
WhatsApp @if($invoice['i_class']>1) {{trans('invoices.subscription')}} @endif
@else
  {{trans('payments.'.$invoice['status'])}}  
@endif
@php if($invoice['i_class']>1) { $title= trans('invoices.subscription'); $inv_no= prefix(6).' # '.$invoice['tid']; } else if($invoice['i_class']==1) { $title= trans('invoices.pos'); $inv_no= prefix(10).' # '.$invoice['tid']; } else { $title= trans('invoices.invoice'); $inv_no= prefix(1).' # '.$invoice['tid']; } @endphp @if($invoice['currency'])
  {{trans('general.different_currency')}}  
@endif
{{trans('general.our_info')}}
company logo

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

{{$title}}

{{$inv_no}}

@if($invoice['order_id'])

{{trans('orders.order')}}: {{$invoice['order_id']}}

@endif @if(isset($invoice->market->bill->name))

{{trans('sales_channel.sales_channel')}} : {{$invoice->market->bill->name}}

@endif @php switch ($invoice['i_class']){ case 2: echo '

'.trans('payments.active').'

'; break; case 3: echo '

'.trans('payments.recurred').'

'; break; case 4: echo '

'.trans('payments.stopped').'

'; break; } @endphp
  • {{trans('general.total')}}
  • {{amountFormat($invoice['total'])}}

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

  • {{$invoice->customer->name}}
  • {{$invoice->customer->address}},
  • {{$invoice->customer->city}},{{$invoice->customer->region}}
  • {{$invoice->customer->country}}-{{$invoice->customer->postbox}}.
  • {{$invoice->customer->email}},
  • {{$invoice->customer->phone}},
  • {!! custom_fields_view(1,$invoice->customer->id,false) !!}

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

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


{{$invoice['notes']}}

@if($invoice['tax_format']=='exclusive' OR $invoice['tax_format']=='inclusive' ) @foreach($invoice->products as $product) @endforeach @elseif($invoice['tax_format']=='off' ) @foreach($invoice->products as $product) @endforeach @endif @if($invoice['tax_format']=='cgst') @foreach($invoice->products as $product) @endforeach @endif @if($invoice['tax_format']=='igst') @foreach($invoice->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'] !!}

@if($product['serial']){{$product['serial']}}@endif
{{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'] !!}

@if($product['serial']){{$product['serial']}}@endif
{{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'] !!}

@if($product['serial']){{$product['serial']}}@endif
{{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($invoice['pmethod']) @endif
{{trans('payments.payment_status')}}: {{trans('payments.'.$invoice['status'])}}
{{trans('general.payment_method')}}: {{$invoice['pmethod']}}

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

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

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

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

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

@if(isset($invoice->transactions[0])) @endif @foreach($invoice->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($invoice->attachment as $row) @endforeach
{{$row['value']}}

@include("focus.modal.payment_model",array('category'=>0)) @include("focus.modal.email_model",array('category'=>1)) @include("focus.modal.sms_model",array('category'=>2)) @include("focus.modal.status_model") @include("focus.modal.cancel_model") @include("focus.modal.subscription_model") @endsection @section('extra-style') {!! Html::style('focus/jq_file_upload/css/jquery.fileupload.css') !!} @endsection @section('extra-scripts') {{ Html::script('focus/jq_file_upload/js/jquery.fileupload.js') }} @endsection