@extends('layouts.admin') @section('content')
{{ trans('global.show') }} {{ trans('cruds.userAlert.title') }}
@php $data = Auth::user()->userUserAlerts()->where('id',$userAlert->id)->where('read', false)->first(); if ($data != null) { $p_data = $data->pivot; $p_data->read = true; $p_data->save(); } @endphp
{{ trans('cruds.userAlert.fields.id') }} {{ $userAlert->id }}
{{ trans('cruds.userAlert.fields.alert_text') }} {{ $userAlert->alert_text }}
{{ trans('cruds.userAlert.fields.alert_link') }} {{ $userAlert->alert_link }}
{{ trans('cruds.userAlert.fields.user') }} @foreach($userAlert->users as $key => $user) {{ ucfirst($user->name) }} @endforeach
{{ trans('cruds.userAlert.fields.created_at') }} {{ $userAlert->created_at }}
@endsection