mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Revert the php codeblock and replace it with a ternary
This commit is contained in:
parent
d7c531e1c7
commit
d622dbb943
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue