-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Penyesuaian modul event menggunakan datatable (#974)
- Loading branch information
1 parent
c9accae
commit 833cb19
Showing
9 changed files
with
183 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
@extends('layouts.dashboard_template') | ||
|
||
@section('content') | ||
<section class="content-header"> | ||
<h1> | ||
{{ $page_title ?? 'Page Title' }} | ||
<small>{{ $page_description ?? '' }}</small> | ||
</h1> | ||
<ol class="breadcrumb"> | ||
<li><a href="{{ route('dashboard') }}"><i class="fa fa-dashboard"></i> Dashboard</a></li> | ||
<li class="active">{!! $page_title !!}</li> | ||
</ol> | ||
</section> | ||
|
||
<section class="content container-fluid"> | ||
@include('partials.flash_message') | ||
|
||
<div class="box box-primary"> | ||
<div class="box-header with-border"> | ||
<a href="{{ route('informasi.event.create') }}" | ||
class="btn btn-success btn-sm btn-social {{ auth()->guest() ? 'hidden' : '' }}" title="Tambah Data"><i | ||
class="fa fa-plus"></i> Tambah</a> | ||
</div> | ||
<!-- /.box-header --> | ||
<div class="box-body"> | ||
<div class="table-responsive"> | ||
<table class="table table-striped table-bordered" id="event-table"> | ||
<thead> | ||
<tr> | ||
<th class="text-center" style="max-width: 150px;">Aksi</th> | ||
<th>Kegiatan</th> | ||
<th>Tanggal Mulai</th> | ||
<th>Tanggal Selesai</th> | ||
<th>Dihadiri Oleh</th> | ||
<th>Status</th> | ||
</tr> | ||
</thead> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
@endsection | ||
|
||
@include('partials.asset_datatables') | ||
|
||
@push('scripts') | ||
<script type="text/javascript"> | ||
$(document).ready(function() { | ||
var data = $('#event-table').DataTable({ | ||
processing: true, | ||
serverSide: false, | ||
ajax: "{!! route('informasi.event.getdata') !!}", | ||
columns: [{ | ||
data: 'aksi', | ||
name: 'aksi', | ||
class: 'text-nowrap', | ||
searchable: false, | ||
orderable: false | ||
}, | ||
{ | ||
data: 'event_name', | ||
name: 'event_name' | ||
}, | ||
{ | ||
data: 'start', | ||
name: 'start' | ||
}, | ||
{ | ||
data: 'end', | ||
name: 'end' | ||
}, | ||
{ | ||
data: 'attendants', | ||
name: 'attendants' | ||
}, | ||
{ | ||
data: 'status', | ||
name: 'status' | ||
}, | ||
], | ||
order: [ | ||
[2, 'asc'] | ||
] | ||
}); | ||
}); | ||
</script> | ||
@include('forms.datatable-vertical') | ||
@include('forms.delete-modal') | ||
@endpush |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.