@extends('admin.head')
@section('middle')
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<!-- jQuery library -->
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<!-- Popper JS -->
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
</head>
<body>
<style>
<style>
</style>
<div class="container">
<div id="myModal2" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-body" style="margin-top: 30%;">
<p><h3 style="color: #008000"><b>SMS Subscription Done</b></h3></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="myModalp" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Payment Details</h4>
</div>
<div class="modal-body">
<div style="background: white">
<div class="row" style="" id="Carddiv">
<div id="loadingsfsa" class="loadersadfa" style=" border-radius: 50% !important;display:none;">
</div>
<div class=" col-lg-12" >
<div class="panel panel-default" style=" border: 1px solid lightgray !important;">
<div class="panel-body">
<!-- Display errors returned by createToken -->
<div id="paymentResponse" style="color: red"></div>
<!-- Payment form -->
<form id="paymentFrm" style="padding: 10px;" >
<input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
<input type="hidden" value="" name="" id="paymenttype">
<div id="card_number" class=" invert_dark form-control" style="max-width: 500px;display:inline-block;border-radius: 5px;"></div>
<div align="center">
<ul class="nav nav-pills nav-stacked mt-2" style="padding-top: 10px">
<li class="active"><a href="#">Final Payment : £<span id="finalpayment">23.00-1000 Credits 2.5p/Credit</span> </a>
</li>
</ul>
</div>
<br />
<button style="color:#fff;font-weight:bold; height: 50px" type="submit" class="btn-success btn-block" id="submit">Pay</button>
<input type="hidden" value="23.00" name="onlinepayment" id="onlinepayment">
</form>
<form id="form_success" method="post" action="{{ url('sms_order_success') }}">
<input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
<input type="hidden" id="payment_intent_id" name="payment_intent_id" value="">
</form>
<div align="center" style="font-size: 11px; font-weight: bold; color: red">
<p>* Note: For any refund claim, the card processing fees are NOT refunded.
<br>* Note: 2 credits will send 160 characters of text which implies 1 SMS. This means 2 credit = 1 SMS. For example, 100 SMS will need 200 credits for them to get 1 SMS each.</p>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="/public/frontend/assets/js/vendor/swal.js"></script>
<script src="https://js.stripe.com/v3/"></script>
<script>
// Create an instance of the Stripe object
// Set your publishable API key
var stripe = Stripe('pk_test_51HmHWVJHMNVpHtGYRXIH0y8NlDYqOkBmhN4wofXUusp2SPPafKgimJ7hfwEC2W1jZuq6oR6lZkki8Juzp87QKNOq00IqBArCX4');
// Create an instance of elements
var elements = stripe.elements();
var style = {
base: {
fontWeight: 400,
fontFamily: 'Roboto, Open Sans, Segoe UI, sans-serif',
fontSize: '16px',
lineHeight: '1.4',
color: '#555',
backgroundColor: '#fff',
'::placeholder': {
color: '#888',
},
},
invalid: {
color: 'red',
}
};
var cardElement = elements.create('card', {
style: style
});
cardElement.mount('#card_number');
// Validate input of the card elements
var resultContainer = document.getElementById('paymentResponse');
cardElement.addEventListener('change', function(event) {
if (event.error) {
resultContainer.innerHTML = '<p>'+event.error.message+'</p>';
} else {
resultContainer.innerHTML = '';
}
});
// Get payment form element
var form = document.getElementById('paymentFrm');
// Create a token when the form is submitted.
form.addEventListener('submit', function(ev) {
ev.preventDefault();
$("#submit").text("Payment Processing");
$("#submit").prop("disabled",true);
var client_secret="";
/////////////////
var keyword="payment_intent";
var onlinepayment=$('#onlinepayment').val();
$.ajax({
type: 'POST',
url: "{{ url('create_sms_payment_intent') }}",
data: {"keyword":keyword, "_token": "{{ csrf_token() }}","onlinepayment":onlinepayment},
success: function(data){
obj = data;
console.log(data);
if(obj.status!=false)
{
/////////////////
stripe.confirmCardPayment(""+obj.client_secret+"", {
payment_method: {
card: cardElement
}
}).then(function(result) {
if (result.error) {
// Show error to your customer (e.g., insufficient funds)
console.log(result.error.message);
$("#submit").prop("disabled",false);
$("#submit").text("Pay");
swal("Sorry!",result.error.message,'warning');
} else {
// The payment has been processed!
if (result.paymentIntent.status === 'succeeded') {
$('#myModal').hide();
// $("#loading").hide();
$("#payment_intent_id").val(result.paymentIntent.id);
$("#form_success").submit();
}
}
});
/////////////
}
else
{
swal("Sorry!","Something went wrong.Please try again.",'warning');
}
},
error:function (data) {
}
});
/////////////////
});
</script>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
<!-- Main content -->
<section class="content">
<!-- Small boxes (Stat box) -->
<div class="row">
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-aqua">
<div class="inner">
<h3 id="count_categories">0</h3>
<p>Categories</p>
</div>
<div class="icon">
<i class="ion ion-home"></i>
</div>
<a href="{{ url('categories') }}" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
<!-- ./col -->
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-green">
<div class="inner">
<h3 id="count_products">0<sup style="font-size: 20px"></sup></h3>
<p>Products</p>
</div>
<div class="icon">
<i class="ion ion-home"></i>
</div>
<a href="{{ url('products') }}" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
<!-- ./col -->
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-yellow">
<div class="inner">
<h3 id="count_users">0</h3>
<p>Users</p>
</div>
<div class="icon">
<i class="ion ion-person"></i>
</div>
<a href="{{ url('all_users') }}" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
<!-- ./col -->
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-red">
<div class="inner">
<h3 id="count_orders">0</h3>
<p>Orders</p>
</div>
<div class="icon">
<i class="ion ion-bag"></i>
</div>
<a href="{{ url('all_orders') }}" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-blue">
<div class="inner">
<h3 id="count_sms">0</h3>
<p>SMS</p>
</div>
<div class="icon">
<i class="ion ion-bag"></i>
</div>
<a href="#" data-toggle="modal" data-target="#myModalp" class="small-box-footer">Add More Sms <i class="fa fa-plus"></i></a>
</div>
</div>
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-blue">
<div class="inner">
<h3 id="count_email_subscribers">0</h3>
<p>Email Subscribers</p>
</div>
<div class="icon">
<i class="ion ion-bag"></i>
</div>
<a href="{{ url('all_subscribers') }}" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-red">
<div class="inner">
<h3 id="count_email_unsubscribers">0</h3>
<p>Email Unsubscribers</p>
</div>
<div class="icon">
<i class="ion ion-bag"></i>
</div>
<a href="{{ url('all_subscribers') }}" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-yellow">
<div class="inner">
<h3 id="count_email_sents">0</h3>
<p>Email Sent</p>
</div>
<div class="icon">
<i class="ion ion-person"></i>
</div>
<a href="{{ url('all_subscribers') }}" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
<!-- ./col -->
</div>
<!-- /.row -->
<!-- Main row -->
<div class="row">
<!-- Left col -->
@if(Session::has('modal_flag'))
<input type="hidden" style="color: #000000" id="hidden_modal_flag" name="hidden_modal_flag" value="{{ Session::get('modal_flag') }}">
@endif
@if(Session::has('modal_flag2'))
<input type="hidden" style="color: #000000" id="hidden_modal_flag2" name="hidden_modal_flag2" value="{{ Session::get('modal_flag2') }}">
@endif
<div class="col-md-8">
<div class="box box-primary">
<div class="box-header with-border">
<div align="center">
<form method="get" action="{{ url('dashboard') }}">
<h3 class="box-title">
<b> Order Month Wise Graph of
<select name="year" onchange="this.form.submit()">
<option value="2022" {{ '2022' == $year ? "selected" : "" }}>2022</option>
<option value="2023" {{ '2023' == $year ? "selected" : "" }}>2023</option>
<option value="2024" {{ '2024' == $year ? "selected" : "" }}>2024</option>
<option value="2025" {{ '2025' == $year ? "selected" : "" }}>2025</option>
<option value="2026" {{ '2026' == $year ? "selected" : "" }}>2026</option>
<option value="2027" {{ '2027' == $year ? "selected" : "" }}>2027</option>
</select>
</b>
</h3>
</form>
</div>
<div class="box-tools pull-right">
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
</button>
<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
</div>
</div>
<div class="box-body">
<!DOCTYPE html>
<html>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.5.0/Chart.min.js"></script>
<body>
<div align="center">
<canvas id="myChart" style="width:100%;"></canvas>
</div>
<script>
var arlene2 = [];
// arlene2.push(0)
// alert(arlene2);
<?php
$check = DB::Select("SELECT count(*) AS total FROM orders WHERE MONTH(date) = 1 and YEAR(date) = $year");
?>
@if(count($check)>0)
arlene2.push(<?php echo $check[0]->total ?>)
@endif
<?php
$check = DB::Select("SELECT count(*) AS total FROM orders WHERE MONTH(date) = 2 and YEAR(date) = $year");
?>
@if(count($check)>0)
arlene2.push(<?php echo $check[0]->total ?>)
@endif
<?php
$check = DB::Select("SELECT count(*) AS total FROM orders WHERE MONTH(date) = 3 and YEAR(date) = $year");
?>
@if(count($check)>0)
arlene2.push(<?php echo $check[0]->total ?>)
@endif
<?php
$check = DB::Select("SELECT count(*) AS total FROM orders WHERE MONTH(date) = 4 and YEAR(date) = $year");
?>
@if(count($check)>0)
arlene2.push(<?php echo $check[0]->total ?>)
@endif
<?php
$check = DB::Select("SELECT count(*) AS total FROM orders WHERE MONTH(date) = 5 and YEAR(date) = $year");
?>
@if(count($check)>0)
arlene2.push(<?php echo $check[0]->total ?>)
@endif
<?php
$check = DB::Select("SELECT count(*) AS total FROM orders WHERE MONTH(date) = 6 and YEAR(date) = $year");
?>
@if(count($check)>0)
arlene2.push(<?php echo $check[0]->total ?>)
@endif
<?php
$check = DB::Select("SELECT count(*) AS total FROM orders WHERE MONTH(date) = 7 and YEAR(date) = $year");
?>
@if(count($check)>0)
arlene2.push(<?php echo $check[0]->total ?>)
@endif
<?php
$check = DB::Select("SELECT count(*) AS total FROM orders WHERE MONTH(date) = 8 and YEAR(date) = $year");
?>
@if(count($check)>0)
arlene2.push(<?php echo $check[0]->total ?>)
@endif
<?php
$check = DB::Select("SELECT count(*) AS total FROM orders WHERE MONTH(date) = 9 and YEAR(date) = $year");
?>
@if(count($check)>0)
arlene2.push(<?php echo $check[0]->total ?>)
@endif
<?php
$check = DB::Select("SELECT count(*) AS total FROM orders WHERE MONTH(date) = 10 and YEAR(date) = $year");
?>
@if(count($check)>0)
arlene2.push(<?php echo $check[0]->total ?>)
@endif
<?php
$check = DB::Select("SELECT count(*) AS total FROM orders WHERE MONTH(date) = 11 and YEAR(date) = $year");
?>
@if(count($check)>0)
arlene2.push(<?php echo $check[0]->total ?>)
@endif
<?php
$check = DB::Select("SELECT count(*) AS total FROM orders WHERE MONTH(date) = 12 and YEAR(date) = $year");
?>
@if(count($check)>0)
arlene2.push(<?php echo $check[0]->total ?>)
@endif
var xValues = ["Jan", "Feb", "March","April","May","Jun",'July','August','September','October','November','December'];
// var yValues = [55, 49, 44, 24, 15,14,32,12,34,21,22,12];
// var yValues = [55, 49];
var yValues = arlene2;
var barColors = ["blue", "green","purple","yellow","white","black","gray","pink","purple","brown","brown","brown"];
new Chart("myChart", {
type: "bar",
data: {
labels: xValues,
datasets: [{
backgroundColor: barColors,
data: yValues
}]
},
options: {
legend: {display: false},
title: {
display: true
// text: "Order Month Wise Report"
}
}
});
</script>
</body>
</html>
</div>
</div>
</div>
<div class="col-md-4">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title"><b>Popular Products</b></h3>
<div class="box-tools pull-right">
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
</button>
<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
</div>
</div>
<!-- /.box-header -->
<div class="box-body">
<ul class="products-list product-list-in-box">
@foreach($products as $product)
<li class="item">
<div class="product-img">
@php
$check = DB::table('product_images')->where('product_id',$product->product_id)->take(1)->get();
@endphp
@if(count($check)>0)
<img src="{{ url('public/uploads/products') }}/{{ $check[0]->image_name }}" alt="Product Image">
@endif
</div>
<div class="product-info">
<a class="product-title">{{ $product->cat_name }}
<span class="label label-warning pull-right" style="font-size: 13px">Ordered: {{ $product->count }}</span>
</a>
<span class="product-description">
{{ $product->product_name }}
</span>
</div>
</li>
@endforeach
<!-- /.item -->
</ul>
</div>
<!-- /.box-body -->
<div class="box-footer text-center">
@if(count($products)==4 || count($products)>4)
<a href="{{ url('products') }}" class="uppercase">View All Products</a>
@endif
</div>
<!-- /.box-footer -->
</div>
</div>
<div class="col-md-8">
<div class="box box-info">
<div class="box-header with-border">
<h3 class="box-title"><b>Latest Orders</b></h3>
<div class="box-tools pull-right">
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
</button>
<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
</div>
</div>
<!-- /.box-header -->
<div class="box-body">
<div class="table-responsive">
<table class="table no-margin">
<thead>
<tr>
<th>Invoice #</th>
<th>Name</th>
<th>Email</th>
<th>Amount</th>
</tr>
</thead>
<tbody>
@foreach($orders as $order)
<tr>
<td><a href="pages/examples/invoice.html" style="font-weight: bold">{{ $order->invoice_number }}</a></td>
<td>{{ $order->first_name }} {{ $order->last_name }}</td>
<td>
{{ $order->email }}
</td>
<td>
<span class="label label-success" style="font-size: 13px">£<?php echo number_format((float)$order->grandtotal, 2, '.', ''); ?></span>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
<!-- /.table-responsive -->
</div>
<!-- /.box-body -->
<div class="box-footer clearfix">
<!-- <a href="javascript:void(0)" class="btn btn-sm btn-info btn-flat pull-left">Place New Order</a>-->
<a href="{{ url('all_orders') }}" class="btn btn-sm btn-default btn-flat pull-right">View All Orders</a>
</div>
<!-- /.box-footer -->
</div>
</div>
<div class="col-md-4">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title"><b>Recent Users</b></h3>
<div class="box-tools pull-right">
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
</button>
<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
</div>
</div>
<!-- /.box-header -->
<div class="box-body">
<ul class="products-list product-list-in-box">
@foreach($users as $user)
<li class="item">
<div class="product-img">
<span style="font-size: 16px; font-weight: bold">{{ $user->fname }}</span>
</div>
<div class="product-info">
<a class="product-title">
<span class="label label-warning pull-right" style="font-size: 13px">Email: {{ $user->email }}</span>
</a>
</div>
</li>
@endforeach
<!-- /.item -->
</ul>
</div>
<!-- /.box-body -->
<!-- /.box-footer -->
</div>
</div>
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header with-border">
<div align="center">
<h3 class="box-title">
<b>Visitors Detail</b>
</h3>
</div>
<div class="box-tools pull-right">
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
</button>
<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
</div>
</div>
<div class="box-body">
@foreach($total_visitors as $visitor)
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-yellow">
<div class="inner">
<h3 id="count_users">{{ $visitor->year_total }}</h3>
<p>This Year</p>
</div>
<div class="icon">
<i class="ion ion-person"></i>
</div>
<a href="{{ url('all_orders') }}" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-yellow">
<div class="inner">
<h3 id="count_users">{{ $visitor->month_total }}</h3>
<p>This Month</p>
</div>
<div class="icon">
<i class="ion ion-person"></i>
</div>
<a href="{{ url('all_orders') }}" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-yellow">
<div class="inner">
<h3 id="count_users">{{ $visitor->week_total }}</h3>
<p>This Week</p>
</div>
<div class="icon">
<i class="ion ion-person"></i>
</div>
<a href="{{ url('all_orders') }}" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-yellow">
<div class="inner">
<h3 id="count_users">{{ $visitor->day_total }}</h3>
<p>Today</p>
</div>
<div class="icon">
<i class="ion ion-person"></i>
</div>
<a href="{{ url('all_orders') }}" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
@endforeach
</div>
</div>
</div>
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header with-border">
<div align="center">
<h3 class="box-title">
<b>Visitors List</b>
</h3>
</div>
<div class="box-tools pull-right">
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
</button>
<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
</div>
</div>
<div class="box-body">
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>SR #</th>
<th>Visit Date</th>
<th>IP</th>
<th>Continent</th>
<th>Country</th>
<th>City</th>
<th>Visit Page</th>
</tr>
</thead>
<tbody>
<?php $count=1; ?>
@foreach($visitors as $list)
<?php $s = $list->visit_date;
$date = strtotime($s);
?>
<tr>
<td>{{ $count }}</td>
<td><?php echo date('d-M-Y', $date); ?></td>
<td>{{ $list->ip }}</td>
<td>{{ $list->continent }}</td>
<td>{{ $list->country }}</td>
<td>{{ $list->city }}</td>
<td>
<?php
// strip tags to avoid breaking any html
$string = strip_tags($list->visited_page);
if (strlen($string) > 200) {
$base_url= url('/');
// truncate string
$stringCut = substr($string, 0, 20);
$endPoint = strrpos($stringCut, ' ');
//if the string doesn't contain any space then it will cut without word basis.
$string = $endPoint? substr($stringCut, 0, $endPoint) : substr($stringCut, 0);
// $string .= "<a href='./read_complete_email/$email->email_id'>...More</a>";
$string .= "<span class='read_more' data-sale='$list->visitor_id' value='$list->visitor_id'><a href='#' >...More</a></span>";
}
echo $string;
?>
</td>
</tr>
<?php $count=$count+1; ?>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
<!-- right col -->
</div>
<!-- /.row (main row) -->
</section>
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script>
$(document).ready(function(){
$.get("{{ url('count_categories') }}",function(response){
$('#count_categories').text(response);
});
$.get("{{ url('count_products') }}",function(response){
$('#count_products').text(response);
});
$.get("{{ url('count_users') }}",function(response){
$('#count_users').text(response);
});
$.get("{{ url('count_orders') }}",function(response){
$('#count_orders').text(response);
});
$.get("{{ url('count_sms') }}",function(response){
$('#count_sms').text(response);
});
$.get("{{ url('count_email_subscribers') }}",function(response){
$('#count_email_subscribers').text(response);
});
$.get("{{ url('count_email_unsubscribers') }}",function(response){
$('#count_email_unsubscribers').text(response);
});
$.get("{{ url('count_email_sents') }}",function(response){
$('#count_email_sents').text(response);
});
});
</script>
<script>
$(document).ready(function(){
var flag= $('#hidden_modal_flag').val();
if(flag==1){
swal("Succesful!","SMS Subscription is Done");
}
});
</script>
<script>
$(document).ready(function(){
var flag= $('#hidden_modal_flag2').val();
if(flag==1){
swal("Successful!","Password Changed");
}
});
</script>
@endsection
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]