Commit 27e19bc4 by Farendi Giotivano R.P

foto tidak keluar / salah nih

parent 516fd734
...@@ -32,12 +32,17 @@ ...@@ -32,12 +32,17 @@
<div class="card-body"> <div class="card-body">
<div class="d-flex"> <div class="d-flex">
<div class="flex-shrink-0"> <div class="flex-shrink-0">
@if (is_null($biodata->noidentitas))
<img src="{{ asset('theme/images/users/user-null.jpg') }}" alt="" class="img-fluid img-thumbnail rounded-circle avatar-lg">
@else
@if (Auth::user()->roles->first()->name != 'mahasiswa') @if (Auth::user()->roles->first()->name != 'mahasiswa')
<img src="https://siakadu.unesa.ac.id/photo/fotomhs/{{ $biodata->noidentitas }}.jpg" alt="" class="img-fluid img-thumbnail rounded-circle avatar-lg"> <img src="https://siakadu.unesa.ac.id/photo/fotomhs/{{ $biodata->noidentitas }}.jpg" alt="" class="img-fluid img-thumbnail rounded-circle avatar-lg">
@else @else
<img src="https://siakadu.unesa.ac.id/photo/{{ $biodata->noidentitas }}.jpg" alt="" class="img-fluid img-thumbnail rounded-circle avatar-lg"> <img src="https://siakadu.unesa.ac.id/photo/{{ $biodata->noidentitas }}.jpg" alt="" class="img-fluid img-thumbnail rounded-circle avatar-lg">
@endif @endif
</div> </div>
@endif
<div class="flex-grow-1 ms-3"> <div class="flex-grow-1 ms-3">
<h5 class="text-primary font-size-18 mb-1">{{ $biodata->name }}</h5> <h5 class="text-primary font-size-18 mb-1">{{ $biodata->name }}</h5>
<p class="font-size-12 mb-2">{{ $biodata->noidentitas }}</p> <p class="font-size-12 mb-2">{{ $biodata->noidentitas }}</p>
......
...@@ -44,11 +44,10 @@ ...@@ -44,11 +44,10 @@
{{-- @php dd(Auth::user()->roles->first()); @endphp --}} {{-- @php dd(Auth::user()->roles->first()); @endphp --}}
@if (Auth::user()->roles->first()->name != 'mahasiswa') @if (Auth::user()->roles->first()->name != 'mahasiswa')
<img src="https://siakadu.unesa.ac.id/photo/fotomhs/{{ is_null(Auth::user()->rBiodata) ? '01' : Auth::user()->rBiodata->noidentitas }}.jpg" alt="Header Avatar" class="rounded-circle header-profile-user" > <img src="{{ is_null(Auth::user()->rBiodata) ? asset('theme/images/users/user-null.jpg') : is_null(Auth::user()->rBiodata->noidentitas) ? asset('theme/images/users/user-null') : 'https://siakadu.unesa.ac.id/photo/fotomhs/'.Auth::user()->rBiodata->noidentitas }}.jpg" alt="Header Avatar" class="rounded-circle header-profile-user" >
@else @else
<img src="https://siakadu.unesa.ac.id/photo/{{ is_null(Auth::user()->rBiodata) ? '01' : Auth::user()->rBiodata->noidentitas }}.jpg" alt="Header Avatar" class="rounded-circle header-profile-user" > <img src="{{ is_null(Auth::user()->rBiodata) ? asset('theme/images/users/user-null.jpg') : is_null(Auth::user()->rBiodata->noidentitas) ? asset('theme/images/users/user-null') : 'https://siakadu.unesa.ac.id/photo/'.Auth::user()->rBiodata->noidentitas }}.jpg" alt="Header Avatar" class="rounded-circle header-profile-user" >
@endif @endif
</button> </button>
<div class="dropdown-menu dropdown-menu-end"> <div class="dropdown-menu dropdown-menu-end">
<!-- item--> <!-- item-->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment