{!! trans('dashboard.bill.bill') !!}
@php $total_order_items = 0; $total_order = 0; $vat_order = 0; @endphp @foreach ($bills as $bill) @php $product_with_quantity = $bill['product']->price * $bill['quantity']; $vat_amount = ((double) setting('vat_percentage') * $product_with_quantity) / 100; $total_order_items += $product_with_quantity; $vat_order += $vat_amount; $total_order += ($vat_amount + $product_with_quantity); @endphp @endforeach
# {{ trans('dashboard.product.name') }} {{ trans('dashboard.product.price') }} {{ trans('dashboard.product.quantity') }} {{ trans('dashboard.bill.total_products_amount') }} {{ trans('dashboard.bill.vat_amount') }} {{ trans('dashboard.bill.total_amount') }}
{{ $loop->iteration }} {{ $bill['product']->name }} {{ $bill['product']->price }} {{ $bill['quantity'] }} {{ $product_with_quantity }} {{ $vat_amount }} {{ $vat_amount + $product_with_quantity }}

# {{ trans('dashboard.bill.total_products_amount') }} {{ trans('dashboard.bill.vat_amount') }} {{ trans('dashboard.bill.total_amount') }}
# {{ $total_order_items }} {{ $vat_order }} {{ $total_order }}

{{ csrf_field() }}

{!! Form::select("customer_id", $customers, null, ['class' => 'select2 form-control client_name', 'placeholder' => trans('dashboard.customer.customer')]) !!}
{!! Form::select("pay_type", trans('dashboard.bill.pay_types'), null ,['class' => 'select2 form-control pay_tipe']) !!}
{!! Form::text("amount_paid", $total_order, ['class' => 'form-control amount_paid' , 'placeholder' => trans('dashboard.bill.amount_paid')]) !!}
{!! Form::textarea("note", null, ['class' => 'form-control note']) !!}