

<?php $__env->startSection('content'); ?>

<!-- Content wrapper scroll start -->
<div class="content-wrapper-scroll">
<?php $userSummary = \DB::table('users')->where('id', request('userID'))->first(); ?>

<!-- Content wrapper start -->
<div class="content-wrapper">

<?php if(!empty(request('userID'))): ?>
<!-- Row start -->
<div class="row gutters">
    <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">

        <div class="profile-header">
            <h1><?php echo e(@strtoupper(request('category'))); ?></h1>
            <div class="profile-header-content">
                <div class="profile-header-tiles">
                    <div class="row gutters">
                        <div class="col-xl-4 col-lg-4 col-md-4 col-sm-4 col-12">
                            <div class="profile-tile">
                                <span class="icon">
                                    <i class="icon-server"></i>
                                </span>
                                <h6>Name - <span><?php echo e(@strtoupper($userSummary->name)); ?></span></h6>
                            </div>
                        </div>
                        <div class="col-xl-4 col-lg-4 col-md-4 col-sm-4 col-12">
                            <div class="profile-tile">
                                <span class="icon">
                                    <i class="icon-map-pin"></i>
                                </span>
                                <h6>Current Outlet - <span><?php echo e($userSummary->branch); ?></span></h6>
                            </div>
                        </div>
                        <div class="col-xl-4 col-lg-4 col-md-4 col-sm-4 col-12">
                            <div class="profile-tile">
                                <span class="icon">
                                    <i class="icon-phone1"></i>
                                </span>
                                <h6>Date - <span><?php echo e(request('date')); ?></span></h6>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="profile-avatar-tile">
                    <img src="/img/user1.png" class="img-fluid" alt="User Profile" />
                </div>
            </div>
        </div>

    </div>
</div>
<?php endif; ?>
<!-- Row end -->

<!-- Row start -->
<div class="row gutters">
    <div class="col-xl-4 col-lg-4 col-md-4 col-sm-4 col-12">
        <div class="stats-tile">
            <div class="sale-icon">
                <i class="icon-package"></i>
            </div>
            <div class="sale-details">
                <h2><?php echo number_format($items_category->count(), 2); ?></h2>
                <p>Product Count</p>
                <h5><span class="high"><i class="icon-trending-up"></i> 7.2%</span> since last week</h5>
            </div>
        </div>
    </div>
    <div class="col-xl-4 col-lg-4 col-md-4 col-sm-4 col-12">
        <div class="stats-tile">
            <div class="sale-icon">
                <i class="icon-shopping-bag1"></i>
            </div>
            <div class="sale-details">
                <h2><?php echo number_format($items_category->sum('quantity'), 2); ?></h2>
                <p>Items Quantity</p>
                <h5><span class="high"><i class="icon-trending-up"></i> 7.5%</span> since last week</h5>
            </div>
        </div>
    </div>
    <div class="col-xl-4 col-lg-4 col-md-4 col-sm-4 col-12">
        <div class="stats-tile">
            <div class="sale-icon">
                <i class="icon-briefcase"></i>
            </div>
            <div class="sale-details">
                <h2><?php echo e(empty($app->currency) ? "GHS" : $app->currency); ?><?php echo number_format($items_category->sum('total'), 2); ?></h2>
                <p>Revenue</p>
                <h5><span class="low"><i class="icon-trending-down"></i> 5.7%</span> since last week</h5>
            </div>
        </div>
    </div>							
</div>
<!-- Row end -->

    <!-- Row start -->
    <div class="row gutters">
        <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
        <!-- Card start -->
        <div class="card">
		<div class="card-body">
            
        <div class="table-responsive">
        <table id="copy-print-csv" class="table v-middle">
                <thead>
                    <tr>
                        <th>Products</th>
                        <th>Quantity </th>
                        <th>Unit Price</th>
                        <th>Totals</th>													  
                    </tr>
                </thead>
                <tbody>
                    <?php $__currentLoopData = $items_category; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr>
                        <td>
                            <div class="media-box">
                                <div class="media-box-body">
                                    <a href="#" class="text-truncate"><?php echo e(@strtoupper($item->name)); ?></a>
                                </div>
                            </div>
                        </td>
                        <td>
                        <?php echo e($item->quantity); ?>

                        </td>
                        <td>GH₵<?php echo number_format($item->price, 2); ?></td>
                        <td>
                        GH₵<?php echo number_format($item->total, 2); ?>
                        </td>													  
                    </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    
                    </tbody>
                </table>
            </div>

        </div>
    </div>
    </div>
    </div>
    <!-- Row end -->
</div>


<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/morttsons/public_html/morttsonsposfiles/resources/views/inc/show-items.blade.php ENDPATH**/ ?>