@extends('admin.templates.panel-form-template') @section('title') @if(isset($item)) {{__("Edit invoice")}} [{{$item->id}}] @else {{__("Add new invoice")}} @endif - @endsection @section('form')
@include('components.err')

{{__("Tips")}}

  • {{__("If you cancel this, You must increase credit yourself.")}}
  • {{__("If you change transport method you must think about think about the price diffrance")}}
  • {{__("If you removed order from invoice, system adding amount to customer's credit automatically")}}
@if( $item->desc != null && trim($item->desc) != '')

{{__("Description")}}

{{$item->desc}}

@endif

@if(isset($item)) {{__("Edit invoice")}} [{{$item->id}}] @else {{__("Add new invoice")}} @endif

status??null)}}' :close-on-Select="true">
{{__("Address")}}
    @foreach($item->customer->addresses as $adr)
  • @endforeach
{{__("Address")}}
    @foreach(\App\Models\Transport::all() as $t)
  • @endforeach
@foreach($item->orders as $k => $order) @endforeach
# {{__("Product")}} {{__("Count")}} {{__("Quantity")}} {{__("Price")}} -
{{$k + 1}} {{$order->product->name}} {{number_format($order->count)}} @if( ($order->quantity->meta??null) == null) - @else @foreach($order->quantity->meta as $m) {{$m->human_value}} @endforeach @endif {{number_format($order->price_total)}}
- {{__("Transport")}} {{number_format($item->transport_price)}} {{__("Total price")}} {{number_format($item->total_price)}} {{__("Orders count")}}: ({{number_format($item->count)}})
@endsection