Path : /var/www/html/jewelry-pos/storage/framework/views/ |
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
Current File : /var/www/html/jewelry-pos/storage/framework/views/c2578414fb4727a3dc21b031ff894b97.php |
<?php $__env->startSection('content'); ?> <div class="" style="display: flex;justify-content: center;width: 100%;height: 100%;background-color: #eee;"> <div class="" style="height: 100%;width: 100%;"> <div class="text-center bg-white print" id="print" style="width: 100%;height: 100%;margin: auto;color: rebeccapurple"> <div class="row" style="display: flex;justify-content: center;align-items: center;color: rebeccapurple;"> <div class="col-sm-6 col-xl-6 p-2" style="border: 1px solid rebeccapurple;display: flex;justify-content: center;align-items: center;"> <h1 style="font-weight: bold;font-size: 24px"><?php echo e($settings_->shop_name); ?></h1> </div> </div> <div class="mt-4 ml-2 mr-2" style="display: flex;justify-content: center;align-items: center;color: rebeccapurple"> <div class="row" style="width: 98%;"> <div class="col-sm-6 col-xl-8 text-left" style="font-size: 14px;"> <?php echo e(__('message.cashier')); ?> : <b><?php echo e($cashie); ?></b> </div> <div class="col-sm-6 col-xl-4 text-right" style="font-size: 14px"> <?php echo e(__('message.invoice date')); ?> : <b><?php echo e(now()->toDateTimeString()); ?></b> </div> </div> </div> <div class="mt-4 ml-2 mr-2" style="display: flex;justify-content: center;align-items: center"> <div class="row" style="width: 98%;"> <div class="col-sm-8 col-xl-8 text-left" style="font-size: 14px"> <?php echo e(__('message.location')); ?> : <b><?php echo e($settings_->address); ?></b> </div> <div class="col-sm-4 col-xl-4 text-right" style="font-size: 14px"> <?php echo e(__('message.phone number')); ?> : <b><?php echo e($settings_->phone); ?></b> </div> </div> </div> <div class="mt-4 ml-2 mr-2" style="display: flex;justify-content: center;align-items: center"> <div class="row" style="width: 98%;"> <div class="col-sm-8 col-xl-8 text-left" style="font-size: 14px"> <span class="mr-4"> <?php echo e(__('message.start date')); ?> <?php echo e(date('d/m/y' , strtotime($start_date))); ?> </span> <span class="ml-4"> <?php echo e(__('message.to date')); ?> <?php echo e(date('d/m/y' , strtotime($end_date))); ?> </span> </div> </div> </div> <div class="row mt-4" style="display: flex;justify-content: center;align-items: center;color: rebeccapurple;"> <div class="col-sm-6 col-xl-12 p-2 text-center" style="display: flex;justify-content: center;align-items: center;"> <h1 style="font-weight: bold;border-bottom: 2px solid rebeccapurple;font-size: 18px" class=""><?php echo e(__('message.summary report')); ?></h1> </div> </div> <div class="row ml-2 mt-2" style="width: 98%;display: flex;justify-content: center;align-items: center"> <table id="example" class="table table-bordered table-hover table-striped w-100"> <thead class="bg-fusion-50 text-center"> <tr> <th>#</th> <th><?php echo e(__('message.date')); ?></th> <th class="text-center"><?php echo e(__('message.total sale')); ?></th> <th class="text-center"><?php echo e(__('message.amount sale')); ?></th> </tr> </thead> <tbody class="text-center"> <?php $period = Carbon\CarbonPeriod::create($start_date,'1 day', $end_date); $period = array_reverse($period->toArray()); $count = 1; $total_usd = 0; $total_khr=0; $total_thb=0; ?> <?php $__currentLoopData = $period; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $date): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $sales = \App\Models\Sale::whereBetween('created_at' , [$date , $date->format('Y-m-d') . ' 23:59:59']); $currencies = \App\Models\Currency::all(); $usd = $currencies[0]; $khr = $currencies[2]; $thb = $currencies[1]; ?> <tr> <td><?php echo e($index+1); ?></td> <td> <?php echo e($date->format('Y-m-d')); ?> </td> <td> <?php $help = Clone ($sales); $totalSale = $help->count(); ?> <div class=""> <?php echo e($totalSale); ?> </div> </td> <td class="credit"> <div class="row"> <?php $usd_amount = $help->sum('usd_amount'); $total_usd= $total_usd + $usd_amount; $khr_amount = $help->sum('khr_amount'); $total_khr = $total_khr + $khr_amount; $thb_amount = $help->sum('thb_amount'); $total_thb = $total_thb + $thb_amount; ?> <div class="col-sm-4 col-xl-4"> <?php echo e($usd_amount); ?> <?php echo e($usd->currency_symbol); ?> </div> <div class="col-sm-4 col-xl-4"> <?php echo e($khr_amount); ?> <?php echo e($khr->currency_symbol); ?> </div> <div class="col-sm-4 col-xl-4"> <?php echo e($thb_amount); ?> <?php echo e($thb->currency_symbol); ?> </div> </div> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <tr style="font-size: 15px;"> <td colspan="3" class="credit"><?php echo e(__('message.total')); ?> :</td> <td class="p-2 credit"> <div class="row"> <div class="col-sm-4 col-xl-4"> <?php echo e($total_usd); ?> <?php echo e($usd->name); ?> </div> <div class="col-sm-4 col-xl-4"> <?php echo e($total_khr); ?> <?php echo e($khr->name); ?> </div> <div class="col-sm-4 col-xl-4"> <?php echo e($total_thb); ?> <?php echo e($thb->name); ?> </div> </div> </td> </tr> </tbody> </table> </div> <div style="width: 100%;display: flex;justify-content: space-between;align-items: center"> <div class="text-center mt-4 ml-4 notPrint" style="width: 5%;; height: 50%;"> <a href="<?php echo e(route('sales.index')); ?>" id="back" name="back" class="btn-sm btn-danger mt-6 fw-bold notPrint" style="cursor: pointer;color: white;">Back</a> </div> <div class="text-center mt-4 mr-4 notPrint" style="width: 5%;; height: 50%;"> <a id="print" name="print" class="btn-sm btn-info mt-6 fw-bold notPrint" onclick="return print()" style="cursor: pointer;color: white;">Print</a> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('scripts'); ?> <script> window.print(); setTimeout("closePrintView()", 1000); function closePrintView(){ window.location.href = "<?php echo e(route('report.index')); ?>?start_date=<?php echo e($start_date); ?>&end_date=<?php echo e($end_date); ?>"; } </script> <script> $(document).ready(function() { $("#js-nav-menu").removeClass('active'); $("#js-nav-menu li ul li").removeClass('active'); // $("#menu_setup_list").addClass('active open'); // $("#collapse_setup").addClass('collapse in') // $("#menu_product").addClass('active') $("#menu_sales").addClass('active') }) </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.admin-main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/jewelry-pos/resources/views/reports/summary-list.blade.php ENDPATH**/ ?>