mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Checks if user variable exist before using its properties
This commit is contained in:
parent
c9d1274edc
commit
d7c531e1c7
|
@ -1,8 +1,11 @@
|
|||
@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' => $user->present()->fullName())) }}
|
||||
{{ trans('general.accept_assets', array('name' => $full_name)) }}
|
||||
@parent
|
||||
@stop
|
||||
|
||||
|
|
Loading…
Reference in a new issue