PHP Classes

File: resources/views/dashboard/chart/stock.blade.php

Recommend this page to a friend!
  Classes of adriano123456   Budget System   resources/views/dashboard/chart/stock.blade.php   Download  
File: resources/views/dashboard/chart/stock.blade.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Budget System
Elaborate budgets for purchases of products
Author: By
Last change:
Date: 15 days ago
Size: 961 bytes
 

Contents

Class file image Download
<table class="table">
  <tr>
    <th>Quantidade</th>
    <th>Produto</th>
  </tr>
  @foreach($produtos as $produto)
    <tr>
      <td>{{$produto->quantidade}}</td>
      <td>
        {{$produto->descricao}}
       
        <?php
        $stockProds
= \App\Models\Stock::where('deleted_at', NULL)
                        ->
where('product_id', $produto->id)
                        ->
where('inserido', false)
                        ->
orderBy('dt_lancamento', 'asc')
                        ->
limit(5)
                        ->
get();

          foreach(
$stockProds as $value):
              echo
"<li>Previsão de mais <strong>{$value->quantidade}</strong> produtos no estoque em <strong>{$value->dt_lancamento}</strong></li>";
          endforeach;
       
?>
</td>
    </tr>
  @endforeach
  <tfoot>
    <tr>
      <td colspan="2">
        <a href="{{route('produtos.index')}}" class="btn brn-default">Todos</a>
      </td>
    </tr>
  </tfoot>
</table>