@component('mail::message')
@php
$array = $json->toArray();
@endphp
@if(isset($array['id']))
Código: {{ $array['id'] }}
@endif
@php
foreach($array as $key => $value)
{
if($key == 'r_auth' or $key == 'id'){
continue;
}
if($key == 'e_mail'){
$key = 'e-mail';
}
$key = ucfirst(mb_strtolower((str_replace('_', ' ', $key))));
@endphp
{{ $key }}: {{ $value }}
@php
}
@endphp
@if(\Auth::user())
Usuário que executou a ação: {{\Auth::user()->name}}
@endif
@endcomponent