@extends('templates.pdf.template') @section('title', 'Lista de Normas') @section('content')
DATA: {{ now()->format( 'd/m/Y' ) }} Quantidade de normas: {{ count($data) }}
@foreach( $data as $norm ) @php $date = $norm->dateOfStatus(); if ($norm->deleted_at) $date = formatDateAndTime($norm->deleted_at, 'd/m/Y'); if ($norm->link_catalog && $norm->link_consult && $norm->status != 1) { $link = $norm->link_consult; } else if ($norm->link_catalog && $norm->status == 1) { $link = $norm->link_catalog; } elseif ($norm->link_covenant) { $link = $norm->link_covenant; } elseif ($norm->link_consult) { $link = $norm->link_consult; } else { $link = $norm->link_consult; } @endphp @endforeach

Código

Título

Comitê

Status

Data

Link

{{ $norm->norm_cod }}

{{ $norm->title }}

{{ $norm->committee ? $norm->committee->title : '-' }}

{{ $norm->getStatusName($norm->status) }} {{ $norm->status === '0' && $norm->is_expired ? "Expirada" : null }}

{{ $date }}

Ver Norma
@endsection