@extends('adminlte::page') @section('title', 'Commesse') @section('content_header')

Tutte le commesse

@stop @section('content') @php $num = 1; @endphp @foreach ($commesse as $commessa) {{-- --}} @php $num = $commessa->numero; @endphp @endforeach
Numero Cliente Prodotto Venditore Azioni
{{ $commessa->multipla }}.{{ $commessa->id }}.{{ $commessa->prodotto->codice }}.{{ $commessa->venditore->id }} {{ $commessa->cliente->ragionesociale }} {{ $commessa->prodotto->nome }} {{ $commessa->venditore->name }} @if($commessa->multipla=='M') @if($num!=$commessa->numero) Inserisci Sotto-Commessa @endif @endif @if($num!=$commessa->numero)Stampa FS1 Stampa FS2 Stampa FRO Stampa Sottocartelle @endif
@csrf @method('DELETE')
@stop