Commit eed3f838 by Muhammad Iskandar Java

Merge branch 'master' of http://git.unesa.ac.id/farendi/simlitabmas into master

parents 152498dc 4fa7e3ab
<?php
namespace App\Http\Controllers\Admin;
use Alert;
use Crypt;
use App\Http\Controllers\Controller;
use App\Repositories\Admin\MsBidangKepakaranKategoriRepository;
use App\Repositories\Admin\MsBidangKepakaranRepository;
use Illuminate\Http\Request;
class BidangKepakaranController extends Controller
{
private $bidangkepakaranRepo;
private $bidangkepakarankategoriRepo;
public function __construct(
MsBidangKepakaranKategoriRepository $bidangkepakarankategoriRepo,
MsBidangKepakaranRepository $bidangkepakaranRepo
) {
$this->bidangkepakaranRepo = $bidangkepakaranRepo;
$this->bidangkepakarankategoriRepo = $bidangkepakarankategoriRepo;
}
public function index()
{
//
$menu = 'bidangkepakaran';
$bidangkepakaran = $this->bidangkepakaranRepo->get(['rKategori']);
$bidangkepakarankategori = $this->bidangkepakarankategoriRepo->get();
//dd($bidangkepakarankategori);
$data = [
'bidangkepakaran' => $bidangkepakaran,
'bidangkepakarankategori' => $bidangkepakarankategori,
'menu' => $menu
];
return view('admin.bidang.index', $data);
}
public function bidangkategori()
{
//
$menu = 'bidangkepakaran';
$bidangkepakarankategori = $this->bidangkepakarankategoriRepo->get();
//dd($bidangkepakarankategori);
$data = [
'bidangkepakarankategori' => $bidangkepakarankategori,
'menu' => $menu
];
return view('admin.bidang.kategori', $data);
}
public function create()
{
//
return view('admin.bidangkepakaran.create');
}
public function store(Request $request)
{
//
$data = $request->except('_token');
$data['user_id'] = auth()->user()->id;
$bidangkepakaran = $this->bidangkepakaranRepo->store($data);
$data = [
'bidangkepakaran' => $bidangkepakaran->id,
];
Alert::success('Berhasil', 'bidangkepakaran berhasil disimpan');
return redirect()->route('admin.bidangkepakaran.index', $data);
}
public function kategoristore(Request $request)
{
//
$data = $request->except('_token');
$data['user_id'] = auth()->user()->id;
$bidangkepakarankategori = $this->bidangkepakarankategoriRepo->store($data);
$data = [
'bidangkepakarankategori' => $bidangkepakarankategori->id,
];
Alert::success('Berhasil', 'Kategori Bidang kepakaran berhasil disimpan');
return redirect()->route('admin.bidang.kategori', $data);
}
public function show($id)
{
//
}
public function edit($id)
{
//
$menu = 'bidangkepakaran';
$bidangkepakaran = $this->bidangkepakaranRepo->findId(null, $id);
$data = [
'menu' => $menu,
'bidangkepakaran' => $bidangkepakaran,
];
return view('admin.bidang.edit', $data);
}
public function kategoriedit($id)
{
//
$menu = 'bidangkepakarankategori';
$bidangkepakarankategori = $this->bidangkepakarankategoriRepo->findId(null, $id);
$data = [
'menu' => $menu,
'bidangkepakarankategori' => $bidangkepakarankategori,
];
return view('admin.bidang.edit', $data);
}
public function update(Request $request, $id)
{
//
$data = $request->except('_token');
$data['userid_updated'] = auth()->user()->id;
$bidangkepakaran = $this->bidangkepakaranRepo->findId(null, $id);
$this->bidangkepakaranRepo->update($data, $bidangkepakaran);
$data = [
'bidangkepakaran' => $bidangkepakaran->id,
];
Alert::success('Berhasil', 'bidangkepakaran berhasil diupdated');
return redirect()->route('bidang.index', $data);
}
public function kategoriupdate(Request $request, $id)
{
//
$data = $request->except('_token');
$data['userid_updated'] = auth()->user()->id;
$bidangkepakarankategori = $this->bidangkepakarankategoriRepo->findId(null, $id);
$this->bidangkepakarankategoriRepo->update($data, $bidangkepakarankategori);
$data = [
'bidangkepakarankategori' => $bidangkepakarankategori->id,
];
Alert::success('Berhasil', 'bidangkepakarankategori berhasil diupdated');
return redirect()->route('bidang.index', $data);
}
public function destroy($id)
{
//
$model = $this->bidangkepakaranRepo->findId(null, Crypt::decrypt($id));
$this->bidangkepakaranRepo->destroy($model);
Alert::success('Data berhasil dihapus')->persistent('Ok');
return redirect()->route('bidang.index');
}
}
......@@ -5,49 +5,61 @@ namespace App\Http\Controllers\Admin;
use Alert;
use Crypt;
use App\Http\Controllers\Controller;
use App\Repositories\Admin\MsBidangPenelitianKategoriRepository;
use App\Repositories\Admin\MsBidangPenelitianRepository;
use Illuminate\Http\Request;
class BidangPenelitianController extends Controller
{
private $bidangpenelitianRepo;
private $bidangpenelitiankategoriRepo;
public function __construct(MsBidangPenelitianRepository $bidangpenelitianRepo)
{
public function __construct(
MsBidangPenelitianKategoriRepository $bidangpenelitiankategoriRepo,
MsBidangPenelitianRepository $bidangpenelitianRepo
){
$this->bidangpenelitianRepo = $bidangpenelitianRepo;
$this->bidangpenelitiankategoriRepo = $bidangpenelitiankategoriRepo;
}
public function index()
{
//
$menu = 'bidangpenelitian';
$bidangpenelitian = $this->bidangpenelitianRepo->get();
$bidangpenelitian = $this->bidangpenelitianRepo->get(['rKategori']);
$bidangpenelitiankategori = $this->bidangpenelitiankategoriRepo->get();
//dd($bidangpenelitiankategori);
$data = [
'bidangpenelitian' => $bidangpenelitian,
'bidangpenelitiankategori' => $bidangpenelitiankategori,
'menu' => $menu
];
return view('admin.bidang.index', $data);
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function bidangkategori()
{
//
$menu = 'bidangpenelitian';
$bidangpenelitiankategori = $this->bidangpenelitiankategoriRepo->get();
//dd($bidangpenelitiankategori);
$data = [
'bidangpenelitiankategori' => $bidangpenelitiankategori,
'menu' => $menu
];
return view('admin.bidang.kategori', $data);
}
public function create()
{
//
return view('admin.bidangpenelitian.create');
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
//
......@@ -61,26 +73,32 @@ class BidangPenelitianController extends Controller
Alert::success('Berhasil', 'bidangpenelitian berhasil disimpan');
return redirect()->route('bidang.index', $data);
return redirect()->route('admin.bidangpenelitian.index', $data);
}
/**
* Display the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function kategoristore(Request $request)
{
//
$data = $request->except('_token');
$data['user_id'] = auth()->user()->id;
$bidangpenelitiankategori = $this->bidangpenelitiankategoriRepo->store($data);
$data = [
'bidangpenelitiankategori' => $bidangpenelitiankategori->id,
];
Alert::success('Berhasil', 'Kategori Bidang Penelitian berhasil disimpan');
return redirect()->route('admin.bidang.kategori', $data);
}
public function show($id)
{
//
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function edit($id)
{
//
......@@ -96,13 +114,22 @@ class BidangPenelitianController extends Controller
return view('admin.bidang.edit', $data);
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return \Illuminate\Http\Response
*/
public function kategoriedit($id)
{
//
$menu = 'bidangpenelitiankategori';
$bidangpenelitiankategori = $this->bidangpenelitiankategoriRepo->findId(null, $id);
$data = [
'menu' => $menu,
'bidangpenelitiankategori' => $bidangpenelitiankategori,
];
return view('admin.bidang.edit', $data);
}
public function update(Request $request, $id)
{
//
......@@ -120,12 +147,24 @@ class BidangPenelitianController extends Controller
return redirect()->route('bidang.index', $data);
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function kategoriupdate(Request $request, $id)
{
//
$data = $request->except('_token');
$data['userid_updated'] = auth()->user()->id;
$bidangpenelitiankategori = $this->bidangpenelitiankategoriRepo->findId(null, $id);
$this->bidangpenelitiankategoriRepo->update($data, $bidangpenelitiankategori);
$data = [
'bidangpenelitiankategori' => $bidangpenelitiankategori->id,
];
Alert::success('Berhasil', 'bidangpenelitiankategori berhasil diupdated');
return redirect()->route('bidang.index', $data);
}
public function destroy($id)
{
//
......
<?php
namespace App\Http\Controllers\Admin;
use Alert;
use Crypt;
use App\Http\Controllers\Controller;
use App\Repositories\Admin\MsTujuanSosialKategoriRepository;
use App\Repositories\Admin\MsTujuanSosialRepository;
use Illuminate\Http\Request;
class TujuanSosialController extends Controller
{
private $tujuansosialRepo;
private $tujuansosialkategoriRepo;
public function __construct(
MsTujuanSosialKategoriRepository $tujuansosialkategoriRepo,
MsTujuanSosialRepository $tujuansosialRepo
) {
$this->tujuansosialRepo = $tujuansosialRepo;
$this->tujuansosialkategoriRepo = $tujuansosialkategoriRepo;
}
public function index()
{
//
$menu = 'tujuansosial';
$tujuansosial = $this->tujuansosialRepo->get(['rKategori']);
$tujuansosialkategori = $this->tujuansosialkategoriRepo->get();
//dd($tujuansosialkategori);
$data = [
'tujuansosial' => $tujuansosial,
'tujuansosialkategori' => $tujuansosialkategori,
'menu' => $menu
];
return view('admin.tujuan.index', $data);
}
public function tujuankategori()
{
//
$menu = 'tujuansosial';
$tujuansosialkategori = $this->tujuansosialkategoriRepo->get();
//dd($tujuansosialkategori);
$data = [
'tujuansosialkategori' => $tujuansosialkategori,
'menu' => $menu
];
return view('admin.tujuan.kategori', $data);
}
public function create()
{
//
return view('admin.tujuan.create');
}
public function store(Request $request)
{
//
$data = $request->except('_token');
$data['user_id'] = auth()->user()->id;
$tujuansosial = $this->tujuansosialRepo->store($data);
$data = [
'tujuansosial' => $tujuansosial->id,
];
Alert::success('Berhasil', 'tujuansosial berhasil disimpan');
return redirect()->route('admin.tujuansosial.index', $data);
}
public function kategoristore(Request $request)
{
//
$data = $request->except('_token');
$data['user_id'] = auth()->user()->id;
$tujuansosialkategori = $this->tujuansosialkategoriRepo->store($data);
$data = [
'tujuansosialkategori' => $tujuansosialkategori->id,
];
Alert::success('Berhasil', 'Kategori Tujuan Sosial berhasil disimpan');
return redirect()->route('admin.tujuan.kategori', $data);
}
public function show($id)
{
//
}
public function edit($id)
{
//
$menu = 'tujuansosial';
$tujuansosial = $this->tujuansosialRepo->findId(null, $id);
$data = [
'menu' => $menu,
'tujuansosial' => $tujuansosial,
];
return view('admin.tujuan.edit', $data);
}
public function kategoriedit($id)
{
//
$menu = 'tujuansosialkategori';
$tujuansosialkategori = $this->tujuansosialkategoriRepo->findId(null, $id);
$data = [
'menu' => $menu,
'tujuansosialkategori' => $tujuansosialkategori,
];
return view('admin.tujuan.edit', $data);
}
public function update(Request $request, $id)
{
//
$data = $request->except('_token');
$data['userid_updated'] = auth()->user()->id;
$tujuansosial = $this->tujuansosialRepo->findId(null, $id);
$this->tujuansosialRepo->update($data, $tujuansosial);
$data = [
'tujuansosial' => $tujuansosial->id,
];
Alert::success('Berhasil', 'tujuansosial berhasil diupdated');
return redirect()->route('tujuansosial.index', $data);
}
public function tujuanupdate(Request $request, $id)
{
//
$data = $request->except('_token');
$data['userid_updated'] = auth()->user()->id;
$tujuansosialkategori = $this->tujuansosialkategoriRepo->findId(null, $id);
$this->tujuansosialkategoriRepo->update($data, $tujuansosialkategori);
$data = [
'tujuansosialkategori' => $tujuansosialkategori->id,
];
Alert::success('Berhasil', 'tujuansosialkategori berhasil diupdated');
return redirect()->route('tujuansosial.index', $data);
}
public function destroy($id)
{
//
$model = $this->tujuansosialRepo->findId(null, Crypt::decrypt($id));
$this->tujuansosialRepo->destroy($model);
Alert::success('Data berhasil dihapus')->persistent('Ok');
return redirect()->route('tujuansosial.index');
}
}
......@@ -56,7 +56,7 @@ class LoginController extends Controller
$this->getadduser($auth);
return redirect()->route('home');
return redirect()->route('dashboard');
}
}
......@@ -91,7 +91,7 @@ class LoginController extends Controller
{
Auth::loginUsingId($userid);
return redirect()->to('/');
return redirect()->intended('dashboard');
}
private function getAdduser($auth)
......@@ -109,7 +109,7 @@ class LoginController extends Controller
DB::commit();
return redirect()->intended('/');
return redirect()->intended('dashboard');
} catch (Exception $ex) {
DB::rollBack();
}
......
......@@ -2,7 +2,7 @@
namespace App\Http\Controllers\User;
use Alert;
use UxWeb\SweetAlert\SweetAlert as Alert;
use App\Http\Controllers\Controller;
use App\Repositories\User\KontrakKerjaRepository;
use Crypt;
......@@ -115,7 +115,8 @@ class KontrakKerjaController extends Controller
'kontrakkerja' => $kontrakkerja->id,
];
Alert::success('Berhasil', 'Kontrak Kerja berhasil diupdated');
//Alert::success('Berhasil', 'Kontrak Kerja berhasil diupdated');
alert()->warning('Berhasil', 'Kontrak Kerja berhasil diupdated');
return redirect()->route('kontrakkerja.index', $data);
}
......
......@@ -21,6 +21,6 @@ class MsBidangPenelitian extends Model
public function rKategori()
{
return $this->belongsTo(MsBidangPenelitian::class, 'id', 'id_kategori');
return $this->belongsTo(MsBidangPenelitianKategori::class, 'id_kategori', 'id');
}
}
......@@ -16,4 +16,9 @@ class MsTujuanSosial extends Model
protected $keyType = 'string';
protected $fillable = ['nama', 'created_at', 'updated_at', 'userid_created', 'userid_updated'];
public function rKategori()
{
return $this->belongsTo(MsTujuanSosialKategori::class, 'id_tujuan_kategori', 'id');
}
}
<?php
namespace App\Repositories\Admin;
use App\Models\Admin\MsBidangPenelitianKategori;
use App\Repositories\Repository;
class MsBidangPenelitianKategoriRepository extends Repository
{
protected $model;
public function __construct(MsBidangPenelitianKategori $model)
{
$this->model = $model;
}
public function get($with = null, $search = null, $id = null)
{
return $this->model->when($with, function ($query) use ($with) {
return $query->with($with);
})
->when($search, function ($query) use ($search) {
return $query->where('search', $search);
})
->when($id, function ($query) use ($id) {
return $query->where('id', $id);
})
->get();
}
}
<?php
namespace App\Repositories\Admin;
use App\Models\Admin\MsTujuanSosialKategori;
use App\Repositories\Repository;
class MsTujuanSosialKategoriRepository extends Repository
{
protected $model;
public function __construct(MsTujuanSosialKategori $model)
{
$this->model = $model;
}
public function get($with = null, $search = null, $id = null)
{
return $this->model->when($with, function ($query) use ($with) {
return $query->with($with);
})
->when($search, function ($query) use ($search) {
return $query->where('search', $search);
})
->when($id, function ($query) use ($id) {
return $query->where('id', $id);
})
->get();
}
}
......@@ -18,29 +18,27 @@
<div class="col-xl-12 col-lg-12 col-sm-12 layout-spacing">
<div class="widget-content widget-content-area br-6">
<div class="table-responsive mb-4 mt-4">
<a href="{{ url('admin/bidangpenelitian/create') }}" class="btn btn-primary mb-2"><i data-feather="file-plus"></i> Tambah</a>
<button type="button" data-target="#tambah" data-toggle="modal" class="btn btn-primary mb-2"><i data-feather="file-plus"></i> Tambah</button>
<table id="zero-config" class="table table-hover" style="width:100%">
<thead>
<tr>
<th>No</th>
<th>Nama Unit</th>
<th>No SK</th>
<th>Status</th>
<th style="width: 20%">Aksi</th>
<th>Kategori</th>
<th>Bidang Penelitian</th>
<th style="width: 15%">Aksi</th>
</tr>
</thead>
<tbody>
@php $no = 1; @endphp
@foreach ($fasilitas as $value)
@foreach ($bidangpenelitian as $value)
<tr>
<td>{{ $no++ }}</td>
<td>{{ $value->namaunit }}</td>
<td>{{ $value->nosk }}</td>
<td>{{ $value->status }}</td>
<td>{{ $value->rKategori->namabidang }}</td>
<td>{{ $value->nama }}</td>
<td>
<a href="{{ url('fasilitas/'.$value->id.'/edit') }}" class="btn btn-warning mb-2"><i data-feather="edit"></i> Edit</a> |
<button class="btn btn-danger mb-2 delete" data-id="{{ $value->id }}" data-file="{{$value->id}}"><i data-feather="trash-2"></i> Delete</button>
{{ Form::open(['url'=>route('fasilitas.destroy', [Crypt::encrypt($value->id)]), 'method'=>'delete', 'id' => $value->id, 'style' => 'display: none;']) }}
{{-- <a href="{{ url('bidangpenelitian/'.$value->id.'/edit') }}" class="btn btn-warning mb-2"><i data-feather="edit"></i></a> | --}}
<button class="btn btn-danger mb-2 delete" data-id="{{ $value->id }}" data-file="{{$value->id}}"><i data-feather="trash-2"></i></button>
{{ Form::open(['url'=>route('admin.bidangpenelitian.destroy', [Crypt::encrypt($value->id)]), 'method'=>'delete', 'id' => $value->id, 'style' => 'display: none;']) }}
{{ csrf_field() }}
{{ Form::close() }}
</td>
......@@ -54,6 +52,39 @@
</div>
<div class="modal fade" id="tambah" tabindex="-1" role="dialog" aria-labelledby="ModalTambah" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="ModalTambah">Tambah Bidang Penelitian</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>
</button>
</div>
{{ Form::open(['url' => route('admin.bidangpenelitian.store'), 'method' => 'post', 'class' => 'section general-info', 'id' => 'bidangpenelitian']) }}
<div class="modal-body">
<div class="form-group">
<label>Kategori</label>
<select class="form-control mb-2" id="id_kategori" name="id_kategori">
@foreach($bidangpenelitiankategori as $item)
<option value="{{$item->id}}">{{$item->namabidang}}</option>
@endforeach
</select>
</div>
<div class="form-group">
<label>Nama Bidang Penelitian</label>
<input type="text" class="form-control mb-2" id="nama" name="nama" placeholder="Nama Bidang Penelitian">
</div>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal"><i class="flaticon-cancel-12"></i> Batal</button>
<button type="submit" class="btn btn-primary">Save</button>
</div>
{{ Form::close() }}
</div>
</div>
</div>
@endsection
@section('js')
......
@extends('layouts.master')
@section('title')
Bidang Penelitian
@endsection
@section('header')
<div class="page-title">
<h3>Bidang Penelitian</h3>
</div>
@endsection
@section('contents')
@php
$menu = 'dashboard';
@endphp
<div class="row layout-top-spacing" id="cancel-row">
<div class="col-xl-12 col-lg-12 col-sm-12 layout-spacing">
<div class="widget-content widget-content-area br-6">
<div class="table-responsive mb-4 mt-4">
<button type="button" data-target="#tambah" data-toggle="modal" class="btn btn-primary mb-2"><i data-feather="file-plus"></i> Tambah</button>
<table id="zero-config" class="table table-hover" style="width:100%">
<thead>
<tr>
<th>No</th>
<th>Kategori</th>
<th style="width: 15%">Aksi</th>
</tr>
</thead>
<tbody>
@php $no = 1; @endphp
@foreach ($bidangpenelitiankategori as $value)
<tr>
<td>{{ $no++ }}</td>
<td>{{ $value->namabidang }}</td>
<td>
<button type="button" data-target="#edit" data-toggle="modal" class="btn btn-warning mb-2"><i data-feather="edit"></i></button>
{{-- <button class="btn btn-danger mb-2 delete" data-id="{{ $value->id }}" data-file="{{$value->id}}"><i data-feather="trash-2"></i></button>
{{ Form::open(['url'=>route('admin.bidangpenelitian.destroy', [Crypt::encrypt($value->id)]), 'method'=>'delete', 'id' => $value->id, 'style' => 'display: none;']) }}
{{ csrf_field() }}
{{ Form::close() }} --}}
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="modal fade" id="tambah" tabindex="-1" role="dialog" aria-labelledby="ModalTambah" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="ModalTambah">Tambah Kategori Bidang Penelitian</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>
</button>
</div>
{{ Form::open(['url' => route('admin.bidangkategori.simpan'), 'method' => 'post', 'class' => 'section general-info', 'id' => 'bidangkategori']) }}
<div class="modal-body">
<div class="form-group">
<label>Nama Kategori Bidang Penelitian</label>
<input type="text" class="form-control mb-2" id="nama" name="nama" placeholder="Nama Kategori Bidang Penelitian">
</div>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal"><i class="flaticon-cancel-12"></i> Batal</button>
<button type="submit" class="btn btn-primary">Save</button>
</div>
{{ Form::close() }}
</div>
</div>
</div>
<div class="modal fade" id="edit" tabindex="-1" role="dialog" aria-labelledby="ModalUpdate" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="ModalUpdate">Edit Kategori Bidang Penelitian</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>
</button>
</div>
{{ Form::open(['method' => 'post', 'class' => 'section general-info', 'id' => 'updatekategori']) }}
<div class="modal-body">
<div class="form-group">
<label>Nama Kategori Bidang Penelitian</label>
<input type="hidden" class="form-control mb-2" id="id" name="id">
<input type="text" class="form-control mb-2" id="nama" name="nama" placeholder="Nama Kategori Bidang Penelitian">
</div>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal"><i class="flaticon-cancel-12"></i> Batal</button>
<button type="submit" id="submit" class="btn btn-primary">Save</button>
</div>
{{ Form::close() }}
</div>
</div>
</div>
@endsection
@section('js')
<script src="{{ url('theme/plugins/table/datatable/datatables.js') }}"></script>
<script>
$('#zero-config').DataTable({
"oLanguage": {
"oPaginate": { "sPrevious": '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left"><line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline></svg>', "sNext": '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>' },
"sInfo": "Showing page _PAGE_ of _PAGES_",
"sSearch": '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>',
"sSearchPlaceholder": "Search...",
"sLengthMenu": "Results : _MENU_",
},
"stripeClasses": [],
"lengthMenu": [10, 20, 50],
"pageLength": 10
});
var url = "{{ route('admin.bidangpenelitian.index') }}";
$("body").on("click", ".delete", function (e) {
e.preventDefault();
var id = $(this).data('id');
Swal.fire({
title: "Apakah Anda Yakin?",
text: "Anda akan menghapus data ini!",
icon: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Yes",
cancelButtonText: "No"
}).then((result) => {
if (result.value) {
Swal.close();
$("#"+id).submit();
} else if (result.dismiss === Swal.DismissReason.cancel) {
Swal.fire('Dibatalkan', 'Data batal dihapus', 'error');
}
});
});
</script>
@endsection
@extends('layouts.master')
@section('title')
Master Tujuan Sosial Ekonomi
@endsection
@section('header')
<div class="page-title">
<h3>Tujuan Sosial Ekonomi</h3>
</div>
@endsection
@section('contents')
@php
$menu = 'dashboard';
@endphp
<div class="row layout-top-spacing" id="cancel-row">
<div class="col-xl-12 col-lg-12 col-sm-12 layout-spacing">
<div class="widget-content widget-content-area br-6">
<div class="table-responsive mb-4 mt-4">
<button type="button" data-target="#tambah" data-toggle="modal" class="btn btn-primary mb-2"><i data-feather="file-plus"></i> Tambah</button>
<table id="zero-config" class="table table-hover" style="width:100%">
<thead>
<tr>
<th>No</th>
<th>Kategori</th>
<th>Bidang Kepakaran</th>
<th style="width: 15%">Aksi</th>
</tr>
</thead>
<tbody>
@php $no = 1; @endphp
@foreach ($bidangkepakaran as $value)
<tr>
<td>{{ $no++ }}</td>
<td>{{ $value->rKategori->namabidang }}</td>
<td>{{ $value->nama }}</td>
<td>
{{-- <a href="{{ url('bidangkepakaran/'.$value->id.'/edit') }}" class="btn btn-warning mb-2"><i data-feather="edit"></i></a> | --}}
<button class="btn btn-danger mb-2 delete" data-id="{{ $value->id }}" data-file="{{$value->id}}"><i data-feather="trash-2"></i></button>
{{ Form::open(['url'=>route('admin.bidangkepakaran.destroy', [Crypt::encrypt($value->id)]), 'method'=>'delete', 'id' => $value->id, 'style' => 'display: none;']) }}
{{ csrf_field() }}
{{ Form::close() }}
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
@endsection
@section('js')
<script src="{{ url('theme/plugins/table/datatable/datatables.js') }}"></script>
<script>
$('#zero-config').DataTable({
"oLanguage": {
"oPaginate": { "sPrevious": '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left"><line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline></svg>', "sNext": '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>' },
"sInfo": "Showing page _PAGE_ of _PAGES_",
"sSearch": '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>',
"sSearchPlaceholder": "Search...",
"sLengthMenu": "Results : _MENU_",
},
"stripeClasses": [],
"lengthMenu": [10, 20, 50],
"pageLength": 10
});
var url = "{{ route('admin.tujuansosial.index') }}";
$("body").on("click", ".delete", function (e) {
e.preventDefault();
var id = $(this).data('id');
Swal.fire({
title: "Apakah Anda Yakin?",
text: "Anda akan menghapus data ini!",
icon: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Yes",
cancelButtonText: "No"
}).then((result) => {
if (result.value) {
Swal.close();
$("#"+id).submit();
} else if (result.dismiss === Swal.DismissReason.cancel) {
Swal.fire('Dibatalkan', 'Data batal dihapus', 'error');
}
});
});
</script>
@endsection
@extends('layouts.master')
@section('title')
Master Tujuan Sosial Ekonomi
@endsection
@section('header')
<div class="page-title">
<h3>Tujuan Sosial Ekonomi</h3>
</div>
@endsection
@section('contents')
@php
$menu = 'dashboard';
@endphp
<div class="row layout-top-spacing" id="cancel-row">
<div class="col-xl-12 col-lg-12 col-sm-12 layout-spacing">
<div class="widget-content widget-content-area br-6">
<div class="table-responsive mb-4 mt-4">
<button type="button" data-target="#tambah" data-toggle="modal" class="btn btn-primary mb-2"><i data-feather="file-plus"></i> Tambah</button>
<table id="zero-config" class="table table-hover" style="width:100%">
<thead>
<tr>
<th>No</th>
<th>Bidang Kepakaran</th>
<th style="width: 15%">Aksi</th>
</tr>
</thead>
<tbody>
@php $no = 1; @endphp
@foreach ($bidangkepakarankategori as $value)
<tr>
<td>{{ $no++ }}</td>
<td>{{ $value->namabidang }}</td>
<td>
{{-- <a href="{{ url('bidangkepakarankategori/'.$value->id.'/edit') }}" class="btn btn-warning mb-2"><i data-feather="edit"></i></a> | --}}
<button class="btn btn-danger mb-2 delete" data-id="{{ $value->id }}" data-file="{{$value->id}}"><i data-feather="trash-2"></i></button>
{{ Form::open(['url'=>route('admin.bidangkepakarankategori.destroy', [Crypt::encrypt($value->id)]), 'method'=>'delete', 'id' => $value->id, 'style' => 'display: none;']) }}
{{ csrf_field() }}
{{ Form::close() }}
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
@endsection
@section('js')
<script src="{{ url('theme/plugins/table/datatable/datatables.js') }}"></script>
<script>
$('#zero-config').DataTable({
"oLanguage": {
"oPaginate": { "sPrevious": '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left"><line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline></svg>', "sNext": '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>' },
"sInfo": "Showing page _PAGE_ of _PAGES_",
"sSearch": '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>',
"sSearchPlaceholder": "Search...",
"sLengthMenu": "Results : _MENU_",
},
"stripeClasses": [],
"lengthMenu": [10, 20, 50],
"pageLength": 10
});
var url = "{{ route('admin.tujuansosial.index') }}";
$("body").on("click", ".delete", function (e) {
e.preventDefault();
var id = $(this).data('id');
Swal.fire({
title: "Apakah Anda Yakin?",
text: "Anda akan menghapus data ini!",
icon: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Yes",
cancelButtonText: "No"
}).then((result) => {
if (result.value) {
Swal.close();
$("#"+id).submit();
} else if (result.dismiss === Swal.DismissReason.cancel) {
Swal.fire('Dibatalkan', 'Data batal dihapus', 'error');
}
});
});
</script>
@endsection
......@@ -18,8 +18,34 @@
<div class="col-xl-12 col-lg-12 col-sm-12 layout-spacing">
<div class="widget-content widget-content-area br-6">
<div class="table-responsive mb-4 mt-4">
{{-- table --}}
<button type="button" data-target="#tambah" data-toggle="modal" class="btn btn-primary mb-2"><i data-feather="file-plus"></i> Tambah</button>
<table id="zero-config" class="table table-hover" style="width:100%">
<thead>
<tr>
<th>No</th>
<th>Kategori</th>
<th>Bidang Penelitian</th>
<th style="width: 15%">Aksi</th>
</tr>
</thead>
<tbody>
@php $no = 1; @endphp
@foreach ($tujuansosial as $value)
<tr>
<td>{{ $no++ }}</td>
<td>{{ $value->rKategori->namatujuan }}</td>
<td>{{ $value->nama }}</td>
<td>
{{-- <a href="{{ url('tujuansosial/'.$value->id.'/edit') }}" class="btn btn-warning mb-2"><i data-feather="edit"></i></a> | --}}
<button class="btn btn-danger mb-2 delete" data-id="{{ $value->id }}" data-file="{{$value->id}}"><i data-feather="trash-2"></i></button>
{{ Form::open(['url'=>route('admin.tujuansosial.destroy', [Crypt::encrypt($value->id)]), 'method'=>'delete', 'id' => $value->id, 'style' => 'display: none;']) }}
{{ csrf_field() }}
{{ Form::close() }}
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
......@@ -44,7 +70,7 @@
"pageLength": 10
});
var url = "{{ route('user.index') }}";
var url = "{{ route('admin.tujuansosial.index') }}";
$("body").on("click", ".delete", function (e) {
e.preventDefault();
......
@extends('layouts.master')
@section('title')
Master Tujuan Sosial Ekonomi
@endsection
@section('header')
<div class="page-title">
<h3>Tujuan Sosial Ekonomi</h3>
</div>
@endsection
@section('contents')
@php
$menu = 'dashboard';
@endphp
<div class="row layout-top-spacing" id="cancel-row">
<div class="col-xl-12 col-lg-12 col-sm-12 layout-spacing">
<div class="widget-content widget-content-area br-6">
<div class="table-responsive mb-4 mt-4">
<button type="button" data-target="#tambah" data-toggle="modal" class="btn btn-primary mb-2"><i data-feather="file-plus"></i> Tambah</button>
<table id="zero-config" class="table table-hover" style="width:100%">
<thead>
<tr>
<th>No</th>
<th>Kategori</th>
<th style="width: 15%">Aksi</th>
</tr>
</thead>
<tbody>
@php $no = 1; @endphp
@foreach ($tujuansosialkategori as $value)
<tr>
<td>{{ $no++ }}</td>
<td>{{ $value->namatujuan }}</td>
<td>
<a href="{{ url('tujuansosialkategori/'.$value->id.'/edit') }}" class="btn btn-warning mb-2"><i data-feather="edit"></i></a> |
{{-- <button class="btn btn-danger mb-2 delete" data-id="{{ $value->id }}" data-file="{{$value->id}}"><i data-feather="trash-2"></i></button>
{{ Form::open(['url'=>route('admin.tujuansosialkategori.destroy', [Crypt::encrypt($value->id)]), 'method'=>'delete', 'id' => $value->id, 'style' => 'display: none;']) }}
{{ csrf_field() }}
{{ Form::close() }} --}}
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
@endsection
@section('js')
<script src="{{ url('theme/plugins/table/datatable/datatables.js') }}"></script>
<script>
$('#zero-config').DataTable({
"oLanguage": {
"oPaginate": { "sPrevious": '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left"><line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline></svg>', "sNext": '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>' },
"sInfo": "Showing page _PAGE_ of _PAGES_",
"sSearch": '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>',
"sSearchPlaceholder": "Search...",
"sLengthMenu": "Results : _MENU_",
},
"stripeClasses": [],
"lengthMenu": [10, 20, 50],
"pageLength": 10
});
var url = "{{ route('admin.tujuansosial.index') }}";
$("body").on("click", ".delete", function (e) {
e.preventDefault();
var id = $(this).data('id');
Swal.fire({
title: "Apakah Anda Yakin?",
text: "Anda akan menghapus data ini!",
icon: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Yes",
cancelButtonText: "No"
}).then((result) => {
if (result.value) {
Swal.close();
$("#"+id).submit();
} else if (result.dismiss === Swal.DismissReason.cancel) {
Swal.fire('Dibatalkan', 'Data batal dihapus', 'error');
}
});
});
</script>
@endsection
......@@ -138,7 +138,7 @@
function removeRole(user_id, role_id, element){
var token = "{{ csrf_token() }}";
var request = $.ajax({
url:"{{ route('adminremove-role') }}",
url:"{{ route('admin.remove-role') }}",
type:"POST",
dataType:"html",
data:{
......@@ -155,7 +155,7 @@
var token = "{{ csrf_token() }}";
var role_id = $('#select_'+user_token).val();
var request = $.ajax({
url:"{{ route('adminadd-role') }}",
url:"{{ route('admin.add-role') }}",
type:"POST",
dataType:"html",
data:{
......
......@@ -17,7 +17,7 @@
</head>
<body class="form no-image-content">
<div class="form-container outer">
<div class="form-form">
<div class="form-form-wrap">
......@@ -26,8 +26,9 @@
<h1 class="">Sign In</h1>
<p class="">Log in to your account to continue.</p>
<form class="text-left" method="POST" action="{{ route('login') }}">
@csrf
<div class="form">
<div id="username-field" class="field-wrapper input">
......@@ -54,20 +55,20 @@
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- BEGIN GLOBAL MANDATORY SCRIPTS -->
<script src="{{ url('theme/assets/js/libs/jquery-3.1.1.min.js') }}"></script>
<script src="{{ url('theme/bootstrap/js/popper.min.js') }}"></script>
<script src="{{ url('theme/bootstrap/js/bootstrap.min.js') }}"></script>
<!-- END GLOBAL MANDATORY SCRIPTS -->
<script src="{{ url('theme/assets/js/authentication/form-2.js') }}"></script>
</body>
</html>
\ No newline at end of file
</html>
......@@ -38,29 +38,15 @@
<div class="carousel-item active">
<img class="d-block w-100 slide-image" src="{{ url('theme/assets/img/600x300.jpg') }}" alt="First slide">
<div class="carousel-caption">
<span class="badge">Lifestyle</span>
<span class="badge">Informasi</span>
<h3>How To Make More Blog By Doing Less</h3>
<div class="media">
<img src="assets/img/90x90.jpg" class="" alt="avatar">
<div class="media-body">
<h6 class="user-name">User name</h6>
<p class="meta-time"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-calendar"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg> Jan, 14 2020</p>
</div>
</div>
</div>
</div>
<div class="carousel-item">
<img class="d-block w-100 slide-image" src="{{ url('theme/assets/img/600x300.jpg') }}" alt="Second slide">
<div class="carousel-caption">
<span class="badge">Lifestyle</span>
<span class="badge">Pengumuman</span>
<h3>How To Make Blog</h3>
<div class="media">
<img src="assets/img/90x90.jpg" class="" alt="avatar">
<div class="media-body">
<h6 class="user-name">User name</h6>
<p class="meta-time"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-calendar"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg> Jan, 14 2020</p>
</div>
</div>
</div>
</div>
<div class="carousel-item">
......@@ -68,13 +54,6 @@
<div class="carousel-caption">
<span class="badge">Lifestyle</span>
<h3>Best Blog Android Apps</h3>
<div class="media">
<img src="assets/img/90x90.jpg" class="" alt="avatar">
<div class="media-body">
<h6 class="user-name">User name</h6>
<p class="meta-time"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-calendar"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg> Jan, 14 2020</p>
</div>
</div>
</div>
</div>
</div>
......
......@@ -35,3 +35,5 @@
<link href="{{ url('theme/assets/css/components/custom-carousel.css') }}" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="{{ url('theme/font-awesome/css/font-awesome.min.css') }}">
<link href="{{ url('theme/assets/css/users/user-profile.css') }}" rel="stylesheet" type="text/css" />
......@@ -47,7 +47,7 @@
<div class="dropdown-menu position-absolute animated fadeInUp" aria-labelledby="user-profile-dropdown">
<div class="">
<div class="dropdown-item">
<a class="" href=""><i data-feather="user"></i><span> My Profile</a>
<a class="" href="{{ url('profile') }}"><i data-feather="user"></i><span> My Profile</a>
</div>
<div class="dropdown-item">
<a href="{{ route('logout') }}" onclick="event.preventDefault();document.getElementById('logout-form').submit();" ><i data-feather="log-out"></i>Logout</a>
......
......@@ -6,7 +6,7 @@
</a>
<ul class="collapse submenu list-unstyled" id="tables" data-parent="#topAccordion">
<li>
<a href="{{ route('adminusers.index') }}"> User </a>
<a href="{{ route('admin.users.index') }}"> User </a>
</li>
<li class="sub-sub-submenu-list">
<a href="#datatable" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle"> Bidang Penelitian <i data-feather="chevron-right"> </i></a>
......@@ -20,6 +20,17 @@
</ul>
</li>
<li class="sub-sub-submenu-list">
<a href="#datatable" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle"> Bidang Kepakaran <i data-feather="chevron-right"> </i></a>
<ul class="collapse list-unstyled sub-submenu" id="datatable" data-parent="#datatable">
<li>
<a href="{{ url('admin/kategorikepakaran') }}"> Kategori </a>
</li>
<li>
<a href="{{ url('admin/bidangkepakaran') }}"> Bidang Kepakaran </a>
</li>
</ul>
</li>
<li class="sub-sub-submenu-list">
<a href="#datatable" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle"> Tujuan Sosial Ekonomi <i data-feather="chevron-right"> </i> </a>
<ul class="collapse list-unstyled sub-submenu" id="datatable" data-parent="#datatable">
<li>
......
<x-app-layout>
<x-slot name="header">
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
{{ __('Profile') }}
</h2>
</x-slot>
<div>
<div class="max-w-7xl mx-auto py-10 sm:px-6 lg:px-8">
@if (Laravel\Fortify\Features::canUpdateProfileInformation())
@livewire('profile.update-profile-information-form')
<x-jet-section-border />
@endif
@if (Laravel\Fortify\Features::enabled(Laravel\Fortify\Features::updatePasswords()))
<div class="mt-10 sm:mt-0">
@livewire('profile.update-password-form')
</div>
@extends('layouts.master')
<x-jet-section-border />
@endif
@section('title')
User Profil
@endsection
@if (Laravel\Fortify\Features::canManageTwoFactorAuthentication())
<div class="mt-10 sm:mt-0">
@livewire('profile.two-factor-authentication-form')
</div>
@section('header')
<div class="page-title">
<h3>User Profil</h3>
</div>
@endsection
<x-jet-section-border />
@endif
@section('contents')
@php
$menu = 'dashboard';
@endphp
<div class="row layout-top-spacing">
<div class="col-xl-4 col-lg-6 col-md-5 col-sm-12 layout-top-spacing">
<div class="user-profile layout-spacing">
<div class="widget-content widget-content-area">
<div class="d-flex justify-content-between">
<h3 class="">Info</h3>
<a href="" class="mt-2 edit-profile"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-edit-3"><path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path></svg></a>
</div>
<div class="text-center user-info">
<img src="assets/img/90x90.jpg" alt="avatar">
<p class="">{{ Auth::user()->name }}</p>
</div>
<div class="user-info-list">
<div class="mt-10 sm:mt-0">
@livewire('profile.logout-other-browser-sessions-form')
<div class="">
<ul class="contacts-block list-unstyled">
<li class="contacts-block__item">
<i data-feather="coffee"></i> Web Developer
</li>
<li class="contacts-block__item">
<i data-feather="calendar"></i> Jan 20, 1989
</li>
<li class="contacts-block__item">
<i data-feather="map-pin"></i> New York, USA
</li>
<li class="contacts-block__item">
<a href="mailto:'{{ Auth::user()->email }}'"> <i data-feather="mail"></i> {{ Auth::user()->email }}</a>
</li>
<li class="contacts-block__item">
<i data-feather="phone"></i> +1 (530) 555-12121
</li>
</ul>
</div>
</div>
</div>
</div>
@if (Laravel\Jetstream\Jetstream::hasAccountDeletionFeatures())
<x-jet-section-border />
</div>
<div class="mt-10 sm:mt-0">
@livewire('profile.delete-user-form')
<div class="col-xl-8 col-lg-6 col-md-7 col-sm-12 layout-top-spacing">
<div class="skills layout-spacing ">
<div class="widget-content widget-content-area">
<h3 class="">Skills</h3>
<div class="progress br-30">
<div class="progress-bar bg-primary" role="progressbar" style="width: 25%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"><div class="progress-title"><span>PHP</span> <span>25%</span> </div></div>
</div>
@endif
<div class="progress br-30">
<div class="progress-bar bg-primary" role="progressbar" style="width: 50%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"><div class="progress-title"><span>Wordpress</span> <span>50%</span> </div></div>
</div>
<div class="progress br-30">
<div class="progress-bar bg-primary" role="progressbar" style="width: 70%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"><div class="progress-title"><span>Javascript</span> <span>70%</span> </div></div>
</div>
<div class="progress br-30">
<div class="progress-bar bg-primary" role="progressbar" style="width: 60%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"><div class="progress-title"><span>jQuery</span> <span>60%</span> </div></div>
</div>
</div>
</div>
</div>
</x-app-layout>
</div>
@endsection
@section('js')
<script src="{{ url('theme/plugins/highlight/highlight.pack.js') }}"></script>
<script src="{{ url('theme/assets/js/scrollspyNav.js') }}"></script>
@endsection
......@@ -16,6 +16,7 @@ use App\Http\Controllers\User\UnitBisnisController;
use App\Http\Controllers\Admin\BidangPenelitianController as AdminBidangPenelitianController;
use App\Http\Controllers\Admin\TujuanSosialController as AdminTujuanSosialController;
use App\Http\Controllers\Admin\BidangKepakaranController as AdminBidangKepakaranController;
use App\Http\Controllers\Admin\UserController;
use Illuminate\Support\Facades\Route;
......@@ -43,12 +44,23 @@ Route::group(['middleware' => ['auth:sanctum', 'verified']], function () {
return view('dashboard');
})->name('dashboard');
Route::name('admin')->prefix('admin')->middleware(['role:admin'])->group(function () {
Route::name('admin.')->prefix('admin')->middleware(['role:admin'])->group(function () {
Route::resource('/bidangpenelitian', AdminBidangPenelitianController::class);
Route::get('/bidangkategori', [AdminBidangPenelitianController::class, 'bidangkategori'])->name('bidangkategori');
Route::get('/bidangkategoriedit/{id}', [AdminBidangPenelitianController::class, 'kategoriedit'])->name('bidangkategori.edit');
Route::post('/bidangkategori-simpan', [AdminBidangPenelitianController::class, 'kategoristore'])->name('bidangkategori.simpan');
Route::resource('/tujuansosial', AdminTujuanSosialController::class);
Route::get('/tujuankategori', [AdminTujuanSosialController::class, 'tujuankategori'])->name('tujuankategori');
Route::get('/tujuankategoriedit/{id}', [AdminTujuanSosialController::class, 'kategoriedit'])->name('tujuankategori.edit');
Route::post('/tujuankategori-simpan', [AdminTujuanSosialController::class, 'kategoristore'])->name('tujuankategori.simpan');
Route::resource('/bidangkepakaran', AdminBidangKepakaranController::class);
Route::get('/kepakarankategori', [AdminBidangKepakaranController::class, 'kepakarankategori'])->name('kepakarankategori');
Route::get('/kepakarankategoriedit/{id}', [AdminBidangKepakaranController::class, 'kategoriedit'])->name('kepakarankategori.edit');
Route::post('/kepakarankategori-simpan', [AdminBidangKepakaranController::class, 'kategoristore'])->name('kepakarankategori.simpan');
Route::get('/tujuankategori', [AdminTujuanSosialController::class, 'tujuankategori'])->name('tujuankategori');
Route::resource('/users', UserController::class);
Route::post('/user/remove-role', [UserController::class, 'removeRole'])->name('remove-role');
Route::post('/user/add-role', [UserController::class, 'addRole'])->name('add-role');
......@@ -56,6 +68,8 @@ Route::group(['middleware' => ['auth:sanctum', 'verified']], function () {
Route::group(['middleware' => ['role:admin|user']], function () {
Route::get('/profile', function () { return view('profile.show'); })->name('profile');
Route::get('/get-biodata', [GetDataController::class, 'getBiodata'])->name('get-biodata');
// Route::get('/get-row-anggota', [PenelitianSumberDanaController::class, 'getRowAnggota'])->name('get-row-anggota');
Route::get('/get-children', [GetDataController::class, 'getChildren'])->name('get-children');
......
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