Server : Apache System : Linux 145.162.205.92.host.secureserver.net 5.14.0-611.45.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Apr 1 05:56:53 EDT 2026 x86_64 User : tradze ( 1001) PHP Version : 8.1.34 Disable Function : NONE Directory : /home/tradze/www/dev/storage/framework/views/ |
<?php $__env->startSection('title'); ?>
<?php echo $page_title; ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('css_page'); ?>
<link href="<?php echo e(asset('/themes/admin/assets/global/plugins/datatables/plugins/bootstrap/dataTables.bootstrap.css')); ?>" rel="stylesheet">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<!-- BEGIN PAGE HEADER-->
<div class="page-bar">
<ul class="page-breadcrumb">
<li>
<i class="fa fa-home"></i>
<a href="#">Home</a>
<i class="fa fa-angle-right"></i>
</li>
<li>
<a href="#">Face2Face</a>
<i class="fa fa-angle-right"></i>
</li>
<li>
<a href="#">Price & Duration</a>
</li>
</ul>
</div>
<!-- END PAGE HEADER-->
<!--display messaged-->
<?php echo $__env->make('flash::message', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<!--/ display messaged-->
<div class="row">
<div class="col-md-12">
<div class="portlet">
<div class="portlet-title">
<div class="caption">
Price & Duration
</div>
<div class="actions">
<a href="<?php echo e(route('admin.services.duration.create')); ?>" class="btn blue btn-sm"><i class="fa fa-plus"></i> New Price & Duration</a>
</div>
</div>
<!--filters-->
<?php echo Form::open(array('url' => route('admin.services.duration.search'), 'method' => 'post' ,'id'=>'search')); ?>
<div class="row">
<div class="col-md-12">
<div class="row">
<div class="col-md-12">
<?php echo Form::text('search_category', @($filters['search_order_number'])?:null, ['class'=>'form-control','placeholder'=>'Search Category']); ?>
</div>
</div>
</div>
</div>
<div class="row margin-top-5"></div>
<!-- <div class="row" style="margin-top:5px;">
<div class="col-md-6">
<button class="btn blue-madison btn-sm col-md-12" name="search" value="search"><i class="icon-magnifier"></i> <?php echo e(strtoupper(trans('general.action_search'))); ?></button>
</div>
<div class="col-md-6">
<button class="btn btn-sm col-md-12" name="reset" value="reset"><i class="fa fa-times"></i> <?php echo e(strtoupper(trans('general.action_reset'))); ?></button>
</div>
</div> -->
<?php echo Form::close(); ?>
<hr/>
<!--end filters-->
<div class="portlet-body">
<div class="container-fluid">
<div class="row">
<table class="table table-striped table-bordered table-hover" id="table">
<thead>
<tr class="heading">
<th width="20%">Category</th>
<th width="20%">Sub Category</th>
<th width="30%"><?php echo e(trans('services::duration.col_name')); ?></th>
<th width="10%"><?php echo e(trans('services::duration.col_duration')); ?></th>
<th width="10%"><?php echo e(trans('services::duration.col_price')); ?></th>
<th width="10%"><?php echo e(trans('services::duration.col_commision_co')); ?></th>
<th width="10%"><?php echo e(trans('services::duration.col_commision_th')); ?></th>
<th width="10%"><?php echo e(trans('services::duration.col_actions')); ?></th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts_page_plugins'); ?>
<script src="<?php echo e(asset('/themes/admin/assets/global/scripts/datatable.js')); ?>" type="text/javascript"></script>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts_page2'); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts_custom'); ?>
Demo.init();
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts_custom2'); ?>
<script>
$(document).ready(function()
{
var CSRF_TOKEN = $('input[name="_token"]').val();
$(".select2").select2();
$(".select2filter").select2({
placeholder: 'Tag-uri'
});
$('.date-picker').datepicker({
orientation: "left",
autoclose: true,
format: 'yyyy-mm-dd',
});
// var grid = new Datatable();
// grid.init({
// src: $("#table"),
// onSuccess: function (grid) {
// // $('input[name=search_category]').on('keyup', function() {
// // console.log("hre 1", this.value);
// // grid.search(this.value).draw();
// // });
// },
// onError: function (grid) {
// // execute some code on network or other general error
// },
// onDataLoad: function(grid) {
// // execute some code on ajax data load
// },
// loadingMessage: 'Loading...',
// dataTable: { // here you can define a typical datatable settings from http://datatables.net/usage/options
// // Uncomment below line("dom" parameter) to fix the dropdown overflow issue in the datatable cells. The default datatable layout
// // setup uses scrollable div(table-scrollable) with overflow:auto to enable vertical scroll(see: assets/global/scripts/datatable.js).
// // So when dropdowns used the scrollable div should be removed.
// //"dom": "<'row'<'col-md-8 col-sm-12'pli><'col-md-4 col-sm-12'<'table-group-actions pull-right'>>r>t<'row'<'col-md-8 col-sm-12'pli><'col-md-4 col-sm-12'>>",
// sDom: '"top"i',
// processing: true, // Display a processing indicator while the data is loading
// serverSide: true, // Enable server-side processing
// "bStateSave": true, // save datatable state(pagination, sort, etc) in cookie.
// columns: [
// { data: 'parent_category', name: 'parent_category' },
// { data: 'category', name: 'category' },
// { data: 'name', name: 'name' },
// { data: 'duration', name: 'duration' },
// { data: 'price', name: 'price' },
// { data: 'commision_co', name: 'commision_co' },
// { data: 'commision_th', name: 'commision_th' },
// { data: 'actions', name: 'actions' },
// ],
// searching: true, // Enable searching
// search: {
// caseInsensitive: true // Enable case-insensitive searching
// },
// "lengthMenu": [
// [10, 20, 50],
// [10, 20, 50] // change per page values here
// ],
// "pageLength": 20, // default record count per page
// "ajax": {
// "url": '<?php echo route('admin.services.duration.data'); ?>', // ajax source
// "beforeSend": function(){
// $("#table ").find('tbody').html("<tr><td align='center' colspan='10' class='bold'><i class='fa fa-spinner fa-spin'></i> <?php echo e(trans('general.action_is_loading')); ?></td></tr>");
// },
// },
// "bSort": false,
// }
// });
// $('input[name=search_category]').on('keyup', function() {
// console.log("hre", this.value);
// grid.search(this.value).draw();
// });
});
</script>
<script>
$(document).ready(function() {
var dataTable = $('#table').DataTable({
processing: true,
serverSide: false,
"pageLength": 25,
searching: true, // Enable searching
ajax: {
"url": '<?php echo route('admin.services.duration.data'); ?>', // ajax source
"beforeSend": function(){
$("#table ").find('tbody').html("<tr><td align='center' colspan='10' class='bold'><i class='fa fa-spinner fa-spin'></i> <?php echo e(trans('general.action_is_loading')); ?></td></tr>");
},
},
columns: [
{ data: 'parent_category', name: 'parent_category' },
{ data: 'category', name: 'category' },
{ data: 'name', name: 'name' },
{ data: 'duration', name: 'duration' },
{ data: 'price', name: 'price' },
{ data: 'commision_co', name: 'commision_co' },
{ data: 'commision_th', name: 'commision_th' },
{ data: 'actions', name: 'actions' },
],
});
$('input[name=search_category]').on('keyup', function() {
dataTable.search(this.value).draw();
});
$("#table_filter, #table_length").hide();
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>