@extends('layouts.reports') @section('title', "Pedidos de um produto") @section('report_title', "Pedidos do produto $product_name ($product_size)") @section('contente')

Período: {{ \App\Helpers\HlpDate::dateDbToBr($data_inicio) }} a {{ \App\Helpers\HlpDate::dateDbToBr($data_fim) }}

@if(in_array($type, ['both','order'])) @endif @if(in_array($type, ['both','client'])) @endif @php($subtotal = 0) @php($quantidade = 0) @foreach($orders as $order) @php($quantidade += $order->quantity) @php($subtotal += $order->quantity * $order->price) @if(in_array($type, ['both', 'order'])) @endif @if(in_array($type, ['both', 'client'])) @endif @endforeach
#PedidoClienteData Quantidade Preço Unitário (R$) Total (R$)
{{ $loop->iteration }}{{ \App\Helpers\HlpFormatrers::formatOrderNumber($order->id) }}{{ $order->client_name }}{{ \App\Helpers\HlpDate::dateDbToBr($order->date) }} {{ $order->quantity }} {{ number_format($order->price, 2, ',', '.') }} {{ number_format($order->quantity * $order->price, 2, ',', '.') }}
TOTAIS: {{ $quantidade }}   {{ number_format($subtotal, 2, ',', '.') }}
@endsection