@extends('web.student.index') @section('title', 'Créditos') @section('content') Notificações Notificações @php use Illuminate\Support\Carbon; @endphp @if (isset($user->type) == 'student') @foreach ($notifications as $notification) @if ($notification->user_type == 'student' || $notification->user_type == 'all') @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 @endif @endforeach @endif @stop
Data: {{ date('d/m/y', strtotime($notification->date)) }}
Horário: {{ date('H:i', strtotime($notification->time)) }}