@extends('layouts.employee') @section('content')
{{ $occType->name ?? 'Ocorrências' }}
{{-- When creating an occurrence as employee, show create for this company's type if company provided, else point to generic create route --}} @if(isset($company)) Criar Ocorrência @else @php $slug = \Illuminate\Support\Str::ascii(\Illuminate\Support\Str::slug($occType->name, '')); @endphp @if(in_array($slug, ['chamadas','emails','recepcao'])) Criar Ocorrência @else Criar Ocorrência @endif @endif
@forelse($occurrences as $occ) @empty @endforelse
Título Registro Empresa Anexos
{{ Str::limit($occ->title ?? $occ->description ?? '', 30) }}

{{ Str::limit($occ->description, 80) }}

{{ $occ->created_at->format('d/m/Y H:i') }} {{ $occ->company->name ?? '-' }} {{ $occ->attachments->count() }} Ver @can('update', $occ) Editar @endcan
Nenhuma ocorrência encontrada.
{{ $occurrences->links() }}
@endsection