Commit 99b944eb by Alfiro Pratama

Menu Biodata (Mahasiswa & Dosen)

parent 14855908
......@@ -17,16 +17,15 @@
<div class="col-md-8">
<h6 class="page-title">{!! $title !!}</h6>
<ol class="breadcrumb m-0">
<li class="breadcrumb-item">Mahasiswa</li>
<li class="breadcrumb-item">Biodata</li>
<li class="breadcrumb-item">{!! $title !!}</li>
</ol>
</div>
</div>
</div>
<!-- end page title -->
<div class="row">
{{-- <div class="row">
<div class="col-xl-4 col-md-6">
<div class="card directory-card">
<div class="card-body">
......@@ -50,6 +49,127 @@
</div>
</div>
</div>
</div> --}}
<div class="row">
<div class="col-12">
<div class="card mb-4">
<div class="user-profile-header-banner">
<img src="https://t3.ftcdn.net/jpg/05/57/66/36/360_F_557663678_XvLRb0h4sDvPU8RF8Jtt9NjsOyKK5lbF.jpg" width="100%" height="250px" object-fit="cover" style="transform: scaleY(-1); z-index: 0" alt="Banner image" class="rounded-top">
</div>
<div class="user-profile-header d-flex flex-column flex-lg-row text-sm-start text-center" style="margin-top: -7.5rem; z-index: 1;">
<div class="flex-shrink-0mt-n2 mx-lg-0 mx-auto mb-2">
@if (is_null($biodata->noidentitas))
<img src="{{ asset('theme/images/users/user-null.jpg') }}" width="100" alt="user image" class="d-block h-auto ms-0 ms-sm-3 rounded user-profile-img" style="border: 5px solid; border-color: white;">
@else
@if (Auth::user()->roles->first()->name != 'mahasiswa')
<img src="https://siakadu.unesa.ac.id/photo/fotomhs/{{ $biodata->noidentitas }}.jpg" alt="user image" width="80" class="d-block h-auto ms-0 ms-sm-3 rounded user-profile-img" style="border: 5px solid; border-color: white;">
@else
<img src="https://siakadu.unesa.ac.id/photo/{{ $biodata->noidentitas }}.jpg" width="80" alt="user image" class="d-block h-auto ms-0 ms-sm-3 rounded user-profile-img" style="border: 5px solid; border-color: white;">
@endif
@endif
</div>
<div class="flex-grow-1 mt-3" style="margin-top: 3rem !important;">
<div class="d-flex align-items-md-end align-items-sm-start align-items-center justify-content-md-between justify-content-start mx-3 flex-md-row flex-column gap-4">
<div class="user-profile-info">
<h2>{{ $biodata->name }}</h2>
<ul class="list-inline mb-0 d-flex align-items-center flex-wrap justify-content-sm-start justify-content-center gap-2">
<li class="list-inline-item">
<i class="mdi mdi-card-account-details me-1 mdi-20px"></i><span class="fw-medium">{{ $biodata->noidentitas }}</span>
</li>
<li class="list-inline-item">
<i class="mdi mdi-town-hall me-1 mdi-20px"></i><span class="fw-medium">{{ $biodata->prodi }} - {{ $biodata->fakultas }}</span></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12">
<!-- About User -->
<div class="card mb-4">
<div class="card-body">
<div style="overflow-x:auto;">
<style>
th, td {
padding-bottom: 10px;
}
td {
padding-left: 20px;
}
</style>
<table style="width:100%">
<tr>
<th class="card-text text-uppercase" width="20%">Biodata</th>
<th width="80%"> </th>
</tr>
<tr>
<td class="d-flex align-items-center mdi mdi-account-outline mdi-20px">
<span class="fw-medium mx-2 me-auto">Nama Lengkap</span>
<span class="text-end">:</span>
</td>
<td>{{ $biodata->name }}</td>
</tr>
<tr>
<td class="d-flex align-items-center mdi mdi-card-account-details-outline mdi-20px">
<span class="fw-medium mx-2 me-auto">NIP / NIDN</span>
<span class="text-end">:</span>
</td>
<td>{{ $biodata->noidentitas }}</td>
</tr>
<tr>
<td class="d-flex align-items-center mdi mdi-town-hall mdi-20px">
<span class="fw-medium mx-2 me-auto">Fakultas</span>
<span class="text-end">:</span>
</td>
<td>{{ $biodata->fakultas }}</td>
</tr>
<tr>
<td class="d-flex align-items-center mdi mdi-school-outline mdi-20px">
<span class="fw-medium mx-2 me-auto">Program Studi</span>
<span class="text-end">:</span>
</td>
<td>{{ $biodata->prodi }}</td>
</tr>
<tr>
<td class="d-flex align-items-center mdi mdi-gmail mdi-20px">
<span class="fw-medium mx-2 me-auto">Email UNESA</span>
<span class="text-end">:</span>
</td>
<td>{{ $biodata->email }}</td>
</tr>
<tr>
<td class="d-flex align-items-center mdi mdi-whatsapp mdi-20px">
<span class="fw-medium mx-2 me-auto">No. Telp (WA)</span>
<span class="text-end">:</span>
</td>
<td>
@if (is_null($biodata->telephone) && is_null($biodata->phone))
-
@elseif (is_null($biodata->telephone))
{{ $biodata->phone }}
@elseif (is_null($biodata->phone))
{{ $biodata->telephone }}
@else
{{ $biodata->telephone }} / {{ $biodata->phone }}
@endif
</td>
</tr>
{{-- <td class="d-flex align-items-center mb-3 mdi mdi-map-marker-radius-outline mdi-20px">
<span class="fw-medium mx-2 me-auto">Alamat</span>
<span class="text-end">:</span>
</td> --}}
{{-- <td>{{ $biodata->alamat }}</td> --}}
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
@endsection
......
......@@ -17,7 +17,7 @@
<div class="col-md-8">
<h6 class="page-title">{!! $title !!}</h6>
<ol class="breadcrumb m-0">
<li class="breadcrumb-item">Mahasiswa</li>
<li class="breadcrumb-item">Biodata</li>
<li class="breadcrumb-item">{!! $title !!}</li>
</ol>
</div>
......@@ -25,33 +25,123 @@
</div>
<!-- end page title -->
{{-- @dd($biodata); --}}
<div class="row">
<div class="col-xl-4 col-md-6">
<div class="card directory-card">
<div class="card-body">
<div class="d-flex">
<div class="flex-shrink-0">
<div class="col-12">
<div class="card mb-4">
<div class="user-profile-header-banner">
<img src="https://t3.ftcdn.net/jpg/05/57/66/36/360_F_557663678_XvLRb0h4sDvPU8RF8Jtt9NjsOyKK5lbF.jpg" width="100%" height="250px" object-fit="cover" style="transform: scaleY(-1); z-index: 0" alt="Banner image" class="rounded-top">
</div>
<div class="user-profile-header d-flex flex-column flex-lg-row text-sm-start text-center" style="margin-top: -7.5rem; z-index: 1;">
<div class="flex-shrink-0 mt-n2 mx-lg-0 mx-auto mb-2">
@if (is_null($biodata->noidentitas))
<img src="{{ asset('theme/images/users/user-null.jpg') }}" alt="" class="img-fluid img-thumbnail rounded-circle avatar-lg">
<img src="{{ asset('theme/images/users/user-null.jpg') }}" width="100" alt="user image" class="d-block h-auto ms-0 ms-sm-3 rounded user-profile-img" style="border: 5px solid; border-color: white;">
@else
@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">
@if (Auth::user()->roles->first()->name == 'mahasiswa')
<img src="https://siakadu.unesa.ac.id/photo/fotomhs/{{ $biodata->noidentitas }}.jpg" alt="user image" width="80" class="d-block h-auto ms-0 ms-sm-3 rounded user-profile-img" style="border: 5px solid; border-color: white;">
@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" width="80" alt="user image" class="d-block h-auto ms-0 ms-sm-3 rounded user-profile-img" style="border: 5px solid; border-color: white;">
@endif
</div>
@endif
<div class="flex-grow-1 ms-3">
<h5 class="text-primary font-size-18 mb-1">{{ $biodata->name }}</h5>
<p class="font-size-12 mb-2">{{ $biodata->noidentitas }}</p>
<p class="mb-0">{{ $biodata->email }}</p>
</div>
<div class="flex-grow-1 mt-3" style="margin-top: 3rem !important;">
<div class="d-flex align-items-md-end align-items-sm-start align-items-center justify-content-md-between justify-content-start mx-3 flex-md-row flex-column gap-4">
<div class="user-profile-info">
<h2>{{ $biodata->name }}</h2>
<ul class="list-inline mb-0 d-flex align-items-center flex-wrap justify-content-sm-start justify-content-center gap-2">
<li class="list-inline-item">
<i class="mdi mdi-card-account-details me-1 mdi-20px"></i><span class="fw-medium">{{ $biodata->noidentitas }}</span>
</li>
<li class="list-inline-item">
<i class="mdi mdi-town-hall me-1 mdi-20px"></i><span class="fw-medium">{{ $biodata->prodi }} - {{ $biodata->fakultas }}</span></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12">
<!-- About User -->
<div class="card mb-4">
<div class="card-body">
<div style="overflow-x:auto;">
<style>
th, td {
padding-bottom: 10px;
}
td {
padding-left: 20px;
}
</style>
<table style="width:100%">
<tr>
<th class="card-text text-uppercase" width="20%">Biodata</th>
<th width="80%"> </th>
</tr>
<tr>
<td class="d-flex align-items-center mdi mdi-account-outline mdi-20px">
<span class="fw-medium mx-2 me-auto">Nama Lengkap</span>
<span class="text-end">:</span>
</td>
<td>{{ $biodata->name }}</td>
</tr>
<tr>
<td class="d-flex align-items-center mdi mdi-card-account-details-outline mdi-20px">
<span class="fw-medium mx-2 me-auto">NIM</span>
<span class="text-end">:</span>
</td>
<td>{{ $biodata->noidentitas }}</td>
</tr>
<tr>
<td class="d-flex align-items-center mdi mdi-town-hall mdi-20px">
<span class="fw-medium mx-2 me-auto">Fakultas</span>
<span class="text-end">:</span>
</td>
<td>{{ $biodata->fakultas }}</td>
</tr>
<tr>
<td class="d-flex align-items-center mdi mdi-school-outline mdi-20px">
<span class="fw-medium mx-2 me-auto">Program Studi</span>
<span class="text-end">:</span>
</td>
<td>{{ $biodata->prodi }}</td>
</tr>
<tr>
<td class="d-flex align-items-center mdi mdi-gmail mdi-20px">
<span class="fw-medium mx-2 me-auto">Email UNESA</span>
<span class="text-end">:</span>
</td>
<td>{{ $biodata->email }}</td>
</tr>
<tr>
<td class="d-flex align-items-center mdi mdi-whatsapp mdi-20px">
<span class="fw-medium mx-2 me-auto">No. Telp (WA)</span>
<span class="text-end">:</span>
</td>
<td>
@if (is_null($biodata->telephone) && is_null($biodata->phone))
-
@elseif (is_null($biodata->telephone))
{{ $biodata->phone }}
@elseif (is_null($biodata->phone))
{{ $biodata->telephone }}
@else
{{ $biodata->telephone }} / {{ $biodata->phone }}
@endif
</td>
</tr>
{{-- <td class="d-flex align-items-center mb-3 mdi mdi-map-marker-radius-outline mdi-20px">
<span class="fw-medium mx-2 me-auto">Alamat</span>
<span class="text-end">:</span>
</td> --}}
{{-- <td>{{ $biodata->alamat }}</td> --}}
</tr>
</table>
</div>
<hr>
<p class="mb-0"><b>Fakultas : </b> {{ $biodata->fakultas }}</p>
<p class="mb-0"><b>Program Studi : </b> {{ $biodata->prodi }} </p>
</div>
</div>
</div>
......
......@@ -20,6 +20,7 @@
<link href="{{ asset('theme/libs/chartist/chartist.min.css') }}" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/@mdi/font@7.4.47/css/materialdesignicons.min.css" rel="stylesheet">
<!-- DataTables -->
<link href="{{ asset('theme/libs/datatables.net-bs4/css/dataTables.bootstrap4.min.css') }}" rel="stylesheet"
......
@include('layouts.headpg')
@include('layouts.headpg')
<body data-sidebar="dark">
<!-- Begin page -->
<div id="layout-wrapper">
<header id="page-topbar">
<div class="navbar-header">
<div class="d-flex">
......@@ -24,7 +22,7 @@
</div>
<button type="button" class="btn btn-sm px-3 font-size-24 header-item waves-effect" id="vertical-menu-btn">
<i class="mdi mdi-menu"></i>
<i class="mdi mdi-menu-open"></i>
</button>
<div class="dropdown d-none d-lg-inline-block">
<button type="button" class="btn header-item noti-icon waves-effect" data-bs-toggle="fullscreen">
......@@ -35,15 +33,15 @@
<div class="d-flex">
<!-- App Search-->
<div class="dropdown pt-3 d-inline-block"> <a class="btn btn-secondary dropdown-toggle" href="#" role="button" id="dropdownMenuLink" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{ Auth::user()->name }}
</a> </div>
<div class="dropdown d-inline-block">
{{-- <div class="dropdown pt-3 d-inline-block"> --}}
<button type="button" class="btn header-item waves-effect" id="page-header-user-dropdown" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{-- @php dd(Auth::user()->roles->first()); @endphp --}}
@if (Auth::user()->roles->first()->name != 'mahasiswa')
<b style="margin-right: 15px;">
{{ Auth::user()->name }}
</b>
{{-- @php dd(Auth::user()->roles->first()); @endphp --}}
@if (Auth::user()->roles->first()->name == 'mahasiswa')
<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
<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" >
......@@ -67,8 +65,6 @@
<!-- ========== Left Sidebar Start ========== -->
@include('layouts.menu')
<!-- ============================================================== -->
<!-- Start right Content here -->
<!-- ============================================================== -->
......@@ -82,8 +78,6 @@
</div>
<!-- End Page-content -->
<footer class="footer">
<div class="container-fluid">
<div class="row">
......@@ -101,7 +95,12 @@
<!-- END layout-wrapper -->
@include('layouts.inijs')
<script>
document.getElementById('vertical-menu-btn').addEventListener('click', function() {
var icon = this.querySelector('i');
icon.classList.toggle('mdi-flip-h');
});
</script>
</body>
</html>
......@@ -67,9 +67,9 @@
<li><a href="{{ URL::to('operator/seleksi-internal-proposal') }}">Daftar Proposal</a></li>
</ul>
</li>
<li class="{{ (request()->is('operator/seleksi-belmawa*')) ? 'mm-active' : '' }}">
{{-- <li class="{{ (request()->is('operator/seleksi-belmawa*')) ? 'mm-active' : '' }}">
<a href="{{ URL::to('/operator/seleksi-belmawa') }}" class="waves-effect"><i class="ti-check-box"></i><span>Seleksi Belmawa</span></a>
</li>
</li> --}}
<li class="{{ (request()->is('operator/monev-internal*')) ? 'mm-active' : '' }}">
<a href="javascript: void(0);" class="has-arrow waves-effect">
<i class="ti-layers-alt"></i>
......@@ -88,12 +88,12 @@
<li><a href="{{ URL::to('operator/monev-internal-proposal/'.Crypt::encrypt('21a49a70-33bb-49f1-9fd9-ebe52fa4336c')) }}">Daftar Proposal</a></li>
</ul>
</li>
<li><a href="javascript: void(0);" class="has-arrow">Monev Internal III</a>
{{-- <li><a href="javascript: void(0);" class="has-arrow">Monev Internal III</a>
<ul class="sub-menu" aria-expanded="true">
<li><a href="{{ URL::to('operator/monev-internal-reviewer/'.Crypt::encrypt('068aa53d-91a0-4704-b72c-54757799a286')) }}">Reviewer</a></li>
<li><a href="{{ URL::to('operator/monev-internal-proposal/'.Crypt::encrypt('068aa53d-91a0-4704-b72c-54757799a286')) }}">Daftar Proposal</a></li>
</ul>
</li>
</li> --}}
</ul>
</li>
@endif
......@@ -115,9 +115,9 @@
<li>
<a href="{{ URL::to('/mahasiswa/seleksi-internal') }}" class="waves-effect"><i class="ti-check"></i><span>Seleksi Internal</span></a>
</li>
<li>
{{-- <li>
<a href="{{ URL::to('/mahasiswa/seleksi-belmawa') }}" class="waves-effect"><i class="ti-check-box"></i><span>Seleksi Belmawa</span></a>
</li>
</li> --}}
<li>
<a href="javascript: void(0);" class="has-arrow waves-effect">
<i class="ti-layers-alt"></i>
......@@ -126,7 +126,7 @@
<ul class="sub-menu" aria-expanded="false">
<li><a href="{{ URL::to('/mahasiswa/monev/I') }}">Monev Internal I</a></li>
<li><a href="{{ URL::to('/mahasiswa/monev/II') }}">Monev Internal II</a></li>
<li><a href="{{ URL::to('/mahasiswa/monev/III') }}">Monev Internal III</a></li>
{{-- <li><a href="{{ URL::to('/mahasiswa/monev/III') }}">Monev Internal III</a></li> --}}
</ul>
</li>
@endif
......@@ -148,9 +148,9 @@
<li>
<a href="{{ URL::to('/dosen/seleksi-internal') }}" class="waves-effect"><i class="ti-check"></i><span>Seleksi Internal</span></a>
</li>
<li>
{{-- <li>
<a href="{{ URL::to('/dosen/seleksi-belmawa') }}" class="waves-effect"><i class="ti-check-box"></i><span>Seleksi Belmawa</span></a>
</li>
</li> --}}
<li>
<a href="javascript: void(0);" class="has-arrow waves-effect">
<i class="ti-layers-alt"></i>
......@@ -159,7 +159,7 @@
<ul class="sub-menu" aria-expanded="false">
<li><a href="{{ URL::to('/dosen/monev/I') }}">Monev Internal I</a></li>
<li><a href="{{ URL::to('/dosen/monev/II') }}">Monev Internal II</a></li>
<li><a href="{{ URL::to('/dosen/monev/III') }}">Monev Internal III</a></li>
{{-- <li><a href="{{ URL::to('/dosen/monev/III') }}">Monev Internal III</a></li> --}}
</ul>
</li>
@endif
......@@ -177,7 +177,7 @@
<ul class="sub-menu" aria-expanded="false">
<li><a href="{{ URL::to('/reviewer/monev-internal/'.Crypt::encrypt('07cda89b-94ca-42a3-a197-8fc1260ebcfb')) }}">Monev Internal I</a></li>
<li><a href="{{ URL::to('/reviewer/monev-internal/'.Crypt::encrypt('21a49a70-33bb-49f1-9fd9-ebe52fa4336c')) }}">Monev Internal II</a></li>
<li><a href="{{ URL::to('/reviewer/monev-internal/'.Crypt::encrypt('068aa53d-91a0-4704-b72c-54757799a286')) }}">Monev Internal III</a></li>
{{-- <li><a href="{{ URL::to('/reviewer/monev-internal/'.Crypt::encrypt('068aa53d-91a0-4704-b72c-54757799a286')) }}">Monev Internal III</a></li> --}}
</ul>
</li>
@endif
......
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