@php
$avatar = Auth::check() && Auth::user()->pas_photo
? Util::linkFile('pas-photo', Auth::user()->pas_photo)
: url('assets/img/logos/logo-shepia.svg');
@endphp
@if ($icon_back && $url)
@php
$userSegment = basename($url);
@endphp
@if($userSegment == 'user')
@php
$UrluserSegment = 'javascript:history.back()';
@endphp
@else
@if (str_contains(url()->previous(), 'status'))
@php
$UrluserSegment = 'javascript:history.go(-2)';
@endphp
@else
@php
$UrluserSegment = $url;
@endphp
@endif
@endif
{{-- {{ url()->full() }} javascript:history.go(-2) --}}
@endif
{{ $title }} @role(['dokter', 'contract_user']) @if(!empty($user->position)){{ $user->position ?? '-'}}@endif @endrole