@extends('web.teacher.index') @section('title', 'Notificações') @section('content')

Notificações

@php use Illuminate\Support\Carbon; @endphp @if (auth()->user()->type == 'teacher') @if (count($notifications) !== 0) @foreach ($notifications as $notification) @php $date_format = Carbon::parse($notification->date)->format('Y-m-d'); if (Carbon::parse($date_format . ' ' . $notification->time) <= Carbon::now()) { @endphp

Data: {{ date('d/m/y', strtotime($notification->date)) }}

Horário: {{ date('H:i', strtotime($notification->time)) }}

@php } @endphp @endforeach @else

Você não tem notificações.

@endif @endif
@stop