-
Notifications
You must be signed in to change notification settings - Fork 2
/
Untitled-1
118 lines (98 loc) · 2.13 KB
/
Untitled-1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
@extends('layouts.users')
@section('title')
Payments
@endsection
@section('tabs1')
<div id="tabs-4">
<div class="container">
<div class="row">
<div class="col-12 recharge">
<h5>Recharge Balance</h5>
{!! Form::open(['method'=>'POST','action'=>"UserContant@payments"]) !!}
<div class="row">
<div class="col-lg-4 col-12">
<div class="input-group">
<span class="input-group-addon">
<label>Card</label>
</span>
<input type="text" class="form-control" name="number"
aria-label="Text input with checkbox" placeholder="#####">
</div>
</div>
<div class="col-lg-8 col-12">
<div class="input-group">
<span class="input-group-addon">
<label>bKash</label>
</span>
<input type="text" class="form-control" placeholder="Phone Number">
<input type="text" class="form-control" placeholder="Transection ID">
<button type="submit" class="btn">Submit</button>
</div>
</div>
</div>
{!! Form::close() !!}
@if(Session::has('invalid'))
<script>
$.confirm({
title: '<i class="fa fa-exclamation-triangle" style="color: red" aria-hidden="true"> Sorry!</i>',
content: '<strong>Invalid Card Sequence <br><small>Call 8585 for help</small> </strong>',
type: 'red',
typeAnimated: true,
buttons: {
tryAgain: {
text: 'Try again',
btnClass: 'btn-red',
action: function () {
}
},
close: function () {
}
}
});
</script>
@endif
</div>
<div class="col-12">
<div class="widget-title">
<h5>Current Balance: {{$balance}} Taka</h5>
<!--<span class="label label-info"></span>-->
</div>
</div>
<div class="col-12">
<div class="">
<table class="table table-bordered table-striped table-hover">
<thead>
<tr>
<th>Type</th>
<th>Debit (Taka)</th>
<th>Credit (Taka)</th>
<th>Balance (Taka)</th>
<th>Time</th>
</tr>
</thead>
<tbody>
@foreach($paymentTable as $paymentTable)
<tr>
<td class="b">{{$paymentTable->Type}}</td>
<td class="text-right">{{$paymentTable->Debit}}</td>
<td class="text-right">{{$paymentTable->Credit}}</td>
<td class="text-right">{{$paymentTable->Balance}}</td>
<td>
<?php
$defaultTimeZone = 'UTC';
$date = date_create($paymentTable->created_at);
echo date_format($date, 'l d-m-y');
?>
</td>
</tr>
@endforeach
<tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
@endsection