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