PHP Classes

File: src/stubs/cms/core/feedback/resources/views/admin/index.blade.php

Recommend this page to a friend!
  Classes of Shun Ram   Laravel Admin   src/stubs/cms/core/feedback/resources/views/admin/index.blade.php   Download  
File: src/stubs/cms/core/feedback/resources/views/admin/index.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Laravel Admin
Manage users and the site content they publish
Author: By
Last change:
Date: 1 year ago
Size: 3,043 bytes
 

Contents

Class file image Download
@extends('layout::admin.master')

@section('title','users')
@section('style')
    <!-- Datatables -->
    @include('layout::admin.head.list_head')
    <style>
        .table-div table {
            width: 100% !important;
        }
    </style>
@endsection
@section('body')
    <div class="table-div">
        <a class="btn btn-default btn-sm hor-align pull-right btn-right-spacing" href="{{route('feedback.create')}}" ><i class='glyphicon glyphicon-plus-sign'></i>&nbsp;&nbsp;New</a>

        <table id="datatable-buttons1" class="table table-striped table-responsive table-bordered data-Table" cellspacing="0">
        <thead>
        <tr>
            <th class="noExport">{!! Form::checkbox('select_all', 'checked_all', false, array('id'=>'select-all-item')) !!}{!! Html::decode(Form::label('select-all-item','<span></span>')) !!}</th>
            <th>No</th>
            <th>User Name</th>
            <th>Email</th>
            <th>Message</th>
            <th class="noExport">Action</th>
        </tr>
        </thead>
        <tbody>

        </tbody>
    </table>
    </div>
   
@endsection
@section('script')
<script>
    $('document').ready(function(){

        var element = $("#datatable-buttons1");
        var url = '{{route('get_feedback_data_from_admin')}}';
        var column = [
            { data: 'check', name: 'check', searchable: false, sortable: false , width: '9%' , render : function(data, type, row, meta)
            {
                return '<input id="'+data+'" class="check_class" type="checkbox" value='+row["id"]+' name="selected_feedbacks[]"><label for="'+data+'"><span></span></label>';
            }
            },
            { data: 'rownum',defaultContent : '', name: 'rownum' , searchable: false, sortable: false , className: 'textcenter' },
            { data: 'username', name: 'username', width: '20%' },
            { data: 'email', name: 'mail', width: '10%', className: 'textcenter' },
            { data: 'message', name: 'message' , className: 'textcenter' },
            { data: 'action', name: 'id', searchable: false, sortable: false, className: 'textcenter'}
        ];
        var csrf = '{{ csrf_token() }}';

        var options = {
            //order : [ [ 6, "desc" ] ],
            //lengthMenu: [[100, 250, 500], [100, 250, 500]]
            button : [
                {
                    name : "Publish" ,
                    url : "{{route('feedback_action_from_admin',1)}}"
                },
                {
                    name : "Un Publish",
                    url : "{{route('feedback_action_from_admin',0)}}"
                },
                {
                    name : "Trash",
                    url : "{{route('feedback_action_from_admin',-1)}}"
                },
                {
                    name : "Delete",
                    url : "{{route('feedback.destroy',1)}}",
                    method : "DELETE"
                }
            ],

        }


        dataTable(element,url,column,csrf,options);

    });
    </script>

@endsection