<?php $__env->startSection('content'); ?>
<?php
use App\Models\Admin;
use Spatie\Permission\Models\Role;
?>
  <title><?php echo e(trans('admin.DataBases')); ?></title>

 <main id="js-page-content" role="main" class="page-content">
                    <ol class="breadcrumb page-breadcrumb">
                        <li class="breadcrumb-item active"><?php echo e(trans('admin.DataBases')); ?></li>
                        <li class="position-absolute pos-top pos-right d-none d-sm-block"><span
                                class="js-get-date"></span></li>
                    </ol>
                    <div class="subheader">

                    </div>
                    <div class="row">
                        <div class="col-xl-12">
                            <div id="panel-1" class="panel">
                                <div class="panel-hdr">
                                    <h2>
                                        <span class="fw-300"><i> <?php echo e(trans('admin.DataBases')); ?></i></span>
                                    </h2>

                                    <div class="panel-toolbar">

                            <button class="btn btn-primary btn-sm mx-3" data-toggle="dropdown">Table Style</button>
                <?php echo $__env->make('admin.layouts.toolbar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                    </div>
                                </div>
                                <div class="panel-container show">
                                      <span id="ex"> <?php echo $__env->make('admin.layouts.messages', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?></span>
                                    <div class="panel-content">
                                        <!-- datatable start -->
                                        <div id="mobile-overflow">
                                        <table id="dt-basic-example"
                                            class="table table-bordered table-hover table-striped mobile-width">
                                            <thead class="bg-highlight">
                                                <tr>
                                                    <th><?php echo e(trans('admin.Version')); ?></th>
                                                    <th><?php echo e(trans('admin.Delete')); ?></th>
                                                </tr>
                                            </thead>
                                            <tbody>

                                    <?php
                             $Xs = File::files(public_path());

                                 ?>

                               <?php $__currentLoopData = $Xs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $x): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                <?php


$needle = "public/";
$newString = strstr($x, $needle);
    $lastWord=str_replace('public/', '', $newString);

                        $lasrString = strstr($lastWord, '.');

                            ?>

                            <?php if($lasrString == '.sql'): ?>
                                <tr>
                                <td>
                          <a href="<?php echo e(asset($lastWord)); ?>" download class="btn btn-primary">
                        <i class="fal fa-download"></i>




                              <?php echo e($lastWord); ?>



                               </a>
                                </td>
                                <td>
                        <form action="<?php echo e(url('DeleteBackup')); ?>">
                        <input type="hidden" name="X" value="<?php echo e($x); ?>">
                                     <button type="submit"  class="btn btn-danger">
                                <i class="fal fa-trash"></i>
                                    </button>
                                    </form>

                                </td>

                                </tr>
                                            <?php endif; ?>
                               <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


                                            </tbody>
                                        </table>
                                        </div>
                                        <!-- datatable end -->
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>




                </main>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('admin.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/orientlimraerp/public_html/resources/views/admin/Settings/Backup.blade.php ENDPATH**/ ?>