@extends('adminlte::page') @section('title', " $title ") @section('content')
Emitir N/F de serviço distribuido {!! $count !!}
FILTROS - serviço(s) faturado(s)
@csrf
    @error('customer_id')
    {{ $message }}
    @enderror
    Ver todos
    @if(count($groupedAutorizations) === 0)
    Sem serviço para emitir N/F
    @else
    @include('app.includes.alerts')
    @php $previousAuthorization = null; @endphp @foreach ($groupedAutorizations as $authorization => $group) @php $showReportButton = true; @endphp @foreach ($group as $key => $item) @if ($previousAuthorization !== $authorization) @php $previousAuthorization = $authorization; @endphp @endif @if( !isset($item->perspective->materialcustomer->material) ) @else @endif @if( !isset($item->image) ) @else @endif @if ($item->issued != "Sim") @else @endif @if ($item->issued != "Sim") @elseif (strtotime($item->maturity) < strtotime('today')) @else @endif @if ($key === 0) @else @endif @can('excluir-os') @endcan @endforeach @endforeach
    O.S Data Cliente Material Promoção Folheto Validade Qtd Serviço Vencimento Status Atual Relatório Excluir
    {{ $authorization }}{{ date('d/m/Y', strtotime($item->perspective->date)) }} {{ $item->customer->fantasy_name }}Material deletado desse cliente{{ $item->perspective->materialcustomer->material }}{{ $item->promotion->name }}Sem Imagem definida image}") }}"> image}") }}" class="img-thumbnail img-fluid shadow" alt="{{ $item->autorization }}" style="max-width: 69px;" data-toggle="modal" data-target="#imagemModal"> {{ $item->validate }} {{ $item->perspective->qtd }} {{ $item->status }} {{ date("d/m/Y", strtotime($item->maturity)) }}N/F não enviada Aguardando pagamento - Vencida Aguardando pagamento
    @csrf @method('DELETE')
    @endif
    @stop