Viewing file: index.blade.php (5.16 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
@extends('layouts.customer')
@section('title') {{trans('customer.ticket.ticket')}} @endsection
@section('extra-css') <link rel="stylesheet" href="{{asset('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css')}}"> <link rel="stylesheet" href="{{asset('plugins/datatables-responsive/css/responsive.bootstrap4.min.css')}}">
<style> #basicModal{ z-index: 999999999; } </style> @endsection
@section('content') <!-- Content Header (Page header) --> <div class="content-header custom-content-header"> <h5>{{trans('customer.ticket.ticket')}}</h5> <p class="m-0 section-heading-text"> <i class="fas fa-question-circle mr-1 op-07"></i> <span class="panel-name op-07"> {{trans('customer.customer_panel')}} </span> <i class="fa fa-angle-double-right ml-1 mr-1" aria-hidden="true"></i> <span class="header-active">{{trans('customer.ticket.ticket')}}</span> </p> </div> <!-- /.content-header -->
<!-- Main content --> <section class="content"> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-header"> <h2 class="card-title">{{trans('customer.ticket.ticket')}}</h2> <div class="float-right"> <button type="button" class="btn btn-primary btn-sm mb-2" data-toggle="modal" data-target="#basicModal">{{trans('customer.ticket.new_ticket')}} </button> </div> </div> <!-- /.card-header --> <div class="card-body"> <table id="plans" class="table table-striped table-bordered dt-responsive nowrap"> <thead> <tr> <th>{{trans('customer.ticket.subject')}}</th> <th>{{trans('customer.ticket.description')}}</th> <th>{{trans('customer.ticket.status')}}</th> <th>{{trans('customer.ticket.action')}}</th> </tr> </thead>
</table> </div> <!-- /.card-body --> </div> <!-- /.card --> </div> <!-- /.col --> </div> <!-- /.row --> </section> <div class="modal fade show" id="basicModal" aria-modal="true" style="padding-right: 17px; display: none;"> <div class="modal-dialog" role="document"> <form action="{{route('customer.ticket.store')}}" method="post" enctype="multipart/form-data"> @csrf <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title">Create New Ticket</h5> <button type="button" class="close" data-dismiss="modal"><span>×</span> </button> </div> <div class="modal-body"> <div class="form-group"> <label for="">Subject</label> <input type="text" class="form-control" name="subject" placeholder="Enter Subject"> </div> <div class="form-group"> <label for="">Upload Document</label> <input type="file" class="form-control p-1" name="document"> </div>
<div class="form-group"> <label for="">Description</label> <textarea name="description" class="form-control" id="" cols="7" rows="7"></textarea> </div>
</div> <div class="modal-footer"> <button type="button" class="btn btn-danger btn-sm light" data-dismiss="modal">Close</button> <button type="submit" class="btn btn-primary btn-sm">Submit</button> </div> </div> </form> </div> </div>
<!-- /.content --> @endsection
@section('extra-scripts') <script src="{{asset('plugins/datatables/jquery.dataTables.min.js')}}"></script> <script src="{{asset('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js')}}"></script> <script src="{{asset('plugins/datatables-responsive/js/dataTables.responsive.min.js')}}"></script> <script src="{{asset('plugins/datatables-responsive/js/responsive.bootstrap4.min.js')}}"></script>
<script> "use strict"; $('#plans').DataTable({ processing: true, serverSide: true, responsive:true, ajax:'{{route('customer.ticket.get.all')}}', columns: [ { "data": "subject" }, { "data": "description" }, { "data": "status" }, { "data": "action" }, ] }); </script> @endsection
|