features#add-katalaluan
This commit is contained in:
@@ -13,7 +13,7 @@ class PenggunaController extends Controller
|
||||
{
|
||||
public function index(){
|
||||
$api_url = config('api.url');
|
||||
$auth_user = Auth::user();
|
||||
$auth_user = Auth::user()->toArray();
|
||||
|
||||
return view('pengguna.index',compact('api_url','auth_user'));
|
||||
}
|
||||
|
||||
@@ -20,24 +20,24 @@
|
||||
<div class="grid grid-cols-2">
|
||||
<div class="mb-4 p-2">
|
||||
<label for="name" class="block text-gray-700 text-sm font-bold mb-2">Name</label>
|
||||
<input type="text" id="name" disabled
|
||||
<input type="text" id="name" disabled :value="user.name"
|
||||
class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" />
|
||||
</div>
|
||||
<div class="mb-4 p-2">
|
||||
<label for="email" class="block text-gray-700 text-sm font-bold mb-2">Email</label>
|
||||
<input type="email" id="email" disabled
|
||||
<input type="email" id="email" disabled :value="user.email"
|
||||
class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid grid-cols-2">
|
||||
<div class="mb-4 p-2">
|
||||
<label for="no_kp" class="block text-gray-700 text-sm font-bold mb-2">No KP</label>
|
||||
<input type="text" id="no_kp" disabled
|
||||
<input type="text" id="no_kp" disabled :value="user.no_kp"
|
||||
class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" />
|
||||
</div>
|
||||
<div class="mb-4 p-2">
|
||||
<label for="no_telefon" class="block text-gray-700 text-sm font-bold mb-2">No Telefon</label>
|
||||
<input type="tel" id="no_telefon" disabled
|
||||
<input type="tel" id="no_telefon" disabled :value="user.no_telefon"
|
||||
class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" />
|
||||
</div>
|
||||
</div>
|
||||
@@ -74,11 +74,15 @@
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
// props:[
|
||||
// 'user'
|
||||
// ],
|
||||
data() {
|
||||
return {
|
||||
showprofile: true,
|
||||
showpassword: false,
|
||||
submitStatus:''
|
||||
submitStatus:'',
|
||||
user: this.$attrs.user
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
<breadcrumb :items="[{ 'title' : 'Pengguna', 'icon' : 'fas fa-globe-asia' }]"></breadcrumb>
|
||||
|
||||
<pengguna-component></pengguna-component>
|
||||
<pengguna-component :user="{{ json_encode($auth_user) }}"></pengguna-component>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
|
||||
@@ -31,4 +31,6 @@ Route::group(['prefix' => 'check'], function () {
|
||||
Route::get('/muatturun', 'App\Http\Controllers\KelulusanController@download');
|
||||
|
||||
Route::post('/changepass','App\Http\Controllers\ProfileController@changepassword');
|
||||
Route::get('/profileinfo','App\Http\Controllers\ProfileController@showProfileInformation');
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user