[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: _old_dashboard.blade.php
@extends('layouts.backend') @section('title', translate('common.dashboard')) @section('content') <div class="row"> <x-stats-card title="Total Medicines" value="0" icon="fas fa-pills"/> <x-stats-card title="Instock Medicines" value="{{ number_format($medicine, 0, '.', ',') }}" icon="fas fa-pills"/> <x-stats-card title="Stockout Medicines" value="{{ $stockout->count() }}" icon="fas fa-pills"/> <x-stats-card title="Expired Medicines" value="{{ $expire->count() }}" icon="fas fa-pills"/> @if(isModuleActive('ecommerce')) <x-stats-card title="Total Orders" value="0" icon="fa fa-shopping-cart"/> <x-stats-card title="Pending Orders" value="0" icon="fa fa-shopping-cart"/> <x-stats-card title="Delivered Orders" value="0" icon="fa fa-shopping-cart"/> <x-stats-card title="Canceled Orders" value="0" icon="fa fa-shopping-cart"/> @endif <x-stats-card title="Total Product Sale" value="{{ $total_product_sale }}" icon="fa fa-chart-column"/> <x-stats-card title="Today Product Sale" value="{{ $today_product_sale }}" icon="fa fa-chart-column"/> <x-stats-card title="This Month Sale" value="{{ $product_sale_this_month }}" icon="fa fa-chart-column"/> <x-stats-card title="This Year Product Sale" value="{{ $product_sale_this_year }}" icon="fa fa-chart-column"/> <x-stats-card title="Total Product Purchase" value="{{ $total_product_purchase }}" icon="fa fa-chart-column"/> <x-stats-card title="Today Product Purchase" value="{{ $today_product_purchase }}" icon="fa fa-chart-column"/> <x-stats-card title="This Month Purchase" value="{{ $product_purchase_this_month }}" icon="fa fa-chart-column"/> <x-stats-card title="This Year Product Purchase" value="{{ $product_purchase_this_year }}" icon="fa fa-chart-column"/> <x-stats-card title="Total Earning" value="{{ priceFormat($total_earning) }}" icon="fa fa-dollar-sign"/> <x-stats-card title="Today Earning" value="{{ priceFormat($today_earning) }}" icon="fa fa-dollar-sign"/> <x-stats-card title="This Month Earning" value="{{ priceFormat($earning_this_month) }}" icon="fa fa-dollar-sign"/> <x-stats-card title="This Year Erning" value="{{ priceFormat($earning_this_year) }}" icon="fa fa-dollar-sign"/> <x-stats-card title="Total Customers" value="0"/> <x-stats-card title="Total Categories" value="0"/> <x-stats-card title="Total Transactions" value="0"/> {{-- <div class="col-lg-8">--}} {{-- <div class="card border-0 border-r20 py-1">--}} {{-- <div class="card-header bg-transparent border-0">--}} {{-- <h4>{{ translate('common.Reports') }}</h4>--}} {{-- </div>--}} {{-- <div class="card-body">--}} {{-- <div class="row">--}} {{-- <div class="col-lg-3 mb-1 col-6">--}} {{-- <div class="small-box first">--}} {{-- <div class="smalll-box d-flex justify-content-between flex-column gap-1">--}} {{-- <div class="icon">--}} {{-- <i class="fas fa-pills fa-2xl"></i>--}} {{-- </div>--}} {{-- <div class="inner">--}} {{-- <h3>{{ number_format($medicine, 0, '.', ',') }}</h3>--}} {{-- </div>--}} {{-- </div>--}} {{-- <a href="{{ route('report.instock') }}" class="small-box-footer">--}} {{-- <span>{{ __('Stock Medicine') }}</span> <i class="fas fa-arrow-circle-right"></i>--}} {{-- </a>--}} {{-- </div>--}} {{-- </div>--}} {{-- <div class="col-lg-3 mb-1 col-6">--}} {{-- <div class="small-box second">--}} {{-- <div class="smalll-box d-flex justify-content-between flex-column gap-1">--}} {{-- <div class="icon">--}} {{-- <i class="fas fa-usd fa-2xl"></i>--}} {{-- </div>--}} {{-- <div class="inner">--}} {{-- <h3>{{ priceFormat($total_sell_amount) }}</h3>--}} {{-- </div>--}} {{-- </div>--}} {{-- <a href="{{ route('invoice.reports') }}" class="small-box-footer">--}} {{-- <span>{{ __('Total Sales') }}</span> <i class="fas fa-arrow-circle-right"></i>--}} {{-- </a>--}} {{-- </div>--}} {{-- </div>--}} {{-- <div class="col-lg-3 mb-1 col-6">--}} {{-- <div class="small-box third">--}} {{-- <div class="smalll-box d-flex justify-content-between flex-column gap-1">--}} {{-- <div class="icon">--}} {{-- <i class="fas fa-hourglass-end fa-2xl"></i>--}} {{-- </div>--}} {{-- <div class="inner">--}} {{-- <h3>{{ $expire->count() }}</h3>--}} {{-- </div>--}} {{-- </div>--}} {{-- <a href="{{ route('report.already_expire') }}" class="small-box-footer">--}} {{-- <span>{{ translate('common.expired_medicine') }}</span> <i--}} {{-- class="fas fa-arrow-circle-right"></i>--}} {{-- </a>--}} {{-- </div>--}} {{-- </div>--}} {{-- <div class="col-lg-3 mb-1 col-6">--}} {{-- <div class="small-box fourth">--}} {{-- <div class="smalll-box d-flex justify-content-between flex-column gap-1">--}} {{-- <div class="icon">--}} {{-- <i class="fa-brands fa-product-hunt fa-2xl"></i>--}} {{-- </div>--}} {{-- <div class="inner">--}} {{-- <h3>{{ $stockout->count() }}</h3>--}} {{-- </div>--}} {{-- </div>--}} {{-- <a href="{{ route('report.stockout') }}" class="small-box-footer">--}} {{-- <span>{{ translate('common.stock_out_medicine') }}</span> <i--}} {{-- class="fas fa-arrow-circle-right"></i>--}} {{-- </a>--}} {{-- </div>--}} {{-- </div>--}} {{-- </div>--}} {{-- </div>--}} {{-- </div>--}} {{-- </div>--}} {{-- <div class="col-lg-4">--}} {{-- <div class="card border-0 border-r20">--}} {{-- <div class="card-header bg-transparent border-0">--}} {{-- <h4 class="card-title">{{ translate('common.Purchases & Sales') }}</h4>--}} {{-- </div>--}} {{-- <div class="card-body">--}} {{-- <div id="line-example" style="height: 180px;color: red" class="line-atl morris-chart"></div>--}} {{-- </div>--}} {{-- </div>--}} {{-- </div>--}} </div> {{-- <section id="dashboard-ecommerce">--}} {{-- <div class="row">--}} {{-- <div class="col-md-7 col-sm-12">--}} {{-- <div class="card border-0 border-r20">--}} {{-- <div class="card-header">--}} {{-- <h4>{{ translate('Others') }}</h4>--}} {{-- </div>--}} {{-- <div class="card-body">--}} {{-- <div class="row">--}} {{-- <div class="col statistic px-2 col-border-right">--}} {{-- <div class="text text-dark text-center text-capitalize">--}} {{-- <h4 class="count">{{ App\Models\Customer::count() }}</h4>--}} {{-- <h6 class="mb-0">{{ translate('Total Customer') }}</h6>--}} {{-- </div>--}} {{-- </div>--}} {{-- <div class="col statistic px-2 col-border-right">--}} {{-- <div class="text text-dark text-center text-capitalize">--}} {{-- <h4 class="count">{{ App\Models\Supplier::count() }}</h4>--}} {{-- <h6 class="mb-0">{{ translate('Total Manufacturer') }}</h6>--}} {{-- </div>--}} {{-- </div>--}} {{-- <div class="col statistic px-2 col-border-right">--}} {{-- <div class="text text-dark text-center text-capitalize">--}} {{-- <h4 class="count">{{ priceFormat($total_cash_in_hand) }}</h4>--}} {{-- <h6 class="mb-0">{{ translate('Total cash in hand ') }}</h6>--}} {{-- </div>--}} {{-- </div>--}} {{-- <div class="col statistic px-2">--}} {{-- <div class="text text-dark text-center text-capitalize">--}} {{-- <h4 class="count">{{ priceFormat($total_customer_due) }}</h4>--}} {{-- <h6 class="mb-0">{{ translate('Total customer due') }}</h6>--}} {{-- </div>--}} {{-- </div>--}} {{-- </div>--}} {{-- </div>--}} {{-- </div>--}} {{-- <div class="row" id="basic-table">--}} {{-- <div class="col-md-6 col-sm-12">--}} {{-- <div class="card border-0 border-r20">--}} {{-- <div class="card-header bg-primary border-0">--}} {{-- <h4 class="card-title Titlee">Today's sell</h4>--}} {{-- </div>--}} {{-- <div class="table-responsive">--}} {{-- <table class="table">--}} {{-- <thead>--}} {{-- <tr>--}} {{-- <th>{{ translate('common.title') }}</th>--}} {{-- <th>{{ translate('common.amount') }}</th>--}} {{-- </tr>--}} {{-- </thead>--}} {{-- <tbody>--}} {{-- <tr>--}} {{-- <td>--}} {{-- {{ translate('common.today_invoice') }}--}} {{-- </td>--}} {{-- <td>{{ $today_sell }}</td>--}} {{-- </tr>--}} {{-- <tr>--}} {{-- <td>--}} {{-- {{ translate('common.sold_amount') }}--}} {{-- </td>--}} {{-- <td>{{ priceFormat($today_sell_amount) }}</td>--}} {{-- </tr>--}} {{-- <tr>--}} {{-- <td>--}} {{-- {{ translate('common.received_amount') }}--}} {{-- </td>--}} {{-- <td>{{ priceFormat($today_received) }}</td>--}} {{-- </tr>--}} {{-- </tbody>--}} {{-- </table>--}} {{-- </div>--}} {{-- </div>--}} {{-- </div>--}} {{-- <div class="col-md-6 col-sm-12">--}} {{-- <div class="card border-0 border-r20">--}} {{-- <div class="card-header bg-success border-0">--}} {{-- <h4 class="card-title Titlee">{{ translate('Today\'s Purchase') }} </h4>--}} {{-- </div>--}} {{-- <div class="table-responsive">--}} {{-- <table class="table">--}} {{-- <thead>--}} {{-- <tr>--}} {{-- <th>{{ translate('common.title') }}</th>--}} {{-- <th>{{ translate('common.amount') }}</th>--}} {{-- </tr>--}} {{-- </thead>--}} {{-- <tbody>--}} {{-- <tr>--}} {{-- <td>{{ translate('common.today_purchase') }}</td>--}} {{-- <td>{{ $today_purchase }}</td>--}} {{-- </tr>--}} {{-- <tr>--}} {{-- <td>{{ translate('common.purchase_amount') }}</td>--}} {{-- <td>{{ priceFormat($today_purchase_amount) }}</td>--}} {{-- </tr>--}} {{-- <tr>--}} {{-- <td>{{ translate('common.paid_amount') }}</td>--}} {{-- <td>{{ priceFormat($today_paid) }}</td>--}} {{-- </tr>--}} {{-- </tbody>--}} {{-- </table>--}} {{-- </div>--}} {{-- </div>--}} {{-- </div>--}} {{-- </div>--}} {{-- </div>--}} {{-- <div class="col-md-5 col-sm-12">--}} {{-- <div class="card border-0 border-r20">--}} {{-- <div class="card-header bg-transparent border-0">--}} {{-- <div class="header-left">--}} {{-- <h4 class="card-title" style="color:#000; font-weight:600;">--}} {{-- {{ translate('common.Purchases & Sales') }}--}} {{-- </h4>--}} {{-- </div>--}} {{-- </div>--}} {{-- <div class="card-body">--}} {{-- <div id="piChart"></div>--}} {{-- </div>--}} {{-- </div>--}} {{-- </div>--}} {{-- </div>--}} {{-- </section>--}} <div id="stockmodal" class="modal fade show" role="dialog" style="padding-right: 15px; display: none;" aria-modal="true"> <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content"> <div class="modal-header d-flex justify-content-between"> <h4 class="modal-title">{{ translate('common.expired_medicine') }}</h4> <button type="button" class="close btn btn-sm btn-light" data-bs-dismiss="modal">×</button> </div> <div class="modal-body"> <table id="" class="table table-bordered table-striped table-hover"> <thead> <tr> <th class="text-center">{{ translate('common.name') }}</th> <th class="text-center">{{ translate('common.batch') }}</th> <th class="text-center">{{ translate('common.Expired on') }}</th> </tr> </thead> <tbody> @foreach ($expire_medicines as $batch) <tr> <td> @php $medicine = \App\Models\Medicine::where('id', $batch->medicine_id)->first(); @endphp @if ($medicine != null) {{ $medicine->name }} @endif </td> <td>{{ $batch->name }}</td> <td>{{ $batch->expire }}</td> </tr> @endforeach </tbody> </table> <div> <h4> <center>{{ translate('common.stock_out') }}</center> </h4> </div> <table id="" class="table table-bordered table-striped table-hover"> <thead> <tr> <th class="text-center">{{ translate('common.name') }}</th> <th class="text-center">{{ translate('Qauntity') }}</th> </tr> </thead> <tbody> @foreach ($stockout_medicines as $medicine) <tr> <td class="text-center"> {{ $medicine->name }} </td> <td class="text-center"> {{ $medicine->total_quantity }} </td> </tr> @endforeach </tbody> </table> </div> <div class="modal-footer"> <input type="hidden" name="is_modal_shown" id="is_modal_shown"> <button type="button" class="btn btn-default" data-bs-dismiss="modal">Close</button> </div> </div> </div> </div> @endsection @section('custom-js') <script type="text/javascript"> $(document).ready(function () { $('#stockmodal').modal('show'); }); </script> <script src="{{ asset('dashboard/app-assets/morris-chart/popper.min.js') }}"></script> <script src="{{ asset('dashboard/app-assets/morris-chart//raphael-min.js') }}"></script> <script src="{{ asset('dashboard/app-assets/morris-chart/morris.min.js') }}"></script> <script src="https://cdn.jsdelivr.net/npm/apexcharts"></script> @php $dfrom = date('Y-m-d', strtotime('-7 day', time())); $dto = date('Y-m-d'); $datelist = list_days($dfrom, $dto); $i = 0; $data = []; @endphp @foreach ($datelist as $date) @php $data[$i]['y'] = $date; $data[$i]['a'] = \App\Models\Invoice::where('shop_id', Auth::user()->shop_id) ->where('date', $date) ->count(); $data[$i]['b'] = \App\Models\Purchase::where('shop_id', Auth::user()->shop_id) ->where('date', $date) ->count(); $i++; @endphp @endforeach <script> Morris.Line({ element: 'line-example', data: @php echo json_encode($data) @endphp, xkey: 'y', labelColor: '#000000', ykeys: ['a', 'b'], labels: ['Sales', 'Purchase'] }); </script> @php $sales = \App\Models\Invoice::sum('total_price'); $purchase = \App\Models\Purchase::sum('total_price'); @endphp <script> var options = { series: [{{ $purchase }}, {{ $sales }}], chart: { width: 380, type: 'pie', }, colors: ['#0088ff', '#f8bf15'], labels: ['Purchase', 'Sales'], legend: { position: 'bottom', show: true, showForSingleSeries: false, showForNullSeries: true, showForZeroSeries: true, }, }; var chart = new ApexCharts(document.querySelector("#piChart"), options); chart.render(); </script> @endsection
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.9 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002