| Server IP : 139.59.63.204 / Your IP : 216.73.217.62 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ubuntu-s-1vcpu-1gb-blr1-01 6.8.0-110-generic #110-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 19 15:09:20 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/billing/storage/framework/views/ |
Upload File : |
<?php $__env->startSection('content'); ?>
<?php echo $__env->make('layouts.sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<!--begin::Wrapper-->
<div class="wrapper d-flex flex-column flex-row-fluid" id="kt_wrapper">
<!--begin::Header-->
<div id="kt_header" class="header" data-kt-sticky="true" data-kt-sticky-name="header" data-kt-sticky-offset="{default: '200px', lg: '300px'}">
<div class="container-xxl d-flex align-items-center justify-content-between" id="kt_header_container">
<!--begin::Page title-->
<div class="page-title d-flex flex-column align-items-start justify-content-center flex-wrap me-lg-2 pb-5 pb-lg-0" data-kt-swapper="true" data-kt-swapper-mode="prepend" data-kt-swapper-parent="{default: '#kt_content_container', lg: '#kt_header_container'}">
<!--begin::Heading-->
<h1 class="text-dark fw-bold my-0 fs-2">Dashboard</h1>
<!--end::Heading-->
<!--begin::Breadcrumb-->
<ul class="breadcrumb breadcrumb-line text-muted fw-bold fs-base my-1">
<li class="breadcrumb-item text-muted">
<a href="<?php echo e(route('home')); ?>" class="text-muted">Home</a>
</li>
<li class="breadcrumb-item text-dark">Dashboard</li>
</ul>
<!--end::Breadcrumb-->
</div>
<!--end::Page title=-->
<!--begin::Wrapper-->
<div class="d-flex d-lg-none align-items-center ms-n2 me-2">
<!--begin::Aside mobile toggle-->
<div class="btn btn-icon btn-active-icon-primary" id="kt_aside_toggle">
<!--begin::Svg Icon | path: icons/duotune/abstract/abs015.svg-->
<span class="svg-icon svg-icon-2x">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<path d="M21 7H3C2.4 7 2 6.6 2 6V4C2 3.4 2.4 3 3 3H21C21.6 3 22 3.4 22 4V6C22 6.6 21.6 7 21 7Z" fill="black"></path>
<path opacity="0.3" d="M21 14H3C2.4 14 2 13.6 2 13V11C2 10.4 2.4 10 3 10H21C21.6 10 22 10.4 22 11V13C22 13.6 21.6 14 21 14ZM22 20V18C22 17.4 21.6 17 21 17H3C2.4 17 2 17.4 2 18V20C2 20.6 2.4 21 3 21H21C21.6 21 22 20.6 22 20Z" fill="black"></path>
</svg>
</span>
<!--end::Svg Icon-->
</div>
<!--end::Aside mobile toggle-->
<!--begin::Logo-->
<a href="<?php echo e(route('home')); ?>" class="d-flex align-items-center">
</a>
<!--end::Logo-->
</div>
<!--end::Wrapper-->
</div>
<!--begin::Container-->
<div class="container-xxl d-flex align-items-center justify-content-between" id="kt_header_container">
<!--begin::Page title-->
<!--begin::Wrapper-->
<div class="d-flex d-lg-none align-items-center ms-n2 me-2">
<!--begin::Aside mobile toggle-->
<div class="btn btn-icon btn-active-icon-primary" id="kt_aside_toggle">
<!--begin::Svg Icon | path: icons/duotune/abstract/abs015.svg-->
<span class="svg-icon svg-icon-2x">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<path d="M21 7H3C2.4 7 2 6.6 2 6V4C2 3.4 2.4 3 3 3H21C21.6 3 22 3.4 22 4V6C22 6.6 21.6 7 21 7Z" fill="black" />
<path opacity="0.3" d="M21 14H3C2.4 14 2 13.6 2 13V11C2 10.4 2.4 10 3 10H21C21.6 10 22 10.4 22 11V13C22 13.6 21.6 14 21 14ZM22 20V18C22 17.4 21.6 17 21 17H3C2.4 17 2 17.4 2 18V20C2 20.6 2.4 21 3 21H21C21.6 21 22 20.6 22 20Z" fill="black" />
</svg>
</span>
<!--end::Svg Icon-->
</div>
<!--end::Aside mobile toggle-->
<!--begin::Logo-->
<a href="<?php echo e(route('home')); ?>" class="d-flex align-items-center">
<img alt="Logo" src="assets/media/logos/logo-default.svg" class="h-40px" />
</a>
<!--end::Logo-->
</div>
<!--end::Wrapper-->
<!--begin::Toolbar wrapper-->
<div class="d-flex flex-shrink-0">
</div>
<!--end::Toolbar wrapper-->
</div>
<!--end::Container-->
</div>
<!--begin::Content-->
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<!--begin::Container-->
<div class="container-xxl" id="kt_content_container">
<!--end::Header-->
<div class="row gy-5 g-xl-12">
<!--begin::Col-->
<div class="col-xl-12">
<!--begin::Tables Widget 3-->
<div class="card card-xl-stretch mb-5 mb-xl-8">
<!--begin::Header-->
<!--end::Header-->
<!--begin::Body-->
<div class="card-body py-3">
<div class="row">
<div class="col-xl-3 col-md-6 mb-5">
<div class="card bg-primary mini-stat position-relative">
<div class="card-body">
<div class="mini-stat-desc">
<div class="text-white">
<h5 class="text-uppercase font-size-16 text-white-50">Products
</h5>
<h3 class="mb-3 text-white"><?php echo e(@$total_products); ?></h3>
</div>
<div class="mini-stat-icon">
<i class="mdi mdi-cube-outline display-2"></i>
</div>
</div>
</div>
</div>
</div>
<!-- End Col -->
<div class="col-xl-3 col-md-6 mb-5">
<div class="card bg-primary mini-stat position-relative">
<div class="card-body">
<div class="mini-stat-desc">
<div class="text-white">
<h5 class="text-uppercase font-size-16 text-white-50">Low Stock</h5>
<h3 class="mb-3 text-white"><?php echo e(@$low_products); ?></h3>
</div>
<div class="mini-stat-icon">
<i class="mdi mdi-briefcase-check display-2"></i>
</div>
</div>
</div>
</div>
</div>
<!-- End Col -->
<!-- End Col -->
<div class="col-xl-3 col-md-6 mb-5">
<div class="card bg-primary mini-stat position-relative">
<div class="card-body">
<div class="mini-stat-desc">
<div class="text-white">
<h5 class="text-uppercase font-size-16 text-white-50">Invoices</h5>
<h3 class="mb-3 text-white"><?php echo e(@$yesterday_invoices); ?></h3>
</div>
<div class="mini-stat-icon">
<i class="mdi mdi-briefcase-check display-2"></i>
</div>
</div>
</div>
</div>
</div>
<!-- End Col -->
<div class="col-xl-3 col-md-6 mb-5">
<div class="card bg-primary mini-stat position-relative">
<div class="card-body">
<div class="mini-stat-desc">
<div class="text-white">
<h5 class="text-uppercase font-size-16 text-white-50">Customers</h5>
<h3 class="mb-3 text-white"><?php echo e((@$yesterday_sales->sums==null)?0:Helper::totalPrice(auth()->user()->gst_percent,@$yesterday_sales->sums,1)); ?></h3>
</div>
<div class="mini-stat-icon">
<i class="mdi mdi-briefcase-check display-2"></i>
</div>
</div>
</div>
</div>
</div>
<!-- End Col -->
</div>
</div>
</div>
</div>
</div>
<!--begin::details View-->
<div class="card mb-5 mb-xl-10" id="kt_profile_details_view">
<!--begin::Card header-->
<div class="card-header cursor-pointer">
<!--begin::Card title-->
<div class="card-title m-0">
<h3 class="fw-bolder m-0">Dashboard</h3>
</div>
<!--end::Card title-->
</div>
<!--begin::Card header-->
<!--begin::Card body-->
<div class="card-body p-9">
<h5>Last month Sale</h5>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
google.charts.load('current', {packages: ['corechart', 'line']});
google.charts.setOnLoadCallback(drawBackgroundColor);
function drawBackgroundColor() {
var data = new google.visualization.DataTable();
data.addColumn('number', 'X');
data.addColumn('number', 'Sale');
data.addRows(<?php echo json_encode($arr, 15, 512) ?>);
var options = {
hAxis: {
title: 'Days'
},
vAxis: {
title: 'Sale'
},
backgroundColor: '#f1f8e9'
};
var chart = new google.visualization.LineChart(document.getElementById('chart_div'));
chart.draw(data, options);
}
</script>
<div id="chart_div"></div>
</div>
</div>
<!--end::Content-->
<div class="row gy-5 g-xl-8">
<!--begin::Col-->
<div class="col-xl-12">
<!--begin::Tables Widget 3-->
<div class="card card-xl-stretch mb-5 mb-xl-8">
<!--begin::Header-->
<div class="card-header border-0 pt-5">
<h3 class="card-title align-items-start flex-column">
<span class="card-label fw-bolder fs-3 mb-1">Latest Invoices List</span>
</h3>
</div>
<!--end::Header-->
<!--begin::Body-->
<div class="card-body py-3">
<!--begin::Table container-->
<div class="table-responsive">
<!--begin::Table-->
<table class="table table-row-dashed table-row-gray-300 align-middle gs-0 gy-4">
<!--begin::Table head-->
<thead>
<tr class="fw-bolder text-muted">
<th>Invoice Id</th>
<th class="min-w-150px">Customer Name</th>
<th class="min-w-140px">Products Name</th>
<th class="min-w-100px text-end">Created At</th>
</tr>
</thead>
<!--end::Table head-->
<!--begin::Table body-->
<tbody>
<?php $gst = auth()->user()->gst_percent; ?>
<?php $__empty_1 = true; $__currentLoopData = $invoices; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $invoiceKey=>$invoice): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
<?php $net =0; ?>
<tr>
<td>#<?php echo e($invoice->id); ?></td>
<td><?php echo e($invoice->customers->firstname.' '.$invoice->customers->lastname); ?> </td>
<?php $prefix = ""; ?>
<td><?php $__empty_2 = true; $__currentLoopData = $invoice->lineItem; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=> $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_2 = false; ?>
<?php echo e($prefix); ?><?php echo e($item->product->name); ?>
<?php $prefix =",";
// $total =!empty($gst)?Helper::totalPrice($gst,$item->price,1):$item->price;
// $net = $total+$net;
?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_2): ?> <?php endif; ?> </td>
<td class="text-end"><?php echo e($invoice->created_at->format('M d Y')); ?></td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
<tr>
<td colspan="3" class="text-center">No Invoice Found!!</td>
</tr>
<?php endif; ?>
</tbody>
<!--end::Table body-->
</table>
<!--end::Table-->
</div>
<!--end::Table container-->
</div>
<!--begin::Body-->
</div>
<!--end::Tables Widget 3-->
</div>
<!--end::Col-->
</div>
<!--end::Container-->
<?php echo $__env->make('layouts.footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
<!--end::Content-->
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.weblayout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/billing/resources/views/dashboard.blade.php ENDPATH**/ ?>