Commit 982fdbde395fb55ac090c4359d5112079bb5ba1b

Authored by blukang25
1 parent 8398d769de
Exists in master

some fundamental change

Showing 28 changed files with 610 additions and 575 deletions Side-by-side Diff

  1 +APP_NAME=GrandMaster
  2 +APP_ENV=local
  3 +APP_KEY=
  4 +APP_DEBUG=true
  5 +APP_URL=http://localhost/grandmaster
  6 +
  7 +LOG_CHANNEL=stack
  8 +
  9 +DB_CONNECTION=mysql
  10 +DB_HOST=127.0.0.1
  11 +DB_PORT=3306
  12 +DB_DATABASE=gmoji
  13 +DB_USERNAME=root
  14 +DB_PASSWORD=
  15 +
  16 +BROADCAST_DRIVER=log
  17 +CACHE_DRIVER=file
  18 +QUEUE_CONNECTION=sync
  19 +SESSION_DRIVER=file
  20 +SESSION_LIFETIME=120
  21 +
  22 +REDIS_HOST=127.0.0.1
  23 +REDIS_PASSWORD=null
  24 +REDIS_PORT=6379
  25 +
  26 +MAIL_MAILER=smtp
  27 +MAIL_HOST=smtp.mailtrap.io
  28 +MAIL_PORT=2525
  29 +MAIL_USERNAME=null
  30 +MAIL_PASSWORD=null
  31 +MAIL_ENCRYPTION=null
  32 +MAIL_FROM_ADDRESS=null
  33 +MAIL_FROM_NAME="${APP_NAME}"
  34 +
  35 +AWS_ACCESS_KEY_ID=
  36 +AWS_SECRET_ACCESS_KEY=
  37 +AWS_DEFAULT_REGION=us-east-1
  38 +AWS_BUCKET=
  39 +
  40 +PUSHER_APP_ID=
  41 +PUSHER_APP_KEY=
  42 +PUSHER_APP_SECRET=
  43 +PUSHER_APP_CLUSTER=mt1
  44 +
  45 +MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
  46 +MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
.env.example
1   -APP_NAME=GrandMaster
2   -APP_ENV=local
3   -APP_KEY=
4   -APP_DEBUG=true
5   -APP_URL=http://localhost/grandmaster
6   -
7   -LOG_CHANNEL=stack
8   -
9   -DB_CONNECTION=mysql
10   -DB_HOST=127.0.0.1
11   -DB_PORT=3306
12   -DB_DATABASE=grandmaster
13   -DB_USERNAME=root
14   -DB_PASSWORD=
15   -
16   -BROADCAST_DRIVER=log
17   -CACHE_DRIVER=file
18   -QUEUE_CONNECTION=sync
19   -SESSION_DRIVER=file
20   -SESSION_LIFETIME=120
21   -
22   -REDIS_HOST=127.0.0.1
23   -REDIS_PASSWORD=null
24   -REDIS_PORT=6379
25   -
26   -MAIL_MAILER=smtp
27   -MAIL_HOST=smtp.mailtrap.io
28   -MAIL_PORT=2525
29   -MAIL_USERNAME=null
30   -MAIL_PASSWORD=null
31   -MAIL_ENCRYPTION=null
32   -MAIL_FROM_ADDRESS=null
33   -MAIL_FROM_NAME="${APP_NAME}"
34   -
35   -AWS_ACCESS_KEY_ID=
36   -AWS_SECRET_ACCESS_KEY=
37   -AWS_DEFAULT_REGION=us-east-1
38   -AWS_BUCKET=
39   -
40   -PUSHER_APP_ID=
41   -PUSHER_APP_KEY=
42   -PUSHER_APP_SECRET=
43   -PUSHER_APP_CLUSTER=mt1
44   -
45   -MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
46   -MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
app/Http/Controllers/Backend/backendpController.php
... ... @@ -5,23 +5,24 @@
5 5 use App\Http\Controllers\Controller;
6 6 use Illuminate\Http\Request;
7 7 use Yajra\DataTables\Facades\DataTables;
8   -use Validator;
  8 +use Illuminate\Support\Facades\Validator;
9 9 use App\Backendp;
10 10 use App\Katartikel;
11 11 use App\User;
  12 +use Illuminate\Support\Facades\Validator as FacadesValidator;
12 13  
13 14 class backendpController extends Controller
14 15 {
15 16 public function index()
16 17 {
17   -
18   - return view('backend.beprog.index');
  18 + $backendp = Backendp::all();
  19 + return view('backend.backendp.index', compact('backendp'));
19 20 }
20 21  
21 22 public function data(Request $request)
22 23 {
23 24 if ($request->ajax()) {
24   - $backendp = Backendp::orderBy('id');
  25 + $backendp = Backendp::orderBy('id','desc');
25 26 return Datatables::of($backendp)
26 27 ->addIndexColumn()
27 28 // ->addColumn('lampiran', function($backendp){
... ... @@ -65,7 +66,7 @@
65 66 public function create()
66 67 {
67 68  
68   - return view('backend.beprog.tambah');
  69 + return view('backend.backendp.tambah');
69 70 }
70 71  
71 72 /**
... ... @@ -85,8 +86,8 @@
85 86 public function store(Request $request)
86 87 {
87 88 $validator = Validator::make($request->all(), [
88   - 'id' => 'required',
89   - 'kategori_id' => 'required',
  89 +
  90 +
90 91 'judul' => 'required',
91 92 'konten' => 'required',
92 93  
93 94  
... ... @@ -104,7 +105,64 @@
104 105 return response()->json($respon);
105 106 }
106 107  
  108 + public function edit($id)
  109 + {
  110 + $backendp = Backendp::find($id);
  111 +
  112 + return view('backend.backendp.ubah', compact('backendp'));
  113 + }
107 114  
  115 + /**
  116 + * Update the specified resource in storage.
  117 + *
  118 + * @param \Illuminate\Http\Request $request
  119 + * @param int $id
  120 + * @return \Illuminate\Http\Response
  121 + */
  122 + public function update(Request $request, $id)
  123 + {
  124 + $validator = Validator::make($request->all(), [
  125 +
  126 + 'judul' => 'required',
  127 + 'konten' => 'required',
  128 +
  129 +
  130 + ]);
  131 + if ($validator->fails()) {
  132 + $respon = array('status'=>false, 'pesan' => $validator->messages());
  133 + } else {
  134 + if (backendp::find($id)->update($request->all())) {
  135 + $respon = array('status'=>true, 'pesan' => ['msg' => 'Data berhasil diubah']);
  136 + } else {
  137 + $respon = array('status'=>false, 'pesan' => ['msg' => 'Data gagal diubah']);
  138 + }
  139 + }
  140 + return response()->json($respon);
  141 + }
  142 +
  143 + /**
  144 + * Remove the specified resource from storage.
  145 + *
  146 + * @param int $id
  147 + * @return \Illuminate\Http\Response
  148 + */
  149 +
  150 + public function hapus($id)
  151 + {
  152 + $backendp = backendp::find($id);
  153 + return view('backend.backendp.hapus', ['backendp' => $backendp]);
  154 + }
  155 +
  156 + public function destroy($id)
  157 + {
  158 + $backendp = backendp::find($id);
  159 + if ($backendp->delete()) {
  160 + $respon = array('status'=>true, 'pesan' => ['msg' => 'Data berhasil dihapus']);
  161 + } else {
  162 + $respon = array('status'=>false, 'pesan' => ['msg' => 'Data gagal dihapus']);
  163 + }
  164 + return response()->json($respon);
  165 + }
108 166  
109 167 }
app/Http/Controllers/Backend/eofficeController.php
... ... @@ -6,12 +6,11 @@
6 6 use Illuminate\Http\Request;
7 7 use Yajra\DataTables\Facades\DataTables;
8 8 use Illuminate\Support\Facades\Auth;
  9 +use Illuminate\Support\Facades\Validator;
9 10 use App\Eoffice;
10 11 use App\Katartikel;
11 12 use App\User;
12   -use Validator;
13 13  
14   -
15 14 class eofficeController extends Controller
16 15 {
17 16 public function index()
18 17  
... ... @@ -58,17 +57,9 @@
58 57  
59 58 public function create(Request $request)
60 59 {
61   - // $eoffice = Eoffice::create();
62   - // $katartikel_id = Katartikel::pluck('katartikel_id', 'id');
63   - // $eoffice = Eoffice::whith('katartikel')->where
64   - // dd($eoffice);
65   -
66   - // $request->request->add(['user_id' => auth()->user()->id]);
67   - // dd($request->all());
68   - //$eoffice = Eoffice::create($request->all());
69   -
  60 +
70 61 return view('backend.eoffice.tambah');
71   - // [ 'eoffices' => Eoffice::with('katartikel')]
  62 +
72 63  
73 64 }
74 65  
... ... @@ -105,8 +96,8 @@
105 96 public function edit($id)
106 97 {
107 98 $eoffice = Eoffice::find($id);
108   - $katartikel_id = Eoffice::pluck('id','katartikel_id');
109   - return view('backend.eoffice.ubah', compact('eoffice','katartikel_id'));
  99 +
  100 + return view('backend.eoffice.ubah', compact('eoffice'));
110 101 }
111 102  
112 103 /**
... ... @@ -119,7 +110,7 @@
119 110 public function update(Request $request, $id)
120 111 {
121 112 $validator = Validator::make($request->all(), [
122   - // 'katartikel_id' => 'required',
  113 +
123 114 'judul' => 'required',
124 115 'konten' => 'required',
125 116  
database/migrations/2021_10_07_144619_create_kategoris_table.php
  1 +<?php
  2 +
  3 +use Illuminate\Database\Migrations\Migration;
  4 +use Illuminate\Database\Schema\Blueprint;
  5 +use Illuminate\Support\Facades\Schema;
  6 +
  7 +class CreateKategorisTable extends Migration
  8 +{
  9 + /**
  10 + * Run the migrations.
  11 + *
  12 + * @return void
  13 + */
  14 + public function up()
  15 + {
  16 + Schema::create('kategoris', function (Blueprint $table) {
  17 + $table->bigIncrements('id');
  18 +
  19 + $table->string('kode', 90)->nulllable();
  20 + $table->string('nama')->nulllable();
  21 + $table->text('keterangan')->nullable();
  22 +
  23 + $table->timestamp('created_at')->nullable();
  24 + $table->date('updated_at')->nullable();
  25 + $table->timestamp('deleted_at')->nullable();
  26 + });
  27 + }
  28 +
  29 + /**
  30 + * Reverse the migrations.
  31 + *
  32 + * @return void
  33 + */
  34 + public function down()
  35 + {
  36 + Schema::dropIfExists('kategoris');
  37 + }
  38 +}
database/migrations/2021_10_07_154619_create_kategoris_table.php
1   -<?php
2   -
3   -use Illuminate\Database\Migrations\Migration;
4   -use Illuminate\Database\Schema\Blueprint;
5   -use Illuminate\Support\Facades\Schema;
6   -
7   -class CreateKategorisTable extends Migration
8   -{
9   - /**
10   - * Run the migrations.
11   - *
12   - * @return void
13   - */
14   - public function up()
15   - {
16   - Schema::create('kategoris', function (Blueprint $table) {
17   - $table->bigIncrements('id');
18   -
19   - $table->string('kode', 90)->nulllable();
20   - $table->string('nama')->nulllable();
21   - $table->text('keterangan')->nullable();
22   -
23   - $table->timestamp('created_at')->nullable();
24   - $table->date('updated_at')->nullable();
25   - $table->timestamp('deleted_at')->nullable();
26   - });
27   - }
28   -
29   - /**
30   - * Reverse the migrations.
31   - *
32   - * @return void
33   - */
34   - public function down()
35   - {
36   - Schema::dropIfExists('kategoris');
37   - }
38   -}
database/migrations/2021_10_08_110118_create_formals_table.php
... ... @@ -16,6 +16,7 @@
16 16 Schema::create('formals', function (Blueprint $table) {
17 17 $table->bigIncrements('id');
18 18 $table->string('dokumen_id')->nullable();
  19 +
19 20 $table->foreignId('kategori_id')->references('id')->on('kategoris');
20 21 $table->string('nomor')->nullable(false);
21 22 $table->string('tahun')->nullable(false);
database/migrations/2021_10_19_091721_create_eoffices_table.php
... ... @@ -15,7 +15,6 @@
15 15 {
16 16 Schema::create('eoffices', function (Blueprint $table) {
17 17 $table->bigIncrements('id');
18   - $table->foreignId('katartikel_id')->references('kategori_id')->on('katartikels');
19 18 $table->string('judul')->nulllable();
20 19 $table->text('konten')->nullable();
21 20 $table->string('image')->nullable();
resources/views/backend/backendp/ajax.blade.php
  1 +var nextUrl=$("#url").val();
  2 +function errorMsg(pesan){
  3 + $(".pesan").html('<div class="alert alert-danger" role="alert"><i class="fa fa-ban"></i> Terjadi kesalahan. Error '+ pesan +'</div>');
  4 + $("input").prop('disabled', false);
  5 + $(".loading").hide();
  6 + $(".modal-footer").show();
  7 +}
  8 +
  9 +function successMsg(data){
  10 + if(data.status == true){
  11 + if (typeof data.url !== 'undefined') {
  12 + location.href= data.url;
  13 + } else {
  14 + $('#datatable').DataTable().ajax.reload();
  15 + $('.modal').modal('hide');
  16 + Swal.fire({
  17 + title: 'Okay...',
  18 + text: 'Berhasil proses data',
  19 + type: 'success',
  20 + timer: 1500
  21 + });
  22 + }
  23 + }else{
  24 + $("button").prop("disabled", false);
  25 + $("input").prop('disabled', false);
  26 + $.each(data.pesan, function(i, item) {
  27 + $('#'+i).closest('.form-group').addClass('has-error');
  28 + $('#'+i).focus();
  29 + $(".pesan").html('<div class="alert alert-danger" role="alert"><i class="fa fa-ban"></i> '+ item +'</div>');
  30 + return false;
  31 + });
  32 + }
  33 + $(".loading").hide();
  34 + {{-- $(".pesan").html(''); --}}
  35 + $(".modal-footer").show();
  36 +
  37 +}
  38 +function sebelumKirim(){
  39 + $(".pesan").html('<div class="alert alert-info" role="alert"><center><i class="fa fa-spinner fa-spin"></i> Loading...</center></div>');
  40 + $("input").prop('disabled', true);
  41 + $(".loading").show();
  42 + $(".modal-footer").hide();
  43 +}
  44 +
  45 +function goAjax(targetUrl, dataString, methodType = 'POST'){
  46 + $.ajax({
  47 + type: methodType,
  48 + url: targetUrl,
  49 + data: dataString,
  50 + enctype: 'multipart/form-data',
  51 + dataType: 'json',
  52 + cache: false,
  53 + beforeSend: function(){
  54 + sebelumKirim();
  55 + },
  56 + success: function(data){
  57 + successMsg(data);
  58 + },
  59 + error: function(x, e){
  60 + // errorMsg(x.status);
  61 + }
  62 + });
  63 +}
  64 +
  65 +function addCommas(nStr)
  66 +{
  67 + nStr += '';
  68 + x = nStr.split('.');
  69 + x1 = x[0];
  70 + x2 = x.length > 1 ? '.' + x[1] : '';
  71 + var rgx = /(\d+)(\d{3})/;
  72 + while (rgx.test(x1)) {
  73 + x1 = x1.replace(rgx, '$1' + ',' + '$2');
  74 + }
  75 + return x1 + x2;
  76 +}
resources/views/backend/backendp/datatables.blade.php
  1 +$(document).ready(function () {
  2 + $('#datatable').DataTable({
  3 + responsive: true,
  4 + lengthChange: false,
  5 + language: {
  6 + url: "{{ asset('resources/vendor/datatables/js/indonesian.json') }}"
  7 + },
  8 + dom: "<'row mb-3'<'col-sm-12 col-md-6 d-flex align-items-center justify-content-start'f><'col-sm-12 col-md-6 d-flex align-items-center justify-content-end'lB>>" +
  9 + "<'row'<'col-sm-12'tr>>" +
  10 + "<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",
  11 + buttons: [
  12 + {
  13 + extend: 'pdfHtml5',
  14 + text: 'PDF',
  15 + titleAttr: 'Generate PDF',
  16 + className: 'btn-outline-danger btn-sm mr-1',
  17 + exportOptions: {
  18 + columns: [0, 1,2,3]
  19 + }
  20 + },
  21 + {
  22 + extend: 'excelHtml5',
  23 + text: 'Excel',
  24 + titleAttr: 'Generate Excel',
  25 + className: 'btn-outline-success btn-sm mr-1',
  26 + exportOptions: {
  27 + columns: [0, 1,2,3]
  28 + }
  29 + },
  30 + {
  31 + extend: 'print',
  32 + text: 'Print',
  33 + titleAttr: 'Print Table',
  34 + className: 'btn-outline-primary btn-sm',
  35 + exportOptions: {
  36 + columns: [0, 1,2,3]
  37 + }
  38 + }
  39 + ],
  40 + processing: true,
  41 + serverSide: true,
  42 + ajax: "{{ url($url_admin.'/backendp/data') }}",
  43 + columns: [
  44 +
  45 +, { data: 'judul'},
  46 + { data: 'konten'},
  47 +
  48 + { data: 'action', orderable: false, searchable: false },
  49 + ]
  50 + });
  51 +});
resources/views/backend/backendp/datatables_detail.blade.php
  1 +$(document).ready(function () {
  2 + $('#datatable').DataTable({
  3 + responsive: true,
  4 + lengthChange: false,
  5 + language: {
  6 + url: "{{ asset('resources/vendor/datatables/js/indonesian.json') }}"
  7 + },
  8 + dom: "<'row mb-3'<'col-sm-12 col-md-6 d-flex align-items-center justify-content-start'f><'col-sm-12 col-md-6 d-flex align-items-center justify-content-end'lB>>" +
  9 + "<'row'<'col-sm-12'tr>>" +
  10 + "<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",
  11 + buttons: [
  12 + {
  13 + extend: 'pdfHtml5',
  14 + text: 'PDF',
  15 + titleAttr: 'Generate PDF',
  16 + className: 'btn-outline-danger btn-sm mr-1',
  17 + exportOptions: {
  18 + columns: [0, 1, 2, 3, 4]
  19 + }
  20 + },
  21 + {
  22 + extend: 'excelHtml5',
  23 + text: 'Excel',
  24 + titleAttr: 'Generate Excel',
  25 + className: 'btn-outline-success btn-sm mr-1',
  26 + exportOptions: {
  27 + columns: [0, 1, 2, 3, 4]
  28 + }
  29 + },
  30 + {
  31 + extend: 'print',
  32 + text: 'Print',
  33 + titleAttr: 'Print Table',
  34 + className: 'btn-outline-primary btn-sm',
  35 + exportOptions: {
  36 + columns: [0, 1, 2, 3, 4]
  37 + }
  38 + }
  39 + ],
  40 + processing: true,
  41 + serverSide: true,
  42 + ajax: "{{ url($url_admin.'/unor/detail/data/'.$id) }}",
  43 + columns: [
  44 + { data: 'nama' },
  45 + { data: 'email' },
  46 + { data: 'username' }
  47 + ]
  48 + });
  49 +});
resources/views/backend/backendp/detail.blade.php
  1 +@extends('backend.home.index')
  2 +@push('title', 'Detail '. $halaman->nama . ' '. $aksesgrup->nama)
  3 +@push('header', 'Detail '. $halaman->nama . ' '.$aksesgrup->nama)
  4 +@push('tombol')
  5 +<div class="btn-group pull-right">
  6 + <a href="{{ url('aksesgrup') }}" class="btn btn-sm btn-danger">
  7 + <i class="fa fa-arrow-left"></i> Kembali
  8 + </a>
  9 +</div>
  10 +@endpush
  11 +@section('content')
  12 +<div class="panel-container show">
  13 + <div class="panel-content">
  14 + <table id="datatable" class="table table-bordered table-hover table-striped w-100">
  15 + <thead class="bg-primary-600">
  16 + <tr>
  17 + <th>Nama</th>
  18 + <th>Email</th>
  19 + <th>Username</th>
  20 + </tr>
  21 + </thead>
  22 + </table>
  23 + </div>
  24 +</div>
  25 +@endsection
  26 +@push('js')
  27 +@include('backend.home.datatable-js')
  28 +<script type="text/javascript" src="{{ URL::asset('ojisatriani/'. $halaman->kode .'/jquery.js') }}"></script>
  29 +<script type="text/javascript" src="{{ URL::asset('ojisatriani/'. $halaman->kode .'/'.$aksesgrup->id.'/datatables_detail.js') }}"></script>
  30 +@endpush
  31 +@push('css')
  32 +@include('backend.home.datatable-css')
  33 +@endpush
resources/views/backend/backendp/hapus.blade.php
  1 +{!! Form::open(array('id' => 'frmOji', 'route' => ['backendp.destroy', $backendp->id], 'class' => 'form account-form', 'method' => 'DELETE')) !!}
  2 +<div class="row">
  3 + <div class="col-md-12">
  4 +
  5 + <p>
  6 + <label class="control-label">Hapus data <strong>{{ $backendp->judul }}?</strong></label>
  7 + </p>
  8 + </div>
  9 + {!! Form::hidden('table-list', 'datatable', array('id' => 'table-list')) !!}
  10 +</div>
  11 +<div class="row">
  12 + <div class="col-md-12">
  13 + <span class="pesan"></span>
  14 + <div id="output"></div>
  15 + <div class="progress">
  16 + <div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">
  17 + <div id="statustxt">0%</div>
  18 + </div>
  19 + </div>
  20 + </div>
  21 +</div>
  22 +{!! Form::close() !!}
  23 +<script src="{{ URL::asset('resources/vendor/jquery/jquery.form.js') }}"></script>
  24 +<script src="{{ URL::asset('ojisatriani/home/ajax_progress.js') }}"></script>
resources/views/backend/backendp/index.blade.php
  1 +@extends('backend.home.index')
  2 +@push('title', $halaman->nama)
  3 +@push('header', $halaman->nama)
  4 +@push('tombol')
  5 +<a href="#tambah" class="btn btn-sm btn-primary tambah">
  6 + Tambah <i class="fa fa-plus-circle"></i>
  7 +</a>
  8 +@endpush
  9 +@section('content')
  10 +<div class="panel-container show container-fluid col">
  11 +
  12 + <div class="panel-content">
  13 + <table id="datatable" class="table table-bordered table-hover table-striped w-100">
  14 + <thead class="bg-primary-600">
  15 + <tr>
  16 +
  17 +
  18 + <th class="text-center wid-10" tabindex="0" rowspan="1" colspan="1">Judul</th>
  19 + <th class="text-center wid-10" tabindex="0" rowspan="1" colspan="1">Konten</th>
  20 +
  21 + <th class="text-center wid-10" tabindex="0" rowspan="1" colspan="1">Aksi</th>
  22 + </tr>
  23 + </thead>
  24 + </table>
  25 +
  26 + </div>
  27 +
  28 +</div>
  29 +@endsection
  30 +@push('js')
  31 +@include('backend.home.datatable-js')
  32 +<script type="text/javascript" src="{{ URL::asset('ojisatriani/'. $halaman->kode .'/jquery.js') }}"></script>
  33 +<script type="text/javascript" src="{{ URL::asset('ojisatriani/'. $halaman->kode .'/datatables.js') }}"></script>
  34 +
  35 +
  36 +@endpush
  37 +@push('css')
  38 +@include('backend.home.datatable-css')
  39 +@endpush
resources/views/backend/backendp/jquery.blade.php
  1 +$(document).ready(function(){
  2 + $('.tambah').click(function(){
  3 + ojisatrianiLoadingFadeIn();
  4 + $.loadmodal({
  5 + url: "{{ url($url_admin.'/backendp/create') }}",
  6 + id: 'responsive',
  7 + dlgClass: 'fade',
  8 + bgClass: 'primary',
  9 + title: 'Tambah',
  10 + width: 'whatever',
  11 + modal: {
  12 + keyboard: true,
  13 + // any other options from the regular $().modal call (see Bootstrap docs)
  14 + },
  15 + ajax: {
  16 + dataType: 'html',
  17 + method: 'GET',
  18 + success: function(data, status, xhr){
  19 + ojisatrianiLoadingFadeOut();
  20 + },
  21 +
  22 + },
  23 + });
  24 + });
  25 +
  26 + $(document).on("click",".ubah",function() {
  27 + ojisatrianiLoadingFadeIn();
  28 + var id = $(this).attr('backendp-id');
  29 + $.loadmodal({
  30 + url: "{{ url($url_admin.'/backendp') }}/"+ id +"/edit",
  31 + id: 'responsive',
  32 + dlgClass: 'fade',
  33 + bgClass: 'warning',
  34 + title: 'Ubah',
  35 + width: 'whatever',
  36 + modal: {
  37 + keyboard: true,
  38 + // any other options from the regular $().modal call (see Bootstrap docs)
  39 + },
  40 + ajax: {
  41 + dataType: 'html',
  42 + method: 'GET',
  43 + success: function(data, status, xhr){
  44 + ojisatrianiLoadingFadeOut();
  45 + },
  46 + },
  47 + });
  48 + });
  49 +
  50 + $(document).on("click",".hapus",function() {
  51 + ojisatrianiLoadingFadeIn();
  52 + var id = $(this).attr('backendp-id');
  53 + $.loadmodal({
  54 + url: "{{ url($url_admin.'/backendp') }}/hapus/"+ id,
  55 + id: 'responsive',
  56 + dlgClass: 'fade',
  57 + bgClass: 'danger',
  58 + title: 'Hapus',
  59 + width: 'whatever',
  60 + modal: {
  61 + keyboard: true,
  62 + // any other options from the regular $().modal call (see Bootstrap docs)
  63 + //$('#uraian').val(id),
  64 + },
  65 + ajax: {
  66 + dataType: 'html',
  67 + method: 'GET',
  68 + success: function(data, status, xhr){
  69 + ojisatrianiLoadingFadeOut();
  70 + },
  71 + },
  72 + });
  73 + });
  74 +
  75 +});
resources/views/backend/backendp/tambah.blade.php
  1 +{!! Form::open(array('id' => 'frmOji', 'route' => ['backendp.store'], 'class' => 'form account-form', 'method' => 'post' )) !!}
  2 +<div class="row">
  3 + <div class="col-md-12">
  4 +
  5 + <p>
  6 + {!! Form::label('Judul', 'Judul', array('class' => 'col-md-12 control-label')) !!}
  7 + {!! Form::text('judul', NULL, array('id' => 'judul', 'class' => 'form-control', 'placeholder' => 'Judul Artikel')) !!}
  8 + </p>
  9 + <p>
  10 + {!! Form::label('Konten', 'Konten', array('class' => 'col-md-12 control-label')) !!}
  11 + {!! Form::textarea('konten', NULL, array('id' => 'konten', 'class' => 'form-control', 'rows' => '30' , 'placeholder' => 'Konten')) !!}
  12 + </p>
  13 + <script>
  14 + $(document).ready(function() {
  15 + $('#konten').summernote();
  16 + });
  17 + var konten = $('#konten').summernote()
  18 + </script>
  19 + <!-- <p>
  20 + {!! Form::label('User', 'User', array('class' => 'col-md-12 control-label')) !!}
  21 + {!! Form::text('user_id', NULL, array('id' => 'user_id', 'class' => 'form-control', 'placeholder' => 'Kategori Dokumen')) !!}
  22 + </p> -->
  23 + {!! Form::hidden('table-list', 'datatable', array('id' => 'table-list')) !!}
  24 +</div>
  25 +<div class="row">
  26 + <div class="col-md-12">
  27 + <span class="pesan"></span>
  28 + <div id="output"></div>
  29 + <div class="progress">
  30 + <div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">
  31 + <div id="statustxt">0%</div>
  32 + </div>
  33 + </div>
  34 + </div>
  35 +</div>
  36 +{!! Form::close() !!}
  37 +<script src="{{ URL::asset('resources/vendor/jquery/jquery.form.js') }}"></script>
  38 +<script src="{{ URL::asset('ojisatriani/home/ajax_progress.js') }}"></script>
  39 +<!-- include summernote css/js -->
  40 +<link href="{{ URL::asset('resources/summernote/summernote.min.css') }}" rel="stylesheet">
  41 +<script src="{{ URL::asset('resources/summernote/summernote.js') }}"></script>
  42 + <!-- <link href="{{ asset('ckeditor/plugins/codesnippet/lib/highlight/styles/default.css') }}" rel="stylesheet"> -->
resources/views/backend/backendp/ubah.blade.php
  1 +{!! Form::open(array('id' => 'frmOji', 'route' => ['backendp.update', $backendp->id], 'class' => 'form account-form', 'method' => 'PUT', 'files' => TRUE )) !!}
  2 +<div class="row">
  3 + <div class="col-md-12">
  4 +
  5 +
  6 + <p>
  7 + {!! Form::label('Judul', 'Judul', array('class' => 'col-md-6 control-label')) !!}
  8 + {!! Form::text('judul', $backendp->judul, array('id' => 'judul', 'class' => 'form-control', 'placeholder' => 'Judul')) !!}
  9 + </p>
  10 + <p>
  11 + {!! Form::label('Konten', 'Konten', array('class' => 'col-md-6 control-label')) !!}
  12 + {!! Form::textarea('konten', $backendp->konten, array('id' => 'konten', 'class' => 'form-control', 'placeholder' => 'Konten')) !!}
  13 + </p>
  14 + <script>
  15 + $(document).ready(function() {
  16 + $('#konten').summernote();
  17 + });
  18 + var konten = $('#konten').summernote()
  19 + </script>
  20 +
  21 + </div>
  22 + {!! Form::hidden('table-list', 'datatable', array('id' => 'table-list')) !!}
  23 +</div>
  24 +<div class="row">
  25 + <div class="col-md-12">
  26 + <span class="pesan"></span>
  27 + <div id="output"></div>
  28 + <div class="progress">
  29 + <div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">
  30 + <div id="statustxt">0%</div>
  31 + </div>
  32 + </div>
  33 + </div>
  34 +</div>
  35 +{!! Form::close() !!}
  36 +<script src="{{ URL::asset('resources/vendor/jquery/jquery.form.js') }}"></script>
  37 +<script src="{{ URL::asset('ojisatriani/home/ajax_progress.js') }}"></script>
  38 +<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/js/bootstrap-datepicker.min.js"> </script>
  39 +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/css/bootstrap-datepicker.min.css" />
  40 +<script>
  41 + $(document).ready(function(){
  42 + var date_input=$('input[name="tanggal_sk"]'); //our date input has the name "date"
  43 + var container=$('.bootstrap-iso form').length>0 ? $('.bootstrap-iso form').parent() : "body";
  44 + date_input.datepicker({
  45 + format: 'mm/dd/yyyy',
  46 + container: container,
  47 + todayHighlight: true,
  48 + autoclose: true,
  49 + })
  50 + })
  51 +</script>
  52 +<!-- include summernote css/js -->
  53 +<link href="{{ URL::asset('resources/summernote/summernote.min.css') }}" rel="stylesheet">
  54 +<script src="{{ URL::asset('resources/summernote/summernote.js') }}"></script>
  55 +<link href="{{ asset('ckeditor/plugins/codesnippet/lib/highlight/styles/default.css') }}" rel="stylesheet">
resources/views/backend/beprog/ajax.blade.php
1   -var nextUrl=$("#url").val();
2   -function errorMsg(pesan){
3   - $(".pesan").html('<div class="alert alert-danger" role="alert"><i class="fa fa-ban"></i> Terjadi kesalahan. Error '+ pesan +'</div>');
4   - $("input").prop('disabled', false);
5   - $(".loading").hide();
6   - $(".modal-footer").show();
7   -}
8   -
9   -function successMsg(data){
10   - if(data.status == true){
11   - if (typeof data.url !== 'undefined') {
12   - location.href= data.url;
13   - } else {
14   - $('#datatable').DataTable().ajax.reload();
15   - $('.modal').modal('hide');
16   - Swal.fire({
17   - title: 'Okay...',
18   - text: 'Berhasil proses data',
19   - type: 'success',
20   - timer: 1500
21   - });
22   - }
23   - }else{
24   - $("button").prop("disabled", false);
25   - $("input").prop('disabled', false);
26   - $.each(data.pesan, function(i, item) {
27   - $('#'+i).closest('.form-group').addClass('has-error');
28   - $('#'+i).focus();
29   - $(".pesan").html('<div class="alert alert-danger" role="alert"><i class="fa fa-ban"></i> '+ item +'</div>');
30   - return false;
31   - });
32   - }
33   - $(".loading").hide();
34   - {{-- $(".pesan").html(''); --}}
35   - $(".modal-footer").show();
36   -
37   -}
38   -function sebelumKirim(){
39   - $(".pesan").html('<div class="alert alert-info" role="alert"><center><i class="fa fa-spinner fa-spin"></i> Loading...</center></div>');
40   - $("input").prop('disabled', true);
41   - $(".loading").show();
42   - $(".modal-footer").hide();
43   -}
44   -
45   -function goAjax(targetUrl, dataString, methodType = 'POST'){
46   - $.ajax({
47   - type: methodType,
48   - url: targetUrl,
49   - data: dataString,
50   - enctype: 'multipart/form-data',
51   - dataType: 'json',
52   - cache: false,
53   - beforeSend: function(){
54   - sebelumKirim();
55   - },
56   - success: function(data){
57   - successMsg(data);
58   - },
59   - error: function(x, e){
60   - // errorMsg(x.status);
61   - }
62   - });
63   -}
64   -
65   -function addCommas(nStr)
66   -{
67   - nStr += '';
68   - x = nStr.split('.');
69   - x1 = x[0];
70   - x2 = x.length > 1 ? '.' + x[1] : '';
71   - var rgx = /(\d+)(\d{3})/;
72   - while (rgx.test(x1)) {
73   - x1 = x1.replace(rgx, '$1' + ',' + '$2');
74   - }
75   - return x1 + x2;
76   -}
resources/views/backend/beprog/datatables.blade.php
1   -$(document).ready(function () {
2   - $('#datatable').DataTable({
3   - responsive: true,
4   - lengthChange: false,
5   - language: {
6   - url: "{{ asset('resources/vendor/datatables/js/indonesian.json') }}"
7   - },
8   - dom: "<'row mb-3'<'col-sm-12 col-md-6 d-flex align-items-center justify-content-start'f><'col-sm-12 col-md-6 d-flex align-items-center justify-content-end'lB>>" +
9   - "<'row'<'col-sm-12'tr>>" +
10   - "<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",
11   - buttons: [
12   - {
13   - extend: 'pdfHtml5',
14   - text: 'PDF',
15   - titleAttr: 'Generate PDF',
16   - className: 'btn-outline-danger btn-sm mr-1',
17   - exportOptions: {
18   - columns: [0, 1,2,3]
19   - }
20   - },
21   - {
22   - extend: 'excelHtml5',
23   - text: 'Excel',
24   - titleAttr: 'Generate Excel',
25   - className: 'btn-outline-success btn-sm mr-1',
26   - exportOptions: {
27   - columns: [0, 1,2,3]
28   - }
29   - },
30   - {
31   - extend: 'print',
32   - text: 'Print',
33   - titleAttr: 'Print Table',
34   - className: 'btn-outline-primary btn-sm',
35   - exportOptions: {
36   - columns: [0, 1,2,3]
37   - }
38   - }
39   - ],
40   - processing: true,
41   - serverSide: true,
42   - ajax: "{{ url($url_admin.'/beprog/data') }}",
43   - columns: [
44   -
45   -, {!! data: 'judul'!!},
46   - {!! data: 'konten'!!},
47   -
48   - { data: 'action', orderable: false, searchable: false },
49   - ]
50   - });
51   -});
resources/views/backend/beprog/datatables_detail.blade.php
1   -$(document).ready(function () {
2   - $('#datatable').DataTable({
3   - responsive: true,
4   - lengthChange: false,
5   - language: {
6   - url: "{{ asset('resources/vendor/datatables/js/indonesian.json') }}"
7   - },
8   - dom: "<'row mb-3'<'col-sm-12 col-md-6 d-flex align-items-center justify-content-start'f><'col-sm-12 col-md-6 d-flex align-items-center justify-content-end'lB>>" +
9   - "<'row'<'col-sm-12'tr>>" +
10   - "<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",
11   - buttons: [
12   - {
13   - extend: 'pdfHtml5',
14   - text: 'PDF',
15   - titleAttr: 'Generate PDF',
16   - className: 'btn-outline-danger btn-sm mr-1',
17   - exportOptions: {
18   - columns: [0, 1, 2, 3, 4]
19   - }
20   - },
21   - {
22   - extend: 'excelHtml5',
23   - text: 'Excel',
24   - titleAttr: 'Generate Excel',
25   - className: 'btn-outline-success btn-sm mr-1',
26   - exportOptions: {
27   - columns: [0, 1, 2, 3, 4]
28   - }
29   - },
30   - {
31   - extend: 'print',
32   - text: 'Print',
33   - titleAttr: 'Print Table',
34   - className: 'btn-outline-primary btn-sm',
35   - exportOptions: {
36   - columns: [0, 1, 2, 3, 4]
37   - }
38   - }
39   - ],
40   - processing: true,
41   - serverSide: true,
42   - ajax: "{{ url($url_admin.'/unor/detail/data/'.$id) }}",
43   - columns: [
44   - { data: 'nama' },
45   - { data: 'email' },
46   - { data: 'username' }
47   - ]
48   - });
49   -});
resources/views/backend/beprog/detail.blade.php
1   -@extends('backend.home.index')
2   -@push('title', 'Detail '. $halaman->nama . ' '. $aksesgrup->nama)
3   -@push('header', 'Detail '. $halaman->nama . ' '.$aksesgrup->nama)
4   -@push('tombol')
5   -<div class="btn-group pull-right">
6   - <a href="{{ url('aksesgrup') }}" class="btn btn-sm btn-danger">
7   - <i class="fa fa-arrow-left"></i> Kembali
8   - </a>
9   -</div>
10   -@endpush
11   -@section('content')
12   -<div class="panel-container show">
13   - <div class="panel-content">
14   - <table id="datatable" class="table table-bordered table-hover table-striped w-100">
15   - <thead class="bg-primary-600">
16   - <tr>
17   - <th>Nama</th>
18   - <th>Email</th>
19   - <th>Username</th>
20   - </tr>
21   - </thead>
22   - </table>
23   - </div>
24   -</div>
25   -@endsection
26   -@push('js')
27   -@include('backend.home.datatable-js')
28   -<script type="text/javascript" src="{{ URL::asset('ojisatriani/'. $halaman->kode .'/jquery.js') }}"></script>
29   -<script type="text/javascript" src="{{ URL::asset('ojisatriani/'. $halaman->kode .'/'.$aksesgrup->id.'/datatables_detail.js') }}"></script>
30   -@endpush
31   -@push('css')
32   -@include('backend.home.datatable-css')
33   -@endpush
resources/views/backend/beprog/hapus.blade.php
1   -{!! Form::open(array('id' => 'frmOji', 'route' => ['eoffice.destroy', $eoffice->id], 'class' => 'form account-form', 'method' => 'DELETE')) !!}
2   -<div class="row">
3   - <div class="col-md-12">
4   -
5   - <p>
6   - <label class="control-label">Hapus data <strong>{{ $eoffice->judul }}?</strong></label>
7   - </p>
8   - </div>
9   - {!! Form::hidden('table-list', 'datatable', array('id' => 'table-list')) !!}
10   -</div>
11   -<div class="row">
12   - <div class="col-md-12">
13   - <span class="pesan"></span>
14   - <div id="output"></div>
15   - <div class="progress">
16   - <div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">
17   - <div id="statustxt">0%</div>
18   - </div>
19   - </div>
20   - </div>
21   -</div>
22   -{!! Form::close() !!}
23   -<script src="{{ URL::asset('resources/vendor/jquery/jquery.form.js') }}"></script>
24   -<script src="{{ URL::asset('ojisatriani/home/ajax_progress.js') }}"></script>
resources/views/backend/beprog/index.blade.php
1   -@extends('backend.home.index')
2   -@push('title', $halaman->nama)
3   -@push('header', $halaman->nama)
4   -@push('tombol')
5   -<a href="#tambah" class="btn btn-sm btn-primary tambah">
6   - Tambah <i class="fa fa-plus-circle"></i>
7   -</a>
8   -@endpush
9   -@section('content')
10   -<div class="panel-container show container-fluid col">
11   -
12   - <div class="panel-content">
13   - <table id="datatable" class="table table-bordered table-hover table-striped w-100">
14   - <thead class="bg-primary-600">
15   - <tr>
16   -
17   -
18   - <th class="text-center wid-10" tabindex="0" rowspan="1" colspan="1">Judul</th>
19   - <th class="text-center wid-10" tabindex="0" rowspan="1" colspan="1">Konten</th>
20   -
21   - <th class="text-center wid-10" tabindex="0" rowspan="1" colspan="1">Aksi</th>
22   - </tr>
23   - </thead>
24   - </table>
25   -
26   - </div>
27   -
28   -</div>
29   -@endsection
30   -@push('js')
31   -@include('backend.home.datatable-js')
32   -<script type="text/javascript" src="{{ URL::asset('ojisatriani/'. $halaman->kode .'/jquery.js') }}"></script>
33   -<script type="text/javascript" src="{{ URL::asset('ojisatriani/'. $halaman->kode .'/datatables.js') }}"></script>
34   -
35   -
36   -@endpush
37   -@push('css')
38   -@include('backend.home.datatable-css')
39   -@endpush
resources/views/backend/beprog/jquery.blade.php
1   -$(document).ready(function(){
2   - $('.tambah').click(function(){
3   - ojisatrianiLoadingFadeIn();
4   - $.loadmodal({
5   - url: "{{ url($url_admin.'/beprog/create') }}",
6   - id: 'responsive',
7   - dlgClass: 'fade',
8   - bgClass: 'primary',
9   - title: 'Tambah',
10   - width: 'whatever',
11   - modal: {
12   - keyboard: true,
13   - // any other options from the regular $().modal call (see Bootstrap docs)
14   - },
15   - ajax: {
16   - dataType: 'html',
17   - method: 'GET',
18   - success: function(data, status, xhr){
19   - ojisatrianiLoadingFadeOut();
20   - },
21   -
22   - },
23   - });
24   - });
25   -
26   - $(document).on("click",".ubah",function() {
27   - ojisatrianiLoadingFadeIn();
28   - var id = $(this).attr('beprog-id');
29   - $.loadmodal({
30   - url: "{{ url($url_admin.'/beprog') }}/"+ id +"/edit",
31   - id: 'responsive',
32   - dlgClass: 'fade',
33   - bgClass: 'warning',
34   - title: 'Ubah',
35   - width: 'whatever',
36   - modal: {
37   - keyboard: true,
38   - // any other options from the regular $().modal call (see Bootstrap docs)
39   - },
40   - ajax: {
41   - dataType: 'html',
42   - method: 'GET',
43   - success: function(data, status, xhr){
44   - ojisatrianiLoadingFadeOut();
45   - },
46   - },
47   - });
48   - });
49   -
50   - $(document).on("click",".hapus",function() {
51   - ojisatrianiLoadingFadeIn();
52   - var id = $(this).attr('beprog-id');
53   - $.loadmodal({
54   - url: "{{ url($url_admin.'/beprog') }}/hapus/"+ id,
55   - id: 'responsive',
56   - dlgClass: 'fade',
57   - bgClass: 'danger',
58   - title: 'Hapus',
59   - width: 'whatever',
60   - modal: {
61   - keyboard: true,
62   - // any other options from the regular $().modal call (see Bootstrap docs)
63   - //$('#uraian').val(id),
64   - },
65   - ajax: {
66   - dataType: 'html',
67   - method: 'GET',
68   - success: function(data, status, xhr){
69   - ojisatrianiLoadingFadeOut();
70   - },
71   - },
72   - });
73   - });
74   -
75   -});
resources/views/backend/beprog/tambah.blade.php
1   -{!! Form::open(array('id' => 'frmOji', 'route' => ['eoffice.store'], 'class' => 'form account-form', 'method' => 'post' )) !!}
2   -<div class="row">
3   - <div class="col-md-12">
4   - <!-- <p>
5   - {!! Form::label('Id', 'ID', array('class' => 'col-md-12 control-label')) !!}
6   - {!! Form::text('id', NULL, array('id' => 'id', 'class' => 'form-control', 'placeholder' => 'Identitas')) !!}
7   - </p> -->
8   -
9   - <!-- <p>
10   - {!! Form::label('Kategori Artikel', 'Kategori Artikel', array('class' => 'col-md-6 control-label')) !!}
11   - {!! Form::select('katartikel_id', array( ), NULL, array('id' => 'katartikel_id', 'class' => 'form-control')) !!}
12   -</p>
13   - -->
14   -
15   - <p>
16   - {!! Form::label('Judul', 'Judul', array('class' => 'col-md-12 control-label')) !!}
17   - {!! Form::text('judul', NULL, array('id' => 'judul', 'class' => 'form-control', 'placeholder' => 'Judul Artikel')) !!}
18   - </p>
19   - <p>
20   - {!! Form::label('Konten', 'Konten', array('class' => 'col-md-12 control-label')) !!}
21   - {!! Form::textarea('konten', NULL, array('id' => 'konten', 'class' => 'form-control', 'rows' => '30' , 'placeholder' => 'Konten')) !!}
22   - </p>
23   - <script>
24   - $(document).ready(function() {
25   - $('#konten').summernote();
26   - });
27   - var konten = $('#konten').summernote()
28   - </script>
29   - <!-- <p>
30   - {!! Form::label('User', 'User', array('class' => 'col-md-12 control-label')) !!}
31   - {!! Form::text('user_id', NULL, array('id' => 'user_id', 'class' => 'form-control', 'placeholder' => 'Kategori Dokumen')) !!}
32   - </p> -->
33   - {!! Form::hidden('table-list', 'datatable', array('id' => 'table-list')) !!}
34   -</div>
35   -<div class="row">
36   - <div class="col-md-12">
37   - <span class="pesan"></span>
38   - <div id="output"></div>
39   - <div class="progress">
40   - <div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">
41   - <div id="statustxt">0%</div>
42   - </div>
43   - </div>
44   - </div>
45   -</div>
46   -{!! Form::close() !!}
47   -<script src="{{ URL::asset('resources/vendor/jquery/jquery.form.js') }}"></script>
48   -<script src="{{ URL::asset('ojisatriani/home/ajax_progress.js') }}"></script>
49   -<!-- include summernote css/js -->
50   -<link href="{{ URL::asset('resources/summernote/summernote.min.css') }}" rel="stylesheet">
51   -<script src="{{ URL::asset('resources/summernote/summernote.js') }}"></script>
52   - <!-- <link href="{{ asset('ckeditor/plugins/codesnippet/lib/highlight/styles/default.css') }}" rel="stylesheet"> -->
resources/views/backend/beprog/ubah.blade.php
1   -{!! Form::open(array('id' => 'frmOji', 'route' => ['eoffice.update', $eoffice->id], 'class' => 'form account-form', 'method' => 'PUT', 'files' => TRUE )) !!}
2   -<div class="row">
3   - <div class="col-md-12">
4   -
5   - <p>
6   - {!! Form::label('Kategori', 'Kategori', array('class' => 'col-md-6 control-label')) !!}
7   - {!! Form::text('katartikel_id', $eoffice->katartikel_id, array('id' => 'katartikel_id', 'class' => 'form-control')) !!}
8   - </p>
9   - <p>
10   - {!! Form::label('Judul', 'Judul', array('class' => 'col-md-6 control-label')) !!}
11   - {!! Form::text('judul', $eoffice->judul, array('id' => 'judul', 'class' => 'form-control', 'placeholder' => 'Judul')) !!}
12   - </p>
13   - <p>
14   - {!! Form::label('Konten', 'Konten', array('class' => 'col-md-6 control-label')) !!}
15   - {!! Form::textarea('konten', $eoffice->konten, array('id' => 'konten', 'class' => 'form-control', 'placeholder' => 'Konten')) !!}
16   - </p>
17   - <script>
18   - $(document).ready(function() {
19   - $('#konten').summernote();
20   - });
21   - var konten = $('#konten').summernote()
22   - </script>
23   -
24   - </div>
25   - {!! Form::hidden('table-list', 'datatable', array('id' => 'table-list')) !!}
26   -</div>
27   -<div class="row">
28   - <div class="col-md-12">
29   - <span class="pesan"></span>
30   - <div id="output"></div>
31   - <div class="progress">
32   - <div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">
33   - <div id="statustxt">0%</div>
34   - </div>
35   - </div>
36   - </div>
37   -</div>
38   -{!! Form::close() !!}
39   -<script src="{{ URL::asset('resources/vendor/jquery/jquery.form.js') }}"></script>
40   -<script src="{{ URL::asset('ojisatriani/home/ajax_progress.js') }}"></script>
41   -<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/js/bootstrap-datepicker.min.js"> </script>
42   -<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/css/bootstrap-datepicker.min.css" />
43   -<script>
44   - $(document).ready(function(){
45   - var date_input=$('input[name="tanggal_sk"]'); //our date input has the name "date"
46   - var container=$('.bootstrap-iso form').length>0 ? $('.bootstrap-iso form').parent() : "body";
47   - date_input.datepicker({
48   - format: 'mm/dd/yyyy',
49   - container: container,
50   - todayHighlight: true,
51   - autoclose: true,
52   - })
53   - })
54   -</script>
55   -<!-- include summernote css/js -->
56   -<link href="{{ URL::asset('resources/summernote/summernote.min.css') }}" rel="stylesheet">
57   -<script src="{{ URL::asset('resources/summernote/summernote.js') }}"></script>
58   -<link href="{{ asset('ckeditor/plugins/codesnippet/lib/highlight/styles/default.css') }}" rel="stylesheet">
resources/views/backend/eoffice/ubah.blade.php
... ... @@ -2,10 +2,7 @@
2 2 <div class="row">
3 3 <div class="col-md-12">
4 4  
5   - <p>
6   - {!! Form::label('Kategori', 'Kategori', array('class' => 'col-md-6 control-label')) !!}
7   - {!! Form::text('katartikel_id', $eoffice->katartikel_id, array('id' => 'katartikel_id', 'class' => 'form-control')) !!}
8   - </p>
  5 +
9 6 <p>
10 7 {!! Form::label('Judul', 'Judul', array('class' => 'col-md-6 control-label')) !!}
11 8 {!! Form::text('judul', $eoffice->judul, array('id' => 'judul', 'class' => 'form-control', 'placeholder' => 'Judul')) !!}
1 1 <?php
2 2  
  3 +use Illuminate\Support\Facades\Route;
  4 +
3 5 /*
4 6 |--------------------------------------------------------------------------
5 7 | Backend Routes
... ... @@ -166,10 +168,10 @@
166 168 Route::get('dataon', 'pencarianController@dataOnly');
167 169  
168 170 // Artikel Backend Programming
169   - Route::get('beprog/data', 'backendpController@data')->name('beprog.data');
170   - Route::get('beprog/hapus/{id}', 'backendpController@hapus')->name('beprog.hapus');
171   - Route::get('beprog/create/{id}', 'backendpController@create')->name('beprog.create_id');
172   - Route::resource('beprog', 'backendpController');
  171 + Route::get('backendp/data', 'backendpController@data')->name('backendp.data');
  172 + Route::get('backendp/hapus/{id}', 'backendpController@hapus')->name('backendp.hapus');
  173 + Route::get('backendp/create/{id}', 'backendpController@create')->name('backendp.create_id');
  174 + Route::resource('backendp', 'backendpController');
173 175  
174 176 // Laravel Artikel
175 177 Route::get('laravel/data', 'laravelController@data')->name('laravel.data');