@extends('layouts.reports') @section('title', "Balanço $year") @section('report_title', "Balanço $year") @section('contente') @php $numMonths = $untilMonth; @endphp @php $lastMonth = str_pad($numMonths, 2, '0', STR_PAD_LEFT); @endphp
Período: {{ "01/01/$year" }} a {{ date('t', strtotime("$year-$lastMonth-01")) . "/$lastMonth/$year" }}
| Meses => | @for($m=1; $m<=$numMonths; $m++){{ str_pad($m, 2, '0', STR_PAD_LEFT) }} | @endforTOTAL | |||
|---|---|---|---|---|---|
| # | Produto | Tam. | @for($m=1; $m<=$numMonths; $m++)Vnd. | Est. | @endforVendas |
| {{ $cont }} | {{ $product->product_name }} | {{ $product->size }} | @foreach($product->months as $month=>$values) @if($month > $numMonths) @break(1); @endif @php $total += $values->vendas; @endphp{{ $values->vendas }} | {{ $values->stock }} | @endforeach{{ $total }} |