From 63a543653622580834101f2321d7a3d7ffa3c9ee Mon Sep 17 00:00:00 2001 From: Amirah22 <94591077+Amirah22@users.noreply.github.com> Date: Thu, 4 Aug 2022 15:56:07 +0800 Subject: [PATCH] update ayat notis lelong --- app/Http/Controllers/NotisController.php | 10 ++++---- database/seeders/RolesSeeder.php | 4 ++++ resources/views/includes/sidebar.blade.php | 17 +++---------- .../views/jananotis/kemaskininotis.blade.php | 23 +++++++++++------- .../jananotis/kemaskininotisbycaw.blade.php | 24 +++++++++++-------- 5 files changed, 41 insertions(+), 37 deletions(-) diff --git a/app/Http/Controllers/NotisController.php b/app/Http/Controllers/NotisController.php index 2c374d07..4e4d4d81 100644 --- a/app/Http/Controllers/NotisController.php +++ b/app/Http/Controllers/NotisController.php @@ -257,8 +257,8 @@ class NotisController extends Controller Public function kemaskininotis(Request $request){ - $tetapan = Tetapan::where('id','=',1)->first(); - // dd($tetapan); + $tetapan = Tetapan::where('id','=',1)->get(); + return view('jananotis.kemaskininotis',compact('tetapan')); @@ -294,8 +294,9 @@ class NotisController extends Controller // dd($request->all()); $tetapan = Tetapan::find(1); + - $tetapan->para2 = $request->para2; + $tetapan->para2caw = $request->para2; $tetapan->update(); $cawangan = Cawangan::all(); @@ -305,8 +306,7 @@ class NotisController extends Controller $update = Cawangan::where('id', $updatecaw['id']) ->where('caw_code', $request->kodcaw) ->update(['para2'=>$request->para2]); - // $update->para2 = $request->para2; - // $update->update(); + } diff --git a/database/seeders/RolesSeeder.php b/database/seeders/RolesSeeder.php index 2226c8d5..c3fff265 100644 --- a/database/seeders/RolesSeeder.php +++ b/database/seeders/RolesSeeder.php @@ -127,6 +127,10 @@ class RolesSeeder extends Seeder 'name' => 'tetapan', 'description' => 'Tetapan Parameter' ]); + Permission::create([ + 'name' => 'jananotis', + 'description' => 'Ayat Notis Lelong' + ]); //account diff --git a/resources/views/includes/sidebar.blade.php b/resources/views/includes/sidebar.blade.php index 7c28ea2c..1b6db73f 100644 --- a/resources/views/includes/sidebar.blade.php +++ b/resources/views/includes/sidebar.blade.php @@ -268,20 +268,9 @@ {{-- Kemaskini Notis --}} -
  • - - - - -
  • +
  • + Kemaskini Notis Lelong +
  • {{-- end Kemaskini Notis --}} diff --git a/resources/views/jananotis/kemaskininotis.blade.php b/resources/views/jananotis/kemaskininotis.blade.php index d32e282d..c32ff3fa 100644 --- a/resources/views/jananotis/kemaskininotis.blade.php +++ b/resources/views/jananotis/kemaskininotis.blade.php @@ -1,5 +1,6 @@ @extends('layouts.app') + @section('content') @@ -18,12 +19,12 @@ @endif
    @csrf - - -
    -
    -
    @@ -33,14 +34,20 @@ + @endforeach
    + + CKEDITOR.replace( 'article-ckeditor', { + height: 400, + width: 1500 + + } ); + + CKEDITOR.replace( 'article-ckeditor', { + height: 400, + width: 1500 + + } ); +