Skip to content

A free open source IT asset/license management system

Revert the php codeblock and replace it with a ternary

Ivan Nieto Vivancod622dbb9434b
diff --git a/resources/views/account/accept/index.blade.php b/resources/views/account/accept/index.blade.php
index 9f11bdfa7b..f2a9bc56f2 100755
--- a/resources/views/account/accept/index.blade.php
+++ b/resources/views/account/accept/index.blade.php
@@ -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