Commit 7bc4b361 by Siti Aisah

add master data

parent b519b6b4
......@@ -2,8 +2,13 @@
namespace App\Http\Controllers\Admin;
use App\Http\Support\ValidationRule;
use Illuminate\Support\Facades\Hash;
use App\Http\Controllers\Controller;
use App\Models\Kegiatan;
use App\Models\Konferensi;
use App\Models\Registrasi;
use App\Models\User;
use Exception;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
......@@ -11,6 +16,278 @@
class AdminController extends Controller
{
public function index() {
return view('home');
}
public function index_user() {
$user = User::get();
$data = [
'user' => $user,
];
return view('admin.user.index', $data);
}
public function store_user(Request $request) {
$rules = [
'name' => 'required|string',
'email' => 'required|email',
'password' => 'string|min:8',
];
$request->validate($rules, ValidationRule::getErrorMessage($rules));
DB::beginTransaction();
try{
$password = Hash::make($request->password);
$data = [
'name' => strip_tags($request->name),
'email' => strip_tags($request->email),
'password' => $password
];
User::query()->create($data);
DB::commit();
return redirect()->back()
->with('success', 'Data saved successfully');
}
catch(Exception $e){
Log::error($e);
DB::rollBack();
return redirect()->back()
->with('error', 'Data failed to save');
}
}
public function update_user($id, Request $request){
DB::beginTransaction();
try{
if($request->password){
$password = Hash::make($request->password);
}
else{
$user = User::query()->where('id', $id)->first();
$password = $user->password;
}
$data = [
'name' => strip_tags($request->name),
'email' => strip_tags($request->email),
'password' => $password
];
User::query()->where('id', $id)->update($data);
DB::commit();
return redirect()->back()
->with('success', 'Data saved successfully');
}
catch(Exception $e){
Log::error($e);
DB::rollBack();
return redirect()->back()
->with('error', 'Data failed to update');
}
}
public function delete_user($id){
DB::beginTransaction();
try{
User::find($id)->delete();
DB::commit();
return redirect()->back()
->with('success', 'Data deleted successfully');
}
catch(Exception $e){
Log::error($e);
DB::rollBack();
return redirect()->back()
->with('error', 'Data failed to delete');
}
}
public function index_kegiatan() {
$kegiatan = Kegiatan::get();
$data = [
'kegiatan' => $kegiatan
];
return view('admin.kegiatan.index', $data);
}
public function store_kegiatan(Request $request) {
$rules = [
'nama' => 'required|string',
'harga' => 'required|numeric'
];
$request->validate($rules, ValidationRule::getErrorMessage($rules));
DB::beginTransaction();
try{
$data = [
'nama' => $request->nama,
'harga' => $request->harga
];
Kegiatan::query()->create($data);
DB::commit();
return redirect()->back()
->with('success', 'Data saved successfully');
}
catch(Exception $e){
Log::error($e);
DB::rollBack();
return redirect()->back()
->with('error', 'Data failed to create');
}
}
public function update_kegiatan($id, Request $request) {
$rules = [
'nama' => 'required|string',
'harga' => 'required|numeric'
];
$request->validate($rules, ValidationRule::getErrorMessage($rules));
DB::beginTransaction();
try{
$data = [
'nama' => $request->nama,
'harga' => $request->harga
];
Kegiatan::query()->where('id', $id)->update($data);
DB::commit();
return redirect()->back()
->with('success', 'Data saved successfully');
}
catch(Exception $e){
Log::error($e);
DB::rollBack();
return redirect()->back()
->with('error', 'Data failed to update');
}
}
public function delete_kegiatan($id) {
DB::beginTransaction();
try{
Kegiatan::find($id)->delete();
DB::commit();
return redirect()->back()
->with('success', 'Data deleted successfully');
}
catch(Exception $e){
Log::error($e);
DB::rollBack();
return redirect()->back()
->with('error', 'Data failed to delete');
}
}
public function index_konferensi() {
$konferensi = Konferensi::get();
$data = [
'konferensi' => $konferensi
];
return view('admin.konferensi.index', $data);
}
public function store_konferensi(Request $request) {
$rules = [
'nama' => 'required|string'
];
$request->validate($rules, ValidationRule::getErrorMessage($rules));
DB::beginTransaction();
try{
$data = [
'nama' => strip_tags($request->nama)
];
Konferensi::query()->create($data);
DB::commit();
return redirect()->back()
->with('success', 'Data saved successfully');
}
catch(Exception $e){
Log::error($e);
DB::rollBack();
return redirect()->back()
->with('error', 'Data failed to update');
}
}
public function update_konferensi($id, Request $request) {
$rules = [
'nama' => 'required|string'
];
$request->validate($rules, ValidationRule::getErrorMessage($rules));
DB::beginTransaction();
try{
$data = [
'nama' => $request->nama
];
Konferensi::query()->where('id', $id)->update($data);
DB::commit();
return redirect()->back()
->with('success', 'Data saved successfully');
}
catch(Exception $e){
Log::error($e);
DB::rollBack();
return redirect()->back()
->with('error', 'Data failed to update');
}
}
public function delete_konferensi($id) {
DB::beginTransaction();
try{
Konferensi::find($id)->delete();
DB::commit();
return redirect()->back()
->with('success', 'Data deleted successfully');
}
catch(Exception $e){
Log::error($e);
DB::rollBack();
return redirect()->back()
->with('error', 'Data failed to delete');
}
}
public function index_peserta(){
$peserta = Registrasi::with('pkKegiatan', 'pkKonferensi')->get();
$data = [
......@@ -20,16 +297,21 @@ public function index_peserta(){
return view('admin.peserta.index', $data);
}
public function delete_participant($id) {
public function delete_peserta($id) {
DB::beginTransaction();
try{
Registrasi::find($id)->delete();
DB::commit();
return redirect()->back()
->with('success', 'Data deleted successfully');
}
catch(Exception $e){
Log::error($e);
DB::rollBack();
return redirect()->back()
->with('error', 'Data failed to delete');
}
}
}
......@@ -4,9 +4,9 @@
class ValidationRule{
const WARNING = [
'required' => 'can not be empty',
'numeric' => 'must be a number',
'string' => 'must be a string',
'required' => 'inputan tidak boleh kosong',
'numeric' => 'inputan harus berupa angka',
'string' => 'inputan harus berupa teks',
'max' => 'must be maximum',
'min' => 'must be minimum',
'email' => 'is invalid',
......
......@@ -1047,20 +1047,20 @@
},
{
"name": "laravel/framework",
"version": "v10.42.0",
"version": "v10.43.0",
"source": {
"type": "git",
"url": "https://github.com/laravel/framework.git",
"reference": "fef1aff874a6749c44f8e142e5764eab8cb96890"
"reference": "4f7802dfc9993cb57cf69615491ce1a7eb2e9529"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/framework/zipball/fef1aff874a6749c44f8e142e5764eab8cb96890",
"reference": "fef1aff874a6749c44f8e142e5764eab8cb96890",
"url": "https://api.github.com/repos/laravel/framework/zipball/4f7802dfc9993cb57cf69615491ce1a7eb2e9529",
"reference": "4f7802dfc9993cb57cf69615491ce1a7eb2e9529",
"shasum": ""
},
"require": {
"brick/math": "^0.9.3|^0.10.2|^0.11",
"brick/math": "^0.9.3|^0.10.2|^0.11|^0.12",
"composer-runtime-api": "^2.2",
"doctrine/inflector": "^2.0.5",
"dragonmantank/cron-expression": "^3.3.2",
......@@ -1248,7 +1248,7 @@
"issues": "https://github.com/laravel/framework/issues",
"source": "https://github.com/laravel/framework"
},
"time": "2024-01-23T15:07:56+00:00"
"time": "2024-01-30T16:25:02+00:00"
},
{
"name": "laravel/prompts",
......@@ -1839,16 +1839,16 @@
},
{
"name": "league/mime-type-detection",
"version": "1.14.0",
"version": "1.15.0",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/mime-type-detection.git",
"reference": "b6a5854368533df0295c5761a0253656a2e52d9e"
"reference": "ce0f4d1e8a6f4eb0ddff33f57c69c50fd09f4301"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/b6a5854368533df0295c5761a0253656a2e52d9e",
"reference": "b6a5854368533df0295c5761a0253656a2e52d9e",
"url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/ce0f4d1e8a6f4eb0ddff33f57c69c50fd09f4301",
"reference": "ce0f4d1e8a6f4eb0ddff33f57c69c50fd09f4301",
"shasum": ""
},
"require": {
......@@ -1879,7 +1879,7 @@
"description": "Mime-type detection for Flysystem",
"support": {
"issues": "https://github.com/thephpleague/mime-type-detection/issues",
"source": "https://github.com/thephpleague/mime-type-detection/tree/1.14.0"
"source": "https://github.com/thephpleague/mime-type-detection/tree/1.15.0"
},
"funding": [
{
......@@ -1891,7 +1891,7 @@
"type": "tidelift"
}
],
"time": "2023-10-17T14:13:20+00:00"
"time": "2024-01-28T23:22:08+00:00"
},
{
"name": "monolog/monolog",
......@@ -1996,16 +1996,16 @@
},
{
"name": "nesbot/carbon",
"version": "2.72.2",
"version": "2.72.3",
"source": {
"type": "git",
"url": "https://github.com/briannesbitt/Carbon.git",
"reference": "3e7edc41b58d65509baeb0d4a14c8fa41d627130"
"reference": "0c6fd108360c562f6e4fd1dedb8233b423e91c83"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/3e7edc41b58d65509baeb0d4a14c8fa41d627130",
"reference": "3e7edc41b58d65509baeb0d4a14c8fa41d627130",
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/0c6fd108360c562f6e4fd1dedb8233b423e91c83",
"reference": "0c6fd108360c562f6e4fd1dedb8233b423e91c83",
"shasum": ""
},
"require": {
......@@ -2099,7 +2099,7 @@
"type": "tidelift"
}
],
"time": "2024-01-19T00:21:53+00:00"
"time": "2024-01-25T10:35:09+00:00"
},
{
"name": "nette/schema",
......@@ -3276,16 +3276,16 @@
},
{
"name": "symfony/console",
"version": "v6.4.2",
"version": "v6.4.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/console.git",
"reference": "0254811a143e6bc6c8deea08b589a7e68a37f625"
"reference": "2aaf83b4de5b9d43b93e4aec6f2f8b676f7c567e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/console/zipball/0254811a143e6bc6c8deea08b589a7e68a37f625",
"reference": "0254811a143e6bc6c8deea08b589a7e68a37f625",
"url": "https://api.github.com/repos/symfony/console/zipball/2aaf83b4de5b9d43b93e4aec6f2f8b676f7c567e",
"reference": "2aaf83b4de5b9d43b93e4aec6f2f8b676f7c567e",
"shasum": ""
},
"require": {
......@@ -3350,7 +3350,7 @@
"terminal"
],
"support": {
"source": "https://github.com/symfony/console/tree/v6.4.2"
"source": "https://github.com/symfony/console/tree/v6.4.3"
},
"funding": [
{
......@@ -3366,20 +3366,20 @@
"type": "tidelift"
}
],
"time": "2023-12-10T16:15:48+00:00"
"time": "2024-01-23T14:51:35+00:00"
},
{
"name": "symfony/css-selector",
"version": "v6.4.0",
"version": "v6.4.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/css-selector.git",
"reference": "d036c6c0d0b09e24a14a35f8292146a658f986e4"
"reference": "ee0f7ed5cf298cc019431bb3b3977ebc52b86229"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/css-selector/zipball/d036c6c0d0b09e24a14a35f8292146a658f986e4",
"reference": "d036c6c0d0b09e24a14a35f8292146a658f986e4",
"url": "https://api.github.com/repos/symfony/css-selector/zipball/ee0f7ed5cf298cc019431bb3b3977ebc52b86229",
"reference": "ee0f7ed5cf298cc019431bb3b3977ebc52b86229",
"shasum": ""
},
"require": {
......@@ -3415,7 +3415,7 @@
"description": "Converts CSS selectors to XPath expressions",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/css-selector/tree/v6.4.0"
"source": "https://github.com/symfony/css-selector/tree/v6.4.3"
},
"funding": [
{
......@@ -3431,7 +3431,7 @@
"type": "tidelift"
}
],
"time": "2023-10-31T08:40:20+00:00"
"time": "2024-01-23T14:51:35+00:00"
},
{
"name": "symfony/deprecation-contracts",
......@@ -3502,16 +3502,16 @@
},
{
"name": "symfony/error-handler",
"version": "v6.4.0",
"version": "v6.4.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/error-handler.git",
"reference": "c873490a1c97b3a0a4838afc36ff36c112d02788"
"reference": "6dc3c76a278b77f01d864a6005d640822c6f26a6"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/error-handler/zipball/c873490a1c97b3a0a4838afc36ff36c112d02788",
"reference": "c873490a1c97b3a0a4838afc36ff36c112d02788",
"url": "https://api.github.com/repos/symfony/error-handler/zipball/6dc3c76a278b77f01d864a6005d640822c6f26a6",
"reference": "6dc3c76a278b77f01d864a6005d640822c6f26a6",
"shasum": ""
},
"require": {
......@@ -3557,7 +3557,7 @@
"description": "Provides tools to manage errors and ease debugging PHP code",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/error-handler/tree/v6.4.0"
"source": "https://github.com/symfony/error-handler/tree/v6.4.3"
},
"funding": [
{
......@@ -3573,20 +3573,20 @@
"type": "tidelift"
}
],
"time": "2023-10-18T09:43:34+00:00"
"time": "2024-01-29T15:40:36+00:00"
},
{
"name": "symfony/event-dispatcher",
"version": "v6.4.2",
"version": "v6.4.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/event-dispatcher.git",
"reference": "e95216850555cd55e71b857eb9d6c2674124603a"
"reference": "ae9d3a6f3003a6caf56acd7466d8d52378d44fef"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/e95216850555cd55e71b857eb9d6c2674124603a",
"reference": "e95216850555cd55e71b857eb9d6c2674124603a",
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/ae9d3a6f3003a6caf56acd7466d8d52378d44fef",
"reference": "ae9d3a6f3003a6caf56acd7466d8d52378d44fef",
"shasum": ""
},
"require": {
......@@ -3637,7 +3637,7 @@
"description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/event-dispatcher/tree/v6.4.2"
"source": "https://github.com/symfony/event-dispatcher/tree/v6.4.3"
},
"funding": [
{
......@@ -3653,7 +3653,7 @@
"type": "tidelift"
}
],
"time": "2023-12-27T22:16:42+00:00"
"time": "2024-01-23T14:51:35+00:00"
},
{
"name": "symfony/event-dispatcher-contracts",
......@@ -3797,16 +3797,16 @@
},
{
"name": "symfony/http-foundation",
"version": "v6.4.2",
"version": "v6.4.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-foundation.git",
"reference": "172d807f9ef3fc3fbed8377cc57c20d389269271"
"reference": "5677bdf7cade4619cb17fc9e1e7b31ec392244a9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/http-foundation/zipball/172d807f9ef3fc3fbed8377cc57c20d389269271",
"reference": "172d807f9ef3fc3fbed8377cc57c20d389269271",
"url": "https://api.github.com/repos/symfony/http-foundation/zipball/5677bdf7cade4619cb17fc9e1e7b31ec392244a9",
"reference": "5677bdf7cade4619cb17fc9e1e7b31ec392244a9",
"shasum": ""
},
"require": {
......@@ -3854,7 +3854,7 @@
"description": "Defines an object-oriented layer for the HTTP specification",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/http-foundation/tree/v6.4.2"
"source": "https://github.com/symfony/http-foundation/tree/v6.4.3"
},
"funding": [
{
......@@ -3870,20 +3870,20 @@
"type": "tidelift"
}
],
"time": "2023-12-27T22:16:42+00:00"
"time": "2024-01-23T14:51:35+00:00"
},
{
"name": "symfony/http-kernel",
"version": "v6.4.2",
"version": "v6.4.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-kernel.git",
"reference": "13e8387320b5942d0dc408440c888e2d526efef4"
"reference": "9c6ec4e543044f7568a53a76ab1484ecd30637a2"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/13e8387320b5942d0dc408440c888e2d526efef4",
"reference": "13e8387320b5942d0dc408440c888e2d526efef4",
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/9c6ec4e543044f7568a53a76ab1484ecd30637a2",
"reference": "9c6ec4e543044f7568a53a76ab1484ecd30637a2",
"shasum": ""
},
"require": {
......@@ -3967,7 +3967,7 @@
"description": "Provides a structured process for converting a Request into a Response",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/http-kernel/tree/v6.4.2"
"source": "https://github.com/symfony/http-kernel/tree/v6.4.3"
},
"funding": [
{
......@@ -3983,20 +3983,20 @@
"type": "tidelift"
}
],
"time": "2023-12-30T15:31:44+00:00"
"time": "2024-01-31T07:21:29+00:00"
},
{
"name": "symfony/mailer",
"version": "v6.4.2",
"version": "v6.4.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/mailer.git",
"reference": "6da89e5c9202f129717a770a03183fb140720168"
"reference": "74412c62f88a85a41b61f0b71ab0afcaad6f03ee"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/mailer/zipball/6da89e5c9202f129717a770a03183fb140720168",
"reference": "6da89e5c9202f129717a770a03183fb140720168",
"url": "https://api.github.com/repos/symfony/mailer/zipball/74412c62f88a85a41b61f0b71ab0afcaad6f03ee",
"reference": "74412c62f88a85a41b61f0b71ab0afcaad6f03ee",
"shasum": ""
},
"require": {
......@@ -4047,7 +4047,7 @@
"description": "Helps sending emails",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/mailer/tree/v6.4.2"
"source": "https://github.com/symfony/mailer/tree/v6.4.3"
},
"funding": [
{
......@@ -4063,20 +4063,20 @@
"type": "tidelift"
}
],
"time": "2023-12-19T09:12:31+00:00"
"time": "2024-01-29T15:01:07+00:00"
},
{
"name": "symfony/mime",
"version": "v6.4.0",
"version": "v6.4.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/mime.git",
"reference": "ca4f58b2ef4baa8f6cecbeca2573f88cd577d205"
"reference": "5017e0a9398c77090b7694be46f20eb796262a34"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/mime/zipball/ca4f58b2ef4baa8f6cecbeca2573f88cd577d205",
"reference": "ca4f58b2ef4baa8f6cecbeca2573f88cd577d205",
"url": "https://api.github.com/repos/symfony/mime/zipball/5017e0a9398c77090b7694be46f20eb796262a34",
"reference": "5017e0a9398c77090b7694be46f20eb796262a34",
"shasum": ""
},
"require": {
......@@ -4131,7 +4131,7 @@
"mime-type"
],
"support": {
"source": "https://github.com/symfony/mime/tree/v6.4.0"
"source": "https://github.com/symfony/mime/tree/v6.4.3"
},
"funding": [
{
......@@ -4147,7 +4147,7 @@
"type": "tidelift"
}
],
"time": "2023-10-17T11:49:05+00:00"
"time": "2024-01-30T08:32:12+00:00"
},
{
"name": "symfony/polyfill-ctype",
......@@ -4889,16 +4889,16 @@
},
{
"name": "symfony/process",
"version": "v6.4.2",
"version": "v6.4.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/process.git",
"reference": "c4b1ef0bc80533d87a2e969806172f1c2a980241"
"reference": "31642b0818bfcff85930344ef93193f8c607e0a3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/process/zipball/c4b1ef0bc80533d87a2e969806172f1c2a980241",
"reference": "c4b1ef0bc80533d87a2e969806172f1c2a980241",
"url": "https://api.github.com/repos/symfony/process/zipball/31642b0818bfcff85930344ef93193f8c607e0a3",
"reference": "31642b0818bfcff85930344ef93193f8c607e0a3",
"shasum": ""
},
"require": {
......@@ -4930,7 +4930,7 @@
"description": "Executes commands in sub-processes",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/process/tree/v6.4.2"
"source": "https://github.com/symfony/process/tree/v6.4.3"
},
"funding": [
{
......@@ -4946,20 +4946,20 @@
"type": "tidelift"
}
],
"time": "2023-12-22T16:42:54+00:00"
"time": "2024-01-23T14:51:35+00:00"
},
{
"name": "symfony/routing",
"version": "v6.4.2",
"version": "v6.4.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/routing.git",
"reference": "98eab13a07fddc85766f1756129c69f207ffbc21"
"reference": "3b2957ad54902f0f544df83e3d58b38d7e8e5842"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/routing/zipball/98eab13a07fddc85766f1756129c69f207ffbc21",
"reference": "98eab13a07fddc85766f1756129c69f207ffbc21",
"url": "https://api.github.com/repos/symfony/routing/zipball/3b2957ad54902f0f544df83e3d58b38d7e8e5842",
"reference": "3b2957ad54902f0f544df83e3d58b38d7e8e5842",
"shasum": ""
},
"require": {
......@@ -5013,7 +5013,7 @@
"url"
],
"support": {
"source": "https://github.com/symfony/routing/tree/v6.4.2"
"source": "https://github.com/symfony/routing/tree/v6.4.3"
},
"funding": [
{
......@@ -5029,7 +5029,7 @@
"type": "tidelift"
}
],
"time": "2023-12-29T15:34:34+00:00"
"time": "2024-01-30T13:55:02+00:00"
},
{
"name": "symfony/service-contracts",
......@@ -5115,16 +5115,16 @@
},
{
"name": "symfony/string",
"version": "v6.4.2",
"version": "v6.4.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/string.git",
"reference": "7cb80bc10bfcdf6b5492741c0b9357dac66940bc"
"reference": "7a14736fb179876575464e4658fce0c304e8c15b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/string/zipball/7cb80bc10bfcdf6b5492741c0b9357dac66940bc",
"reference": "7cb80bc10bfcdf6b5492741c0b9357dac66940bc",
"url": "https://api.github.com/repos/symfony/string/zipball/7a14736fb179876575464e4658fce0c304e8c15b",
"reference": "7a14736fb179876575464e4658fce0c304e8c15b",
"shasum": ""
},
"require": {
......@@ -5181,7 +5181,7 @@
"utf8"
],
"support": {
"source": "https://github.com/symfony/string/tree/v6.4.2"
"source": "https://github.com/symfony/string/tree/v6.4.3"
},
"funding": [
{
......@@ -5197,20 +5197,20 @@
"type": "tidelift"
}
],
"time": "2023-12-10T16:15:48+00:00"
"time": "2024-01-25T09:26:29+00:00"
},
{
"name": "symfony/translation",
"version": "v6.4.2",
"version": "v6.4.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/translation.git",
"reference": "a2ab2ec1a462e53016de8e8d5e8912bfd62ea681"
"reference": "637c51191b6b184184bbf98937702bcf554f7d04"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/translation/zipball/a2ab2ec1a462e53016de8e8d5e8912bfd62ea681",
"reference": "a2ab2ec1a462e53016de8e8d5e8912bfd62ea681",
"url": "https://api.github.com/repos/symfony/translation/zipball/637c51191b6b184184bbf98937702bcf554f7d04",
"reference": "637c51191b6b184184bbf98937702bcf554f7d04",
"shasum": ""
},
"require": {
......@@ -5233,7 +5233,7 @@
"symfony/translation-implementation": "2.3|3.0"
},
"require-dev": {
"nikic/php-parser": "^4.13",
"nikic/php-parser": "^4.18|^5.0",
"psr/log": "^1|^2|^3",
"symfony/config": "^5.4|^6.0|^7.0",
"symfony/console": "^5.4|^6.0|^7.0",
......@@ -5276,7 +5276,7 @@
"description": "Provides tools to internationalize your application",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/translation/tree/v6.4.2"
"source": "https://github.com/symfony/translation/tree/v6.4.3"
},
"funding": [
{
......@@ -5292,7 +5292,7 @@
"type": "tidelift"
}
],
"time": "2023-12-18T09:25:29+00:00"
"time": "2024-01-29T13:11:52+00:00"
},
{
"name": "symfony/translation-contracts",
......@@ -5374,16 +5374,16 @@
},
{
"name": "symfony/uid",
"version": "v6.4.0",
"version": "v6.4.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/uid.git",
"reference": "8092dd1b1a41372110d06374f99ee62f7f0b9a92"
"reference": "1d31267211cc3a2fff32bcfc7c1818dac41b6fc0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/uid/zipball/8092dd1b1a41372110d06374f99ee62f7f0b9a92",
"reference": "8092dd1b1a41372110d06374f99ee62f7f0b9a92",
"url": "https://api.github.com/repos/symfony/uid/zipball/1d31267211cc3a2fff32bcfc7c1818dac41b6fc0",
"reference": "1d31267211cc3a2fff32bcfc7c1818dac41b6fc0",
"shasum": ""
},
"require": {
......@@ -5428,7 +5428,7 @@
"uuid"
],
"support": {
"source": "https://github.com/symfony/uid/tree/v6.4.0"
"source": "https://github.com/symfony/uid/tree/v6.4.3"
},
"funding": [
{
......@@ -5444,20 +5444,20 @@
"type": "tidelift"
}
],
"time": "2023-10-31T08:18:17+00:00"
"time": "2024-01-23T14:51:35+00:00"
},
{
"name": "symfony/var-dumper",
"version": "v6.4.2",
"version": "v6.4.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/var-dumper.git",
"reference": "68d6573ec98715ddcae5a0a85bee3c1c27a4c33f"
"reference": "0435a08f69125535336177c29d56af3abc1f69da"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/68d6573ec98715ddcae5a0a85bee3c1c27a4c33f",
"reference": "68d6573ec98715ddcae5a0a85bee3c1c27a4c33f",
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/0435a08f69125535336177c29d56af3abc1f69da",
"reference": "0435a08f69125535336177c29d56af3abc1f69da",
"shasum": ""
},
"require": {
......@@ -5513,7 +5513,7 @@
"dump"
],
"support": {
"source": "https://github.com/symfony/var-dumper/tree/v6.4.2"
"source": "https://github.com/symfony/var-dumper/tree/v6.4.3"
},
"funding": [
{
......@@ -5529,7 +5529,7 @@
"type": "tidelift"
}
],
"time": "2023-12-28T19:16:56+00:00"
"time": "2024-01-23T14:53:30+00:00"
},
{
"name": "tijsverkoyen/css-to-inline-styles",
......@@ -6139,22 +6139,22 @@
},
{
"name": "laravel/sail",
"version": "v1.27.2",
"version": "v1.27.3",
"source": {
"type": "git",
"url": "https://github.com/laravel/sail.git",
"reference": "2276a8d9d6cfdcaad98bf67a34331d100149d5b6"
"reference": "7e01b345072c9604ead9d7aed175bf7ac1d80289"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/sail/zipball/2276a8d9d6cfdcaad98bf67a34331d100149d5b6",
"reference": "2276a8d9d6cfdcaad98bf67a34331d100149d5b6",
"url": "https://api.github.com/repos/laravel/sail/zipball/7e01b345072c9604ead9d7aed175bf7ac1d80289",
"reference": "7e01b345072c9604ead9d7aed175bf7ac1d80289",
"shasum": ""
},
"require": {
"illuminate/console": "^9.0|^10.0|^11.0",
"illuminate/contracts": "^9.0|^10.0|^11.0",
"illuminate/support": "^9.0|^10.0|^11.0",
"illuminate/console": "^9.52.16|^10.0|^11.0",
"illuminate/contracts": "^9.52.16|^10.0|^11.0",
"illuminate/support": "^9.52.16|^10.0|^11.0",
"php": "^8.0",
"symfony/yaml": "^6.0|^7.0"
},
......@@ -6200,7 +6200,7 @@
"issues": "https://github.com/laravel/sail/issues",
"source": "https://github.com/laravel/sail"
},
"time": "2024-01-21T17:13:42+00:00"
"time": "2024-01-30T03:03:59+00:00"
},
{
"name": "maximebf/debugbar",
......@@ -8018,21 +8018,20 @@
},
{
"name": "spatie/flare-client-php",
"version": "1.4.3",
"version": "1.4.4",
"source": {
"type": "git",
"url": "https://github.com/spatie/flare-client-php.git",
"reference": "5db2fdd743c3ede33f2a5367d89ec1a7c9c1d1ec"
"reference": "17082e780752d346c2db12ef5d6bee8e835e399c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/spatie/flare-client-php/zipball/5db2fdd743c3ede33f2a5367d89ec1a7c9c1d1ec",
"reference": "5db2fdd743c3ede33f2a5367d89ec1a7c9c1d1ec",
"url": "https://api.github.com/repos/spatie/flare-client-php/zipball/17082e780752d346c2db12ef5d6bee8e835e399c",
"reference": "17082e780752d346c2db12ef5d6bee8e835e399c",
"shasum": ""
},
"require": {
"illuminate/pipeline": "^8.0|^9.0|^10.0|^11.0",
"nesbot/carbon": "^2.62.1",
"php": "^8.0",
"spatie/backtrace": "^1.5.2",
"symfony/http-foundation": "^5.2|^6.0|^7.0",
......@@ -8076,7 +8075,7 @@
],
"support": {
"issues": "https://github.com/spatie/flare-client-php/issues",
"source": "https://github.com/spatie/flare-client-php/tree/1.4.3"
"source": "https://github.com/spatie/flare-client-php/tree/1.4.4"
},
"funding": [
{
......@@ -8084,7 +8083,7 @@
"type": "github"
}
],
"time": "2023-10-17T15:54:07+00:00"
"time": "2024-01-31T14:18:45+00:00"
},
{
"name": "spatie/ignition",
......@@ -8263,16 +8262,16 @@
},
{
"name": "symfony/yaml",
"version": "v6.4.0",
"version": "v6.4.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/yaml.git",
"reference": "4f9237a1bb42455d609e6687d2613dde5b41a587"
"reference": "d75715985f0f94f978e3a8fa42533e10db921b90"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/yaml/zipball/4f9237a1bb42455d609e6687d2613dde5b41a587",
"reference": "4f9237a1bb42455d609e6687d2613dde5b41a587",
"url": "https://api.github.com/repos/symfony/yaml/zipball/d75715985f0f94f978e3a8fa42533e10db921b90",
"reference": "d75715985f0f94f978e3a8fa42533e10db921b90",
"shasum": ""
},
"require": {
......@@ -8315,7 +8314,7 @@
"description": "Loads and dumps YAML files",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/yaml/tree/v6.4.0"
"source": "https://github.com/symfony/yaml/tree/v6.4.3"
},
"funding": [
{
......@@ -8331,7 +8330,7 @@
"type": "tidelift"
}
],
"time": "2023-11-06T11:00:25+00:00"
"time": "2024-01-23T14:51:35+00:00"
},
{
"name": "theseer/tokenizer",
......
@extends('layouts.app')
@section('title','Data Kegiatan')
@section('content')
<section class="section">
<div class="section-header">
<h1>Data Kegiatan</h1>
<div class="section-header-breadcrumb">
<div class="breadcrumb-item">
<a href="">Home</a>
</div>
<div class="breadcrumb-item active">Data Kegiatan</div>
</div>
</div>
<div class="section-body">
<div class="row mt-4 active" id="tab-semuapengajuan" data-tab-group="mygroup-tab">
<div class="col-12">
<div class="card">
<div class="card-body">
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#add-modal">Tambah Data</button>
<br>
<div class="clearfix mb-3"></div>
<div class="table-responsive">
<table class="table table-striped dataTable" id="table-daftar-kegiatan" role="grid">
<thead>
<tr style="text-align: center;">
<th>No.</th>
<th>Kegiatan</th>
<th>Harga</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
@php
$no = 1;
@endphp
@foreach($kegiatan as $tr)
<tr style="text-align: center;">
<td>{{ $no }}</td>
<td>{{ $tr->nama}}</td>
<td>{{ $tr->harga}}</td>
<td>
<button type="button" class="btn btn-info" data-toggle="modal" data-target="#update-modal{{$tr->id}}">Ubah</button>
<button type="button" class="btn btn-danger" data-toggle="modal" data-target="#delete-modal{{$tr->id}}">Hapus</button>
{{-- Modal Add Workshop --}}
<div class="modal fade" id="add-modal" data-backdrop="false" style="background-color: rgba(0, 0, 0, 0.5);">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title bold">Tambah Kegiatan Baru</h4>
</div>
<form method="POST" action="{{ route('admin.create_kegiatan', ['id' => $tr->id ]) }}" enctype="multipart/form-data">
@csrf
<div class="modal-body">
<div class="form-group" style="text-align: left">
<label for="nama">Nama Kegiatan</label>
<input type="text" class="form-control" id="nama" name="nama" required @if($errors->has('nama')) has-error @endif>
@if($errors->has('nama'))
<label id="login-error" class="error" for="nama" style="color: red">{{$errors->first('nama')}}</label>
@endif
</div>
<div class="form-group" style="text-align: left">
<label for="harga">Harga</label>
<input type="number" class="form-control" id="harga" name="harga" required @if($errors->has('harga')) has-error @endif>
@if($errors->has('harga'))
<label id="login-error" class="error" for="harga" style="color: red">{{$errors->first('harga')}}</label>
@endif
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary ml-1">Simpan</button>
<button type="button" class="btn btn-light-secondary" data-dismiss="modal">Batal</button>
</div>
</form>
</div>
</div>
</div>
{{-- End of Modal Add Workshop --}}
{{-- Modal Update Workshop --}}
<div class="modal fade" id="update-modal{{$tr->id}}" data-backdrop="false" style="background-color: rgba(0, 0, 0, 0.5);">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title bold">Ubah Kegiatan</h4>
</div>
<form method="POST" action="{{ route('admin.update_kegiatan', ['id' => $tr->id ]) }}" enctype="multipart/form-data">
@csrf
@method('put')
<div class="modal-body">
<div class="form-group" style="text-align: left">
<label for="nama">Nama Kegiatan</label>
<input type="text" class="form-control" id="nama" name="nama" value="{{ $tr->nama }}" required @if($errors->has('nama')) has-error @endif>
@if($errors->has('nama'))
<label id="login-error" class="error" for="nama" style="color: red">{{$errors->first('nama')}}</label>
@endif
</div>
<div class="form-group" style="text-align: left">
<label for="harga">Harga</label>
<input type="text" class="form-control" id="harga" name="harga" value="{{ $tr->harga }}" required @if($errors->has('harga')) has-error @endif>
@if($errors->has('harga'))
<label id="login-error" class="error" for="harga" style="color: red">{{$errors->first('harga')}}</label>
@endif
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary ml-1">Simpan</button>
<button type="button" class="btn btn-light-secondary" data-dismiss="modal">Batal</button>
</div>
</form>
</div>
</div>
</div>
{{-- End of Modal Update Workshop --}}
{{-- Modal Delete Workshop --}}
<div class="modal fade" id="delete-modal{{$tr->id}}" data-backdrop="false" style="background-color: rgba(0, 0, 0, 0.5); padding-top:15%;">
<div class="modal-dialog">
<div class="modal-content" style="padding-top : 10px">
<form method="GET" action="{{ route('admin.delete_kegiatan', ['id' => $tr->id ]) }}" enctype="multipart/form-data">
@csrf
<div class="modal-body" @if ($errors->has('nama')) has-error @endif>
<div class="form-group" style="text-align: center">
<h5 class="address-title text-center mb-1" id="addNewAddressTitle">Apakah Anda yakin akan menghapus data ini?</h5>
</div>
<button type="submit" class="btn btn-primary ml-1">Hapus</button>
<button type="button" class="btn btn-light-secondary" data-dismiss="modal">Batal</button>
</div>
</form>
</div>
</div>
</div>
{{-- End of Modal Delete Workshop --}}
</td>
</tr>
@php
$no++;
@endphp
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>
@endsection
@push('js')
<script>
$(document).ready(function() {
$("#table-daftar-kegiatan").dataTable();
});
</script>
@endpush
@extends('layouts.app')
@section('title','Data Konferensi')
@section('content')
<section class="section">
<div class="section-header">
<h1>Data Konferensi</h1>
<div class="section-header-breadcrumb">
<div class="breadcrumb-item">
<a href="">Home</a>
</div>
<div class="breadcrumb-item active">Data Konferensi</div>
</div>
</div>
<div class="section-body">
<div class="row mt-4 active" id="tab-semuapengajuan" data-tab-group="mygroup-tab">
<div class="col-12">
<div class="card">
<div class="card-body">
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#add-modal">Tambah Data</button>
<br>
<div class="clearfix mb-3"></div>
<div class="table-responsive">
<table class="table table-striped dataTable" id="table-daftar-konferensi" role="grid">
<thead>
<tr style="text-align: center;">
<th>No.</th>
<th>Konferensi</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
@php
$no = 1;
@endphp
@foreach($konferensi as $tr)
<tr style="text-align: center;">
<td>{{ $no }}</td>
<td>{{ $tr->nama}}</td>
<td>
<button type="button" class="btn btn-info" data-toggle="modal" data-target="#update-modal{{$tr->id}}">Ubah</button>
<button type="button" class="btn btn-danger" data-toggle="modal" data-target="#delete-modal{{$tr->id}}">Hapus</button>
{{-- Modal Add Workshop --}}
<div class="modal fade" id="add-modal" data-backdrop="false" style="background-color: rgba(0, 0, 0, 0.5);">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title bold">Tambah Konferensi Baru</h4>
</div>
<form method="POST" action="{{ route('admin.create_konferensi', ['id' => $tr->id ]) }}" enctype="multipart/form-data">
@csrf
<div class="modal-body" @if ($errors->has('nama')) has-error @endif>
<div class="form-group" style="text-align: left">
<label for="nama">Nama Konferensi</label>
<input type="text" class="form-control" id="nama" name="nama" required>
@if ($errors->has('nama'))
<label id="login-error" class="error" for="nama" style="color: red">{{$errors->first('nama')}}</label>
@endif
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary ml-1">Simpan</button>
<button type="button" class="btn btn-light-secondary" data-dismiss="modal">Batal</button>
</div>
</form>
</div>
</div>
</div>
{{-- End of Modal Add Workshop --}}
{{-- Modal Update Workshop --}}
<div class="modal fade" id="update-modal{{$tr->id}}" data-backdrop="false" style="background-color: rgba(0, 0, 0, 0.5);">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title bold">Ubah Konferensi</h4>
</div>
<form method="POST" action="{{ route('admin.update_konferensi', ['id' => $tr->id ]) }}" enctype="multipart/form-data">
@csrf
@method('put')
<div class="modal-body" @if ($errors->has('nama')) has-error @endif>
<div class="form-group" style="text-align: left">
<label for="nama">Nama Konferensi</label>
<input type="text" class="form-control" id="nama" name="nama" value="{{ $tr->nama }}" required>
@if ($errors->has('nama'))
<label id="login-error" class="error" for="nama" style="color: red">{{$errors->first('nama')}}</label>
@endif
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary ml-1">Simpan</button>
<button type="button" class="btn btn-light-secondary" data-dismiss="modal">Batal</button>
</div>
</form>
</div>
</div>
</div>
{{-- End of Modal Update Workshop --}}
{{-- Modal Delete Workshop --}}
<div class="modal fade" id="delete-modal{{$tr->id}}" data-backdrop="false" style="background-color: rgba(0, 0, 0, 0.5); padding-top:15%;">
<div class="modal-dialog">
<div class="modal-content" style="padding-top : 10px">
<form method="GET" action="{{ route('admin.delete_konferensi', ['id' => $tr->id ]) }}" enctype="multipart/form-data">
@csrf
<div class="modal-body" @if ($errors->has('nama')) has-error @endif>
<div class="form-group" style="text-align: center">
<h5 class="address-title text-center mb-1" id="addNewAddressTitle">Apakah Anda yakin akan menghapus data ini?</h5>
</div>
<button type="submit" class="btn btn-primary ml-1">Hapus</button>
<button type="button" class="btn btn-light-secondary" data-dismiss="modal">Batal</button>
</div>
</form>
</div>
</div>
</div>
{{-- End of Modal Delete Workshop --}}
</td>
</tr>
@php
$no++;
@endphp
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>
@endsection
@push('js')
<script>
$(document).ready(function() {
$("#table-daftar-konferensi").dataTable();
});
</script>
@endpush
......@@ -29,7 +29,7 @@
<th>Instansi</th>
<th>Kegiatan</th>
<th>Konferensi</th>
<th>Action</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
......@@ -89,10 +89,10 @@
@csrf
<div class="modal-body" @if ($errors->has('nama')) has-error @endif>
<div class="form-group" style="text-align: center">
<h5 class="address-title text-center mb-1" id="addNewAddressTitle">Are you sure you want to delete the data</h5>
<h5 class="address-title text-center mb-1" id="addNewAddressTitle">Apakah Anda yakin akan menghapus data ini?</h5>
</div>
<button type="submit" class="btn btn-primary ml-1">Delete</button>
<button type="button" class="btn btn-light-secondary" data-dismiss="modal">Cancel</button>
<button type="submit" class="btn btn-primary ml-1">Hapus</button>
<button type="button" class="btn btn-light-secondary" data-dismiss="modal">Batal</button>
</div>
</form>
</div>
......
@extends('layouts.app')
@section('title','User Management')
@section('content')
<section class="section">
<div class="section-header">
<h1>Master User</h1>
<div class="section-header-breadcrumb">
<div class="breadcrumb-item">
<a href="">Home</a>
</div>
<div class="breadcrumb-item active">Master User</div>
</div>
</div>
<div class="section-body">
<div class="row mt-4 active" id="tab-semuapengajuan" data-tab-group="mygroup-tab">
<div class="col-12">
<div class="card">
<div class="card-body">
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#add-modal">Tambah Data</button>
<br>
<div class="clearfix mb-3"></div>
<div class="table-responsive">
<table class="table table-striped dataTable" id="table-daftar-user" role="grid">
<thead>
<tr style="text-align: center;">
<th>No.</th>
<th>Nama</th>
<th>Email</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
@php
$no = 1;
@endphp
@foreach ($user as $tr)
<tr style="text-align: center;">
<td>{{ $no }}</td>
<td style="text-align : left">{{ $tr->name}}</td>
<td style="text-align : left">{{ $tr->email}}</td>
<td>
<button type="button" class="btn btn-info" data-toggle="modal" data-target="#update-modal{{$tr->id}}">Ubah</button>
<button type="button" class="btn btn-danger" data-toggle="modal" data-target="#delete-modal{{$tr->id}}">Hapus</button>
{{-- Modal Add User --}}
<div class="modal fade" id="add-modal" data-backdrop="false" style="background-color: rgba(0, 0, 0, 0.5);">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title bold">Tambah User Baru</h4>
</div>
<form method="POST" action="{{ route('admin.create_user') }}" enctype="multipart/form-data">
@csrf
<div class="modal-body">
<div class="form-group" style="text-align: left">
<label for="name">Nama</label>
<input type="text" class="form-control" id="name" name="name" required @if ($errors->has('name')) has-error @endif>
@if ($errors->has('name'))
<label id="login-error" class="error" for="name" style="color: red">{{$errors->first('name')}}</label>
@endif
</div>
<div class="form-group" style="text-align: left">
<label for="email">Email</label>
<input type="email" class="form-control" id="email" name="email" required @if ($errors->has('email')) has-error @endif>
@if ($errors->has('email'))
<label id="login-error" class="error" for="email" style="color: red">{{$errors->first('email')}}</label>
@endif
</div>
<div class="form-group" style="text-align: left">
<label for="password">Password</label>
<input type="password" class="form-control" id="password" name="password" required @if ($errors->has('password')) has-error @endif>
@if ($errors->has('password'))
<label id="login-error" class="error" for="password" style="color: red">{{$errors->first('password')}}</label>
@endif
</div>
<div class="form-group" style="text-align: left">
<label for="password-confirmation">Password Confirm</label>
<input type="password" class="form-control" id="password-confirmation" name="password-confirmation" required @if ($errors->has('password-confirmation')) has-error @endif>
@if ($errors->has('password-confirmation'))
<label id="login-error" class="error" for="password-confirmation" style="color: red">{{$errors->first('password-confirmation')}}</label>
@endif
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary ml-1">Simpan</button>
<button type="button" class="btn btn-light-secondary" data-dismiss="modal">Batal</button>
</div>
</form>
</div>
</div>
</div>
{{-- End of Modal Add User --}}
{{-- Modal Update User --}}
<div class="modal fade" id="update-modal{{$tr->id}}" data-backdrop="false" style="background-color: rgba(0, 0, 0, 0.5);">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title bold">Ubah User</h4>
</div>
<form method="POST" action="{{ route('admin.update_user', ['id' => $tr->id ]) }}" enctype="multipart/form-data">
@csrf
@method('put')
<div class="modal-body">
<div class="form-group" style="text-align: left">
<label for="name">Nama</label>
<input type="text" class="form-control" id="name" name="name" value="{{ $tr->name }}" required @if ($errors->has('name')) has-error @endif>
@if ($errors->has('name'))
<label id="login-error" class="error" for="name" style="color: red">{{$errors->first('name')}}</label>
@endif
</div>
<div class="form-group" style="text-align: left">
<label for="email">Email</label>
<input type="email" class="form-control" id="email" name="email" value="{{ $tr->email }}" required @if ($errors->has('email')) has-error @endif>
@if ($errors->has('email'))
<label id="login-error" class="error" for="email" style="color: red">{{$errors->first('email')}}</label>
@endif
</div>
<div class="form-group" style="text-align: left">
<label for="password">Password</label>
<input type="password" class="form-control" id="password" name="password" @if ($errors->has('password')) has-error @endif>
@if ($errors->has('password'))
<label id="login-error" class="error" for="password" style="color: red">{{$errors->first('password')}}</label>
@endif
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary ml-1">Simpan</button>
<button type="button" class="btn btn-light-secondary" data-dismiss="modal">Batal</button>
</div>
</form>
</div>
</div>
</div>
{{-- End of Modal Update User --}}
{{-- Modal Delete User --}}
<div class="modal fade" id="delete-modal{{$tr->id}}" data-backdrop="false" style="background-color: rgba(0, 0, 0, 0.5); padding-top:15%;">
<div class="modal-dialog">
<div class="modal-content" style="padding-top : 10px">
<form method="GET" action="{{ route('admin.delete_user', ['id' => $tr->id ]) }}" enctype="multipart/form-data">
@csrf
<div class="modal-body" @if ($errors->has('nama')) has-error @endif>
<div class="form-group" style="text-align: center">
<h5 class="address-title text-center mb-1" id="addNewAddressTitle">Apakah Anda yakin akan menghapus data ini?</h5>
</div>
<button type="submit" class="btn btn-primary ml-1">Hapus</button>
<button type="button" class="btn btn-light-secondary" data-dismiss="modal">Batal</button>
</div>
</form>
</div>
</div>
</div>
{{-- End of Modal Delete User --}}
</td>
</tr>
@php
$no++;
@endphp
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>
@endsection
@push('js')
<script>
$(document).ready(function() {
$("#table-daftar-user").dataTable();
});
</script>
@endpush
@extends('layouts.app')
@section('title','Beranda')
@section('sidebar')
@parent
@endsection
@section('content')
<section class="section">
<div class="section-header">
<h1>Welcome to KONASPI 2024</h1>
</div>
<div class="section-body">
<div class="row mt-4 active" id="tab-semuapengajuan" data-tab-group="mygroup-tab">
<div class="col-12">
<div class="card">
<div class="card-body">
<h5 style="color: rgb(37, 94, 218);">Konvensi Nasional Pendidikan Indonesia (KONASPI) XI</h5>
<h6 style="color: black;">10-12 September 2024 | Universitas Negeri Surabaya</h6>
</div>
</div>
</div>
</div>
</section>
@endsection
@section('footer')
@parent
@endsection
......@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no" name="viewport">
<title>@yield('title') - JWG 2024</title>
<title>@yield('title') - KONASPI XI 2024</title>
<!-- General CSS Files -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
......
@section('sidebar')
<aside id="sidebar-wrapper">
<div class="sidebar-brand">
<a href="/">JWG 2024</a>
<a href="/">KONASPI XI 2024</a>
</div>
<div class="sidebar-brand sidebar-brand-sm" >
<a href="/">JWG 2024</a>
<a href="/">KONASPI XI 2024</a>
</div>
<br>
<ul class="sidebar-menu" id="mySidebar">
......@@ -13,20 +13,17 @@
<a class="nav-link" href=""><i class="fas fa-home"></i><span>Home</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href=""><i class="fa fa-users"></i><span>Participant Data</span></a>
<a class="nav-link" href=""><i class="fa fa-users"></i><span>Data Peserta</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href=""><i class="fa fa-id-card"></i><span>Profile</span></a>
<a class="nav-link" href=""><i class="fa fa-suitcase"></i><span>Master Kegiatan</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href=""><i class="fa fa-suitcase"></i><span>Thematic Workshop</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href=""><i class="fa fa-user-circle"></i><span>User Management</span></a>
<a class="nav-link" href=""><i class="fa fa-user-circle"></i><span>Master Konferensi</span></a>
</li>
@else
<li class="nav-item">
<a class="nav-link" href=""><i class="fas fa-file-pen"></i><span>Inscription/Registration</span></a>
<a class="nav-link" href="{{route('user.create')}}"><i class="fas fa-file-pen"></i><span>Registrasi</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href=""><i class="fa fa-sign-in"></i><span>Login</span></a>
......
......@@ -19,11 +19,22 @@
Route::post('/store', [RegistrasiController::class,'store'])->name('user.store');
Route::get('/home', [AdminController::class,'index'])->name('admin.home');
Route::get('/user', [AdminController::class, 'index_user'])->name('admin.index_user');
Route::get('/kegiatan', [AdminController::class, 'index_workshop'])->name('admin.index_kegiatan');
Route::put('/updatekegiatan/{id}', [AdminController::class, 'update_workshop'])->name('admin.update_kegiatan');
Route::get('/deletekegiatan/{id}', [AdminController::class, 'delete_workshop'])->name('admin.delete_kegiatan');
Route::post('/createuser', [AdminController::class, 'store_user'])->name('admin.create_user');
Route::put('/updateuser/{id}', [AdminController::class, 'update_user'])->name('admin.update_user');
Route::get('/deleteuser/{id}', [AdminController::class, 'delete_user'])->name('admin.delete_user');
Route::get('/kegiatan', [AdminController::class, 'index_kegiatan'])->name('admin.index_kegiatan');
Route::post('/createkegiatan', [AdminController::class, 'store_kegiatan'])->name('admin.create_kegiatan');
Route::put('/updatekegiatan/{id}', [AdminController::class, 'update_kegiatan'])->name('admin.update_kegiatan');
Route::get('/deletekegiatan/{id}', [AdminController::class, 'delete_kegiatan'])->name('admin.delete_kegiatan');
Route::get('/konferensi', [AdminController::class, 'index_konferensi'])->name('admin.index_konferensi');
Route::post('/createkonferensi', [AdminController::class, 'store_konferensi'])->name('admin.create_konferensi');
Route::put('/updatekonferensi/{id}', [AdminController::class, 'update_konferensi'])->name('admin.update_konferensi');
Route::get('/deletekonferensi/{id}', [AdminController::class, 'delete_konferensi'])->name('admin.delete_konferensi');
Route::get('/peserta', [AdminController::class, 'index_peserta'])->name('admin.index_peserta');
Route::get('/download_peserta', [AdminController::class, 'download_peserta'])->name('admin.download_peserta');
Route::get('/delete_participant/{id}', [AdminController::class, 'delete_participant'])->name('admin.delete_peserta');
Route::get('/delete_peserta/{id}', [AdminController::class, 'delete_peserta'])->name('admin.delete_peserta');
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