@extends('layouts.app')

@section('content')
<div class="container">
    <div class="row">
        <h2>Lista de Chamados</h2>
        @forelse($chamados as $key => $value)
            <p>{{$value->titulo}}
            @can('view', $value)
                <a href="/home/{{$value->id}}"> Editar</a>
            @endcan
            </p>
        @empty
            <p>Não existem chamados</p>
        @endforelse
    </div>
</div>
@endsection
