Revert the php codeblock and replace it with a ternary

This commit is contained in:
Ivan Nieto Vivanco 2023-03-29 18:37:47 -06:00
parent d7c531e1c7
commit d622dbb943

View file

@ -1,11 +1,8 @@
@extends('layouts/default')
@php
!empty($user) ? $full_name = $user->present()->full_name : $full_name = '';
@endphp
{{-- Page title --}}
@section('title')
{{ trans('general.accept_assets', array('name' => $full_name)) }}
{{ trans('general.accept_assets', array('name' => empty($user) ? '' : $user->present()->full_name)) }}
@parent
@stop