File: /home/armgroup/libs/storage/framework/views/c7bcb51dd9c272f581362c3ae710fe8429e9e2fc.php
<?php $__env->startSection('title', 'پنل مدیریت | علاقهمندیها'); ?>
<?php $__env->startSection('content'); ?>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-dark">علاقهمندیها</h1>
</div><!-- /.col -->
<div class="col-sm-6">
<ol class="breadcrumb float-sm-left">
<?php echo e(Breadcrumbs::render('favorite')); ?>
</ol>
</div><!-- /.col -->
</div><!-- /.row -->
</div><!-- /.container-fluid -->
</div>
<!-- /.content-header -->
<!-- Main content -->
<section class="content">
<div class="container-fluid bg-white py-3">
<div class="mb-4 row">
<div class="col-lg-3 col-12">
<select id="type" name="type">
<?php $__currentLoopData = \App\Models\Favorite::TYPE; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $type): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($type['table']); ?>" <?php echo e($type['table'] == 'products' ? 'selected' : ''); ?>><?php echo e($type['name']); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</div>
</div>
<div class="table-responsive-sm table-responsive-md">
<?php echo e($dataTable->table()); ?>
</div>
</div><!-- /.container-fluid -->
</section>
<!-- /.content -->
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('footer'); ?>
<?php echo e($dataTable->scripts()); ?>
<script>
$(document).ready(function () {
$('#type').select2();
$('#type').on('change', function (e) {
var type = $('#type').select2("val");
$("#favorites-table").DataTable().destroy();
window.LaravelDataTables = window.LaravelDataTables||{};
window.LaravelDataTables["favorites-table"] = $("#favorites-table").DataTable({
"serverSide":true,
"processing":true,
"ajax":{ "data": { 'type': type } },
"columns":[
{"data":"DT_RowIndex","name":"DT_RowIndex","title":"#","orderable":false,"searchable":false},
{"data":"name","name":"name","title":"عنوان","orderable":true,"searchable":true},
{"data":"number","name":"number","title":"تعداد","orderable":true,"searchable":false}
],
"dom":"Bfrtip",
"order":[[2,"desc"]],
"language":{"url":"<?php echo e(asset('vendor/datatables/Persian.json')); ?>"},
"buttons":[{"extend":"excel"},{"extend":"print"},{"extend":"reset"},{"extend":"reload"}]
});
});
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/armgroup/libs/resources/views/admin/favorites/index.blade.php ENDPATH**/ ?>