first commit
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">{{ $titleModal }}</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-1">
|
||||
<label class="control-label">SĐT: </label>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="kt-form__group--inline">
|
||||
<label>
|
||||
<select class="form-control sdt{{ isset($account) ? "update" : '' }}">
|
||||
@foreach($accountsMomo as $accountMomo)
|
||||
<option {{ isset($account) && $account->sdt == $accountMomo['sdt'] ? "selected" : '' }} value="{{$accountMomo['sdt']}}">{{$accountMomo['sdt']}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</label>
|
||||
{{-- <input class="form-control input-mocchoi-{{ $setting['id'] }}" value="{{ $setting['mocchoi'] }}"/>--}}
|
||||
</div>
|
||||
<div class="d-md-none kt-margin-b-10"></div>
|
||||
</div>
|
||||
<div class="col-sm-1">
|
||||
<label class="control-label">Trò chơi: </label>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="kt-form__group--inline">
|
||||
<label>
|
||||
<select class="form-control type{{ isset($account) ? "update" : '' }}">
|
||||
@foreach($types as $type => $label)
|
||||
<option value="{{$type}}" {{ isset($account) && $account->type == $type ? "selected" : '' }}>{{$label}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</label>
|
||||
{{-- <input class="form-control input-mocchoi-{{ $setting['id'] }}" value="{{ $setting['mocchoi'] }}"/>--}}
|
||||
</div>
|
||||
<div class="d-md-none kt-margin-b-10"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-1">
|
||||
<label class="control-label">Min: </label>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="kt-form__group--inline">
|
||||
<label>
|
||||
<input class="form-control min{{ isset($account) ? "update" : '' }}" value="{{ isset($account) ? $account->min : '' }}" placeholder="30000"/>
|
||||
</label>
|
||||
</div>
|
||||
<div class="d-md-none kt-margin-b-10"></div>
|
||||
</div>
|
||||
<div class="col-sm-1">
|
||||
<label class="control-label">Max: </label>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="kt-form__group--inline">
|
||||
<label>
|
||||
<input class="form-control max{{ isset($account) ? "update" : '' }}" value="{{ isset($account) ? $account->max : '' }}" placeholder="3000000"/>
|
||||
</label>
|
||||
{{-- <input class="form-control input-mocchoi-{{ $setting['id'] }}" value="{{ $setting['mocchoi'] }}"/>--}}
|
||||
</div>
|
||||
<div class="d-md-none kt-margin-b-10"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@if(isset($account))
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Đóng</button>
|
||||
<button type="button" class="btn btn-primary" onclick="UpdateAccountLevel({{ $account->id }})">Cập nhật</button>
|
||||
</div>
|
||||
@endif
|
205
resources/views/AdminPage/AccountLevelMoney/index.blade.php
Normal file
205
resources/views/AdminPage/AccountLevelMoney/index.blade.php
Normal file
@@ -0,0 +1,205 @@
|
||||
@extends('layouts.admin')
|
||||
|
||||
@section('style')
|
||||
<!-- DataTables -->
|
||||
<link rel="stylesheet" href="https://adminlte.io/themes/AdminLTE/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css">
|
||||
@endsection
|
||||
|
||||
@section('script')
|
||||
|
||||
@if (\Session::has('message'))
|
||||
<script>
|
||||
swal("Thông báo", "{{ \Session::get('message') }}", "{{ \Session::get('status') }}");
|
||||
</script>
|
||||
@endif
|
||||
|
||||
<script src="https://adminlte.io/themes/AdminLTE/bower_components/jquery/dist/jquery.min.js"></script>
|
||||
<script src="https://adminlte.io/themes/AdminLTE/bower_components/datatables.net/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://adminlte.io/themes/AdminLTE/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
|
||||
<script>
|
||||
$(function () {
|
||||
$('#my-table').DataTable({
|
||||
'paging': true,
|
||||
'lengthChange': true,
|
||||
'searching': true,
|
||||
'ordering': true,
|
||||
'info': true,
|
||||
'autoWidth': true
|
||||
})
|
||||
})
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
mark_offset($('.mark-offset'));
|
||||
});
|
||||
|
||||
function mark_offset(jquery_elements, attribute_name) {
|
||||
var offset = 1;
|
||||
jquery_elements.each(function () {
|
||||
if (attribute_name == undefined) {
|
||||
$(this).html(offset);
|
||||
} else {
|
||||
$(this).attr(attribute_name, offset);
|
||||
}
|
||||
|
||||
offset += 1;
|
||||
});
|
||||
}
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
function addAccountLevels() {
|
||||
let form = $('.form_create');
|
||||
let data = {};
|
||||
data.sdt = form.find('.sdt').first().val();
|
||||
data.type = form.find('.type').first().val();
|
||||
data.min = form.find('.min').first().val();
|
||||
data.max = form.find('.max').first().val();
|
||||
$.ajax({
|
||||
url: '{{route('admin_level_money.store')}}',
|
||||
type: "POST",
|
||||
data: data,
|
||||
success: function (data) {
|
||||
if (data.status == 2) {
|
||||
swal(data.message, "", 'error');
|
||||
} else {
|
||||
location.reload();
|
||||
}
|
||||
},
|
||||
|
||||
error: function () {
|
||||
swal("Vui lòng thử lại", "", 'errors');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function showEdit(id) {
|
||||
$.ajax({
|
||||
url: '{{route('admin_level_money.edit')}}',
|
||||
type: "POST",
|
||||
data: {'id': id},
|
||||
success: function (data) {
|
||||
if (data.status == 2) {
|
||||
swal(data.message, 'errors');
|
||||
} else {
|
||||
$('.form_update').html(data);
|
||||
}
|
||||
},
|
||||
|
||||
error: function () {
|
||||
swal("Vui lòng thử lại", 'errors');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function UpdateAccountLevel(id) {
|
||||
let form = $('.form_update');
|
||||
let data = {};
|
||||
data.id = id;
|
||||
data.sdt = form.find('.sdtupdate').first().val();
|
||||
data.type = form.find('.typeupdate').first().val();
|
||||
data.min = form.find('.minupdate').first().val();
|
||||
data.max = form.find('.maxupdate').first().val();
|
||||
$.ajax({
|
||||
url: '{{route('admin_level_money.update')}}',
|
||||
type: "POST",
|
||||
data: data,
|
||||
success: function (data) {
|
||||
if (data.status == 2) {
|
||||
swal(data.message, "", 'error');
|
||||
} else {
|
||||
swal("Cập nhật dữ liệu thành công", "", 'success');
|
||||
$('.row_' + id).replaceWith(data);
|
||||
mark_offset($('.mark-offset'));
|
||||
$("#modalUpdate .close").click()
|
||||
}
|
||||
},
|
||||
|
||||
error: function () {
|
||||
swal("Vui lòng thử lại", 'errors');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function deleteAccount(id) {
|
||||
$.ajax({
|
||||
url: '{{route('admin_level_money.delete')}}',
|
||||
type: "POST",
|
||||
data: {id: id},
|
||||
success: function (data) {
|
||||
if (data.status == 2) {
|
||||
swal(data.message, 'errors');
|
||||
} else {
|
||||
swal("Cập nhật dữ liệu thành công", 'success');
|
||||
$('.row_' + id).remove();
|
||||
mark_offset($('.mark-offset'));
|
||||
}
|
||||
},
|
||||
|
||||
error: function () {
|
||||
swal("Vui lòng thử lại", 'errors');
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="modal fade" id="modalCreate" tabindex="-1" aria-labelledby="modalCreateLabel" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content form_create">
|
||||
@include('AdminPage.AccountLevelMoney.form_template')
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Đóng</button>
|
||||
<button type="button" class="btn btn-primary" onclick="addAccountLevels()">Thêm</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal fade" id="modalUpdate" tabindex="-1" aria-labelledby="modalUpdateLabel" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content form_update">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<div style="float: left;">
|
||||
<h3 class="box-title">
|
||||
Quản lý hạn mức sđt
|
||||
</h3>
|
||||
</div>
|
||||
<div style="float: right;">
|
||||
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalCreate">
|
||||
Thêm
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
|
||||
<div class="table-responsive">
|
||||
<table id="my-table" class="table table-bordered table-hover">
|
||||
<thead>
|
||||
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>SĐT</th>
|
||||
<th>Trò chơi</th>
|
||||
<th>Min</th>
|
||||
<th>Max</th>
|
||||
<th>Trạng thái</th>
|
||||
<th>CHỨC NĂNG</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@foreach($accounts as $account)
|
||||
@include('AdminPage.AccountLevelMoney.row')
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
23
resources/views/AdminPage/AccountLevelMoney/row.blade.php
Normal file
23
resources/views/AdminPage/AccountLevelMoney/row.blade.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<tr class="row_{{ $account['id'] }}">
|
||||
<td class="mark-offset"></td>
|
||||
<td>{{ $account['sdt'] }}</td>
|
||||
<td>{{ $account['game'] }}</td>
|
||||
<td>{{ number_format($account['min']) }}</td>
|
||||
<td>{{ number_format($account['max']) }}</td>
|
||||
<td> <button class="btn btn-{{ $account['class_status'] }} btn-sm">
|
||||
{{ $account['text_status'] }}
|
||||
</button></td>
|
||||
<td>
|
||||
<a href="javascript:;" onclick="deleteAccount({{ $account['id'] }})">
|
||||
<button class="btn btn-danger btn-sm">
|
||||
Xóa
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="javascript:;" onclick="showEdit({{ $account['id'] }})">
|
||||
<button class="btn btn-success btn-sm" data-toggle="modal" data-target="#modalUpdate">
|
||||
Chỉnh sửa
|
||||
</button>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
68
resources/views/AdminPage/addsdt.blade.php
Normal file
68
resources/views/AdminPage/addsdt.blade.php
Normal file
@@ -0,0 +1,68 @@
|
||||
@extends('layouts.admin')
|
||||
|
||||
@section('style')
|
||||
|
||||
@endsection
|
||||
|
||||
@section('script')
|
||||
|
||||
@if (\Session::has('message'))
|
||||
<script>
|
||||
swal("Thông báo", "{{ \Session::get('message') }}", "{{ \Session::get('status') }}");
|
||||
</script>
|
||||
@endif
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="box">
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<form action="{{ route('admin_quanlysdt_add_action') }}" method="POST">
|
||||
@csrf
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Số điện thoại:</label>
|
||||
<input class="form-control" name="sdt" value="">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Mật khẩu:</label>
|
||||
<input class="form-control" name="password" value="">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-12"><br /></div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Token WEB2M:</label>
|
||||
<input class="form-control" name="token" value="">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Giới hạn:</label>
|
||||
<input class="form-control" name="gioihan" value="">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Bảo trì:</label>
|
||||
<select class="form-control" name="status">
|
||||
<option value="1" selected>Không</option>
|
||||
<option value="2">Có</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Web API</label>
|
||||
<select class="form-control" name="webapi">
|
||||
<option value="1" selected>Web 2B</option>
|
||||
<option value="2">Thuê API</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-12 col-md-12"><br /></div>
|
||||
|
||||
<div class="col-12 col-md-12">
|
||||
<button class="btn btn-info" style="width: 100%;">Thêm</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
55
resources/views/AdminPage/configmessage.blade.php
Normal file
55
resources/views/AdminPage/configmessage.blade.php
Normal file
@@ -0,0 +1,55 @@
|
||||
@extends('layouts.admin')
|
||||
|
||||
@section('style')
|
||||
|
||||
@endsection
|
||||
|
||||
@section('script')
|
||||
@if ($errors->any())
|
||||
<script>
|
||||
swal("Thông báo", "{{ $errors->first() }}", "error");
|
||||
</script>
|
||||
@endif
|
||||
|
||||
@if (\Session::has('message'))
|
||||
<script>
|
||||
swal("Thông báo", "{{ \Session::get('message') }}", "{{ \Session::get('status') }}");
|
||||
</script>
|
||||
@endif
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="box">
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<form action="{{ route('admin_config_message_action') }}" method="POST">
|
||||
@csrf
|
||||
<div class="row">
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Trả thưởng:</label>
|
||||
<input type="text" class="form-control" name="trathuong" value="{{ $GetConfigMessageMomo['0']['message'] }}">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Trả thưởng top tuần:</label>
|
||||
<input type="text" class="form-control" name="thuongtoptuan" value="{{ $GetConfigMessageMomo['1']['message'] }}">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-12"><br /></div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Trả thưởng nổ hũ:</label>
|
||||
<input type="text" class="form-control" name="nohuu" value="{{ $GetConfigMessageMomo['2']['message'] }}">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-12"><br /></div>
|
||||
|
||||
<div class="col-12 col-md-12">
|
||||
<button class="btn btn-info" style="width: 100%;">Lưu lại</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
54
resources/views/AdminPage/doimatkhau.blade.php
Normal file
54
resources/views/AdminPage/doimatkhau.blade.php
Normal file
@@ -0,0 +1,54 @@
|
||||
@extends('layouts.admin')
|
||||
|
||||
@section('style')
|
||||
|
||||
@endsection
|
||||
|
||||
@section('script')
|
||||
@if ($errors->any())
|
||||
<script>
|
||||
swal("Thông báo", "{{ $errors->first() }}", "error");
|
||||
</script>
|
||||
@endif
|
||||
|
||||
@if (\Session::has('message'))
|
||||
<script>
|
||||
swal("Thông báo", "{{ \Session::get('message') }}", "{{ \Session::get('status') }}");
|
||||
</script>
|
||||
@endif
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="box">
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<form action="{{ route('admin_doi_mat_khau_action') }}" method="POST">
|
||||
@csrf
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Mật khẩu hiện tại:</label>
|
||||
<input type="password" class="form-control" name="old_password">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Mật khẩu mới:</label>
|
||||
<input type="password" class="form-control" name="password">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-12"><br /></div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Nhập lại mật khẩu mới:</label>
|
||||
<input type="password" class="form-control" name="password_confirmation">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-12"><br /></div>
|
||||
|
||||
<div class="col-12 col-md-12">
|
||||
<button class="btn btn-info" style="width: 100%;">Đổi mật khẩu</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
68
resources/views/AdminPage/editsdt.blade.php
Normal file
68
resources/views/AdminPage/editsdt.blade.php
Normal file
@@ -0,0 +1,68 @@
|
||||
@extends('layouts.admin')
|
||||
|
||||
@section('style')
|
||||
|
||||
@endsection
|
||||
|
||||
@section('script')
|
||||
|
||||
@if (\Session::has('message'))
|
||||
<script>
|
||||
swal("Thông báo", "{{ \Session::get('message') }}", "{{ \Session::get('status') }}");
|
||||
</script>
|
||||
@endif
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="box">
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<form action="{{ route('admin_quanlysdt_edit_action') }}" method="POST">
|
||||
@csrf
|
||||
<input type="hidden" name="id" value="{{ $GetAccountMomo->id }}">
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Số điện thoại:</label>
|
||||
<input class="form-control" name="sdt" value="{{ $GetAccountMomo->sdt }}">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Mật khẩu:</label>
|
||||
<input class="form-control" name="password" value="{{ $GetAccountMomo->password }}">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-12"><br /></div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Token WEB2M:</label>
|
||||
<input class="form-control" name="token" value="{{ $GetAccountMomo->token }}">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Giới hạn:</label>
|
||||
<input class="form-control" name="gioihan" value="{{ $GetAccountMomo->gioihan }}">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Bảo trì:</label>
|
||||
<select class="form-control" name="status">
|
||||
@if($GetAccountMomo->status == 1)
|
||||
<option value="1" selected>Không</option>
|
||||
<option value="2">Có</option>
|
||||
@else
|
||||
<option value="2" selected>Có</option>
|
||||
<option value="1">Không</option>
|
||||
@endif
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-12"><br /></div>
|
||||
|
||||
<div class="col-12 col-md-12">
|
||||
<button class="btn btn-info" style="width: 100%;">Lưu lại</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
209
resources/views/AdminPage/home.blade.php
Normal file
209
resources/views/AdminPage/home.blade.php
Normal file
@@ -0,0 +1,209 @@
|
||||
@extends('layouts.admin')
|
||||
|
||||
@section('style')
|
||||
|
||||
@endsection
|
||||
|
||||
@section('script')
|
||||
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-red"><i class="fas fa-award"></i></span>
|
||||
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">TỔNG DOANH THU</span>
|
||||
<span class="info-box-number">{{ number_format($doanhthu['tongdoanhthu']) }}<small> vnđ</small></span>
|
||||
</div>
|
||||
<!-- /.info-box-content -->
|
||||
</div>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-red"><i class="fas fa-calendar-day"></i></span>
|
||||
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">DOANH THU HÔM NAY</span>
|
||||
<span class="info-box-number">{{ number_format($doanhthu['doanhthuhomnay']) }}<small> vnđ</small></span>
|
||||
</div>
|
||||
<!-- /.info-box-content -->
|
||||
</div>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-red"><i class="fas fa-calendar-day"></i></span>
|
||||
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">DOANH THU THÁNG NẦY</span>
|
||||
<span class="info-box-number">{{ number_format($doanhthu['doanhthuthangnay']) }}<small> vnđ</small></span>
|
||||
</div>
|
||||
<!-- /.info-box-content -->
|
||||
</div>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-red"><i class="fas fa-calendar-day"></i></span>
|
||||
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">DOANH THU NĂM NAY</span>
|
||||
<span class="info-box-number">{{ number_format($doanhthu['doanhthunamnay']) }}<small> vnđ</small></span>
|
||||
</div>
|
||||
<!-- /.info-box-content -->
|
||||
</div>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-aqua"><i class="far fa-hand-scissors"></i></span>
|
||||
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">TỔNG LƯỢT CHƠI CHẴN LẺ</span>
|
||||
<span class="info-box-number">{{ number_format($tongluotchoi['chanle']) }}<small> lượt</small></span>
|
||||
</div>
|
||||
<!-- /.info-box-content -->
|
||||
</div>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-aqua"><i class="fas fa-dice"></i></span>
|
||||
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">TỔNG LƯỢT CHƠI TÀI XỈU</span>
|
||||
<span class="info-box-number">{{ number_format($tongluotchoi['taixiu']) }}<small> lượt</small></span>
|
||||
</div>
|
||||
<!-- /.info-box-content -->
|
||||
</div>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-aqua"><i class="fas fa-hand-scissors"></i></span>
|
||||
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">TỔNG LƯỢT CHƠI CHẴN LẺ 2</span>
|
||||
<span class="info-box-number">{{ number_format($tongluotchoi['chanle2']) }}<small> lượt</small></span>
|
||||
</div>
|
||||
<!-- /.info-box-content -->
|
||||
</div>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-aqua"><i class="fas fa-cubes"></i></span>
|
||||
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">TỔNG LƯỢT CHƠI GẤP 3</span>
|
||||
<span class="info-box-number">{{ number_format($tongluotchoi['gap3']) }}<small> lượt</small></span>
|
||||
</div>
|
||||
<!-- /.info-box-content -->
|
||||
</div>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-aqua"><i class="fas fa-sort-numeric-up"></i></span>
|
||||
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">TỔNG LƯỢT CHƠI TỔNG 3 SỐ</span>
|
||||
<span class="info-box-number">{{ number_format($tongluotchoi['tong3so']) }}<small> lượt</small></span>
|
||||
</div>
|
||||
<!-- /.info-box-content -->
|
||||
</div>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-aqua"><i class="fas fa-percentage"></i></span>
|
||||
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">TỔNG LƯỢT CHƠI TỔNG 1 PHẦN 3</span>
|
||||
<span class="info-box-number">{{ number_format($tongluotchoi['1phan3']) }}<small> lượt</small></span>
|
||||
</div>
|
||||
<!-- /.info-box-content -->
|
||||
</div>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-yellow"><i class="fas fa-bomb"></i></span>
|
||||
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">TỔNG LƯỢT CHƠI NỔ HŨ</span>
|
||||
<span class="info-box-number">{{ number_format($tongluotchoi['nohu']) }}<small> lượt</small></span>
|
||||
</div>
|
||||
<!-- /.info-box-content -->
|
||||
</div>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-yellow"><i class="fab fa-joomla"></i></span>
|
||||
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">TỔNG DOANH THU NỔ HŨ</span>
|
||||
<span class="info-box-number">{{ number_format($doanhthu['nohu']) }}<small> vnđ</small></span>
|
||||
</div>
|
||||
<!-- /.info-box-content -->
|
||||
</div>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-yellow"><i class="fas fa-wine-glass-alt"></i></span>
|
||||
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">TIỀN TRONG HŨ</span>
|
||||
<span class="info-box-number">{{ number_format($thongtin['tientronghu']) }}<small> vnđ</small></span>
|
||||
</div>
|
||||
<!-- /.info-box-content -->
|
||||
</div>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
|
||||
</div>
|
||||
@endsection
|
67
resources/views/AdminPage/lichsubank.blade.php
Normal file
67
resources/views/AdminPage/lichsubank.blade.php
Normal file
@@ -0,0 +1,67 @@
|
||||
@extends('layouts.admin')
|
||||
|
||||
@section('style')
|
||||
<!-- DataTables -->
|
||||
<link rel="stylesheet" href="https://adminlte.io/themes/AdminLTE/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css">
|
||||
@endsection
|
||||
|
||||
@section('script')
|
||||
<script src="https://adminlte.io/themes/AdminLTE/bower_components/jquery/dist/jquery.min.js"></script>
|
||||
<script src="https://adminlte.io/themes/AdminLTE/bower_components/datatables.net/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://adminlte.io/themes/AdminLTE/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
|
||||
<script>
|
||||
$(function () {
|
||||
$('#my-table').DataTable({
|
||||
'paging' : true,
|
||||
'lengthChange': true,
|
||||
'searching' : true,
|
||||
'ordering' : false,
|
||||
'info' : true,
|
||||
'autoWidth' : true
|
||||
})
|
||||
})
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">
|
||||
{{ $GetSetting->game }}
|
||||
</h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
|
||||
<div class="table-responsive">
|
||||
<table id="my-table" class="table table-bordered table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>SĐT BANK</th>
|
||||
<th>SĐT NGƯỜI NHẬN</th>
|
||||
<th>SỐ TIỀN</th>
|
||||
<th>NỘI DUNG</th>
|
||||
<th>RESPONSE WEB2M</th>
|
||||
<th>TIME</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@foreach($getLichSuBank as $row)
|
||||
<tr>
|
||||
<td>{{ $row['sdtbank'] }}</td>
|
||||
<td>{{ $row['nguoinhan'] }}</td>
|
||||
<td>{{ number_format($row['sotien']) }}đ</td>
|
||||
<td>{{ $row['noidung'] }}</td>
|
||||
<td>{{ json_encode( json_decode($row['response']), JSON_UNESCAPED_UNICODE ) }}</td>
|
||||
<td>{{ $row['created_at'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!-- /.box-body -->
|
||||
</div>
|
||||
@endsection
|
87
resources/views/AdminPage/lichsuchoi.blade.php
Normal file
87
resources/views/AdminPage/lichsuchoi.blade.php
Normal file
@@ -0,0 +1,87 @@
|
||||
@extends('layouts.admin')
|
||||
|
||||
@section('style')
|
||||
<!-- DataTables -->
|
||||
<link rel="stylesheet" href="https://adminlte.io/themes/AdminLTE/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css">
|
||||
@endsection
|
||||
|
||||
@section('script')
|
||||
<script src="https://adminlte.io/themes/AdminLTE/bower_components/jquery/dist/jquery.min.js"></script>
|
||||
<script src="https://adminlte.io/themes/AdminLTE/bower_components/datatables.net/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://adminlte.io/themes/AdminLTE/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
|
||||
<script>
|
||||
$(function () {
|
||||
$('#my-table').DataTable({
|
||||
'paging' : true,
|
||||
'lengthChange': true,
|
||||
'searching' : true,
|
||||
'ordering' : false,
|
||||
'info' : true,
|
||||
'autoWidth' : true
|
||||
})
|
||||
})
|
||||
</script>
|
||||
|
||||
@if (\Session::has('message'))
|
||||
<script>
|
||||
swal("Thông báo", "{{ \Session::get('message') }}", "{{ \Session::get('status') }}");
|
||||
</script>
|
||||
@endif
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">
|
||||
{{ $GetSetting->game }}
|
||||
</h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
|
||||
<div class="table-responsive">
|
||||
<table id="my-table" class="table table-bordered table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>MOMO NHẬN</th>
|
||||
<th>SĐT</th>
|
||||
<th>MÃ GIAO DỊCH</th>
|
||||
<th>TIỀN CƯỢC</th>
|
||||
<th>TIỀN NHẬN</th>
|
||||
<th>NỘI DUNG</th>
|
||||
<th>KẾT QUẢ</th>
|
||||
<th>TRẠNG THÁI</th>
|
||||
<th>TIME</th>
|
||||
<th>THAO TÁC</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@foreach($GetLichSuChoiMomo as $row)
|
||||
<tr>
|
||||
<td>{{ $row['sdt_get'] }}</td>
|
||||
<td>{{ $row['sdt'] }}</td>
|
||||
<td>{{ $row['magiaodich'] }}</td>
|
||||
<td>{{ number_format($row['tiencuoc']) }}đ</td>
|
||||
<td>{{ number_format($row['tiennhan']) }}đ</td>
|
||||
<td>{{ $row['noidung'] }}</td>
|
||||
<td><button class="btn btn-{{ $row['kq']['class'] }} btn-sm" disabled>{{ $row['kq']['text'] }}</button></td>
|
||||
<td><button class="btn btn-{{ $row['tt']['class'] }} btn-sm" disabled>{{ $row['tt']['text'] }}</button></td>
|
||||
<td>{{ $row['created_at'] }}</td>
|
||||
<td>
|
||||
<form action="{{ route('admin.setstatus') }}" method="POST">
|
||||
@csrf
|
||||
<input type="hidden" name="id" value="{{ $row['id'] }}">
|
||||
<button class="btn btn-success" type="submit" name="status" value="3">Hoàn tất</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!-- /.box-body -->
|
||||
</div>
|
||||
@endsection
|
96
resources/views/AdminPage/login.blade.php
Normal file
96
resources/views/AdminPage/login.blade.php
Normal file
@@ -0,0 +1,96 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="ID Thiên Ân">
|
||||
<title>{{ $GetSetting->title }} | {{ $GetSetting->namepage }}</title>
|
||||
<meta name="description" content="{{ $GetSetting->description }}" />
|
||||
<meta property="og:url" content="{{ url()->current() }}">
|
||||
<meta property="og:type" content="article">
|
||||
<meta property="og:title" content="{{ $GetSetting->description }}">
|
||||
<meta property="og:description" content="{{ $GetSetting->description }}">
|
||||
<link rel="shortcut icon" href="{{ asset('image/favicon.png') }}">
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
|
||||
<!-- Font Awesome -->
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
||||
<!-- Ionicons -->
|
||||
<link rel="stylesheet" href="{{ asset('/css/ionicons.min.css') }}">
|
||||
<!-- jvectormap -->
|
||||
<link rel="stylesheet" href="{{ asset('/css/jquery-jvectormap.css') }}">
|
||||
<!-- Theme style -->
|
||||
<link rel="stylesheet" href="{{ asset('/css/AdminLTE.min.css') }}">
|
||||
<!-- AdminLTE Skins. Choose a skin from the css/skins
|
||||
folder instead of downloading all of them to reduce the load. -->
|
||||
<link rel="stylesheet" href="{{ asset('/css/_all-skins.min.css') }}">
|
||||
<link rel="stylesheet" href="{{ asset('/css/blue.css') }}">
|
||||
|
||||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="{{ asset('/js/html5shiv.min.js') }}"></script>
|
||||
<script src="{{ asset('/js/respond.min.js') }}"></script>
|
||||
<![endif]-->
|
||||
|
||||
<!-- Google Font -->
|
||||
<link rel="stylesheet"
|
||||
href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
|
||||
</head>
|
||||
<body class="hold-transition skin-blue sidebar-mini">
|
||||
<div id="main" class="wrapper">
|
||||
<div class="login-box">
|
||||
<div class="login-logo">
|
||||
<a href="{{ route('login') }}" style="color: #fff;"><b>Admin</b>LTE</a>
|
||||
</div>
|
||||
<!-- /.login-logo -->
|
||||
<div class="login-box-body">
|
||||
<p class="login-box-msg">Đăng nhập để tiếp tục</p>
|
||||
|
||||
<form action="{{ route('admin_login_action') }}" method="post">
|
||||
@csrf
|
||||
<div class="form-group has-feedback">
|
||||
<input type="email" class="form-control" placeholder="Email" name="email">
|
||||
<span class="glyphicon glyphicon-envelope form-control-feedback"></span>
|
||||
</div>
|
||||
<div class="form-group has-feedback">
|
||||
<input type="password" class="form-control" placeholder="Mật khẩu" name="password">
|
||||
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-8">
|
||||
<div class="checkbox icheck">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
<div class="col-xs-4">
|
||||
<button type="submit" class="btn btn-primary btn-block btn-flat">Đăng nhập</button>
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<!-- /.social-auth-links -->
|
||||
|
||||
</div>
|
||||
<!-- /.login-box-body -->
|
||||
</div>
|
||||
</div>
|
||||
<!--/Footer-->
|
||||
<script src="{{ asset('/js/sweetalert.min.js') }}"></script>
|
||||
|
||||
@if ($errors->any())
|
||||
<script>
|
||||
swal("Thông báo", "{{ $errors->first() }}", "error");
|
||||
</script>
|
||||
@endif
|
||||
|
||||
@if (\Session::has('message'))
|
||||
<script>
|
||||
swal("Thông báo", "{{ \Session::get('message') }}", "{{ \Session::get('status') }}");
|
||||
</script>
|
||||
@endif
|
||||
|
||||
</body>
|
||||
</html>
|
107
resources/views/AdminPage/quanlysdt.blade.php
Normal file
107
resources/views/AdminPage/quanlysdt.blade.php
Normal file
@@ -0,0 +1,107 @@
|
||||
@extends('layouts.admin')
|
||||
|
||||
@section('style')
|
||||
<!-- DataTables -->
|
||||
<link rel="stylesheet" href="https://adminlte.io/themes/AdminLTE/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css">
|
||||
@endsection
|
||||
|
||||
@section('script')
|
||||
|
||||
@if (\Session::has('message'))
|
||||
<script>
|
||||
swal("Thông báo", "{{ \Session::get('message') }}", "{{ \Session::get('status') }}");
|
||||
</script>
|
||||
@endif
|
||||
|
||||
<script src="https://adminlte.io/themes/AdminLTE/bower_components/jquery/dist/jquery.min.js"></script>
|
||||
<script src="https://adminlte.io/themes/AdminLTE/bower_components/datatables.net/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://adminlte.io/themes/AdminLTE/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
|
||||
<script>
|
||||
$(function () {
|
||||
$('#my-table').DataTable({
|
||||
'paging' : true,
|
||||
'lengthChange': true,
|
||||
'searching' : true,
|
||||
'ordering' : true,
|
||||
'info' : true,
|
||||
'autoWidth' : true
|
||||
})
|
||||
})
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<div style="float: left;">
|
||||
<h3 class="box-title">
|
||||
{{ $GetSetting->desc }}
|
||||
</h3>
|
||||
</div>
|
||||
<div style="float: right;">
|
||||
<a href="{{ route('admin_quanlysdt_add') }}">
|
||||
<button class="btn btn-info">
|
||||
Thêm số điện thoại
|
||||
</button>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
|
||||
<div class="table-responsive">
|
||||
<table id="my-table" class="table table-bordered table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>TÊN</th>
|
||||
<th>SỐ TIỀN</th>
|
||||
<th>SĐT</th>
|
||||
<th>MẬT KHẨU</th>
|
||||
<th>TOKEN</th>
|
||||
<th>GIỚI HẠN</th>
|
||||
<th>STATUS</th>
|
||||
<th>Số lần bank hôm nay</th>
|
||||
<th>TIME</th>
|
||||
<th>CHỨC NĂNG</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($GetAccountMomo as $row)
|
||||
<tr>
|
||||
<td>{{ $row->id }}</td>
|
||||
<td>{{ $row->name }}</td>
|
||||
<td>{{ number_format($row->amount) }}đ</td>
|
||||
<td>{{ $row->sdt }}</td>
|
||||
<td>{{ $row->password }}</td>
|
||||
<td>{{ $row->token }}</td>
|
||||
<td>{{ number_format($row->gioihan) }}đ</td>
|
||||
<td>
|
||||
<button class="btn btn-{{ $row->status_class }} btn-sm">
|
||||
{{ $row->status_text }}
|
||||
</button>
|
||||
</td>
|
||||
<td>{{ number_format($row['countbank']) }} lần</td>
|
||||
<td>{{ $row->created_at }}</td>
|
||||
<td>
|
||||
<a href="{{ route('admin_quanlysdt_delete', $row->id) }}">
|
||||
<button class="btn btn-danger btn-sm">
|
||||
Xóa
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="{{ route('admin_quanlysdt_edit', $row->id) }}">
|
||||
<button class="btn btn-success btn-sm">
|
||||
Chỉnh sửa
|
||||
</button>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!-- /.box-body -->
|
||||
</div>
|
||||
@endsection
|
244
resources/views/AdminPage/setting.blade.php
Normal file
244
resources/views/AdminPage/setting.blade.php
Normal file
@@ -0,0 +1,244 @@
|
||||
@extends('layouts.admin')
|
||||
|
||||
@section('style')
|
||||
|
||||
@endsection
|
||||
|
||||
@section('script')
|
||||
@if (\Session::has('message'))
|
||||
<script>
|
||||
swal("Thông báo", "{{ \Session::get('message') }}", "{{ \Session::get('status') }}");
|
||||
</script>
|
||||
@endif
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="box">
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<form action="{{ route('admin_setting_action') }}" method="POST">
|
||||
@csrf
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Tên trang:</label>
|
||||
<input class="form-control" name="title" value="{{ $GetSetting->title }}">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Mô tả:</label>
|
||||
<input class="form-control" name="description" value="{{ $GetSetting->description }}">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-12"><br /></div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Logo:</label>
|
||||
<input class="form-control" name="logo" value="{{ $GetSetting->logo }}">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Link video:</label>
|
||||
<input class="form-control" name="linkvideoyoutube" value="{{ $GetSetting->linkvideoyoutube }}">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-12"><br /></div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Zalo:</label>
|
||||
<input class="form-control" name="zalo" value="{{ $GetSetting->zalo }}">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Bảo trì:</label>
|
||||
<select class="form-control" name="baotri">
|
||||
@if($GetSetting->baotri == 0)
|
||||
<option value="0" selected>Không</option>
|
||||
<option value="1">Có</option>
|
||||
@else
|
||||
<option value="1" selected>Có</option>
|
||||
<option value="0">Không</option>
|
||||
@endif
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-12"><br /></div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Màu header:</label>
|
||||
<input type="color" class="form-control" name="color_header" value="{{ $GetSetting->color_header }}">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Màu table footer:</label>
|
||||
<input type="color" class="form-control" name="color_footer" value="{{ $GetSetting->color_footer }}">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-12"><br /></div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Màu table 1:</label>
|
||||
<input type="color" class="form-control" name="color_table" value="{{ $GetSetting->color_table }}">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Màu table 2:</label>
|
||||
<input type="color" class="form-control" name="color_table2" value="{{ $GetSetting->color_table2 }}">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-12"><br /></div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Bật / tắt game chẵn lẻ:</label>
|
||||
<select class="form-control" name="on_chanle">
|
||||
@if ($GetSetting->on_chanle == 1)
|
||||
<option value="1" selected>On</option>
|
||||
<option value="2">Off</option>
|
||||
@else
|
||||
<option value="2" selected>Off</option>
|
||||
<option value="1">On</option>
|
||||
@endif
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Bật / tắt game tài xỉu:</label>
|
||||
<select class="form-control" name="on_taixiu">
|
||||
@if ($GetSetting->on_taixiu == 1)
|
||||
<option value="1" selected>On</option>
|
||||
<option value="2">Off</option>
|
||||
@else
|
||||
<option value="2" selected>Off</option>
|
||||
<option value="1">On</option>
|
||||
@endif
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-12"><br /></div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Bật / tắt game chẵn lẻ 2:</label>
|
||||
<select class="form-control" name="on_chanle2">
|
||||
@if ($GetSetting->on_chanle2 == 1)
|
||||
<option value="1" selected>On</option>
|
||||
<option value="2">Off</option>
|
||||
@else
|
||||
<option value="2" selected>Off</option>
|
||||
<option value="1">On</option>
|
||||
@endif
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Bật / tắt game gấp 3:</label>
|
||||
<select class="form-control" name="on_gap3">
|
||||
@if ($GetSetting->on_gap3 == 1)
|
||||
<option value="1" selected>On</option>
|
||||
<option value="2">Off</option>
|
||||
@else
|
||||
<option value="2" selected>Off</option>
|
||||
<option value="1">On</option>
|
||||
@endif
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-12"><br /></div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Bật / tắt game tổng 3 số:</label>
|
||||
<select class="form-control" name="on_tong3so">
|
||||
@if ($GetSetting->on_tong3so == 1)
|
||||
<option value="1" selected>On</option>
|
||||
<option value="2">Off</option>
|
||||
@else
|
||||
<option value="2" selected>Off</option>
|
||||
<option value="1">On</option>
|
||||
@endif
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Bật / tắt game 1 phần 3:</label>
|
||||
<select class="form-control" name="on_1phan3">
|
||||
@if ($GetSetting->on_1phan3 == 1)
|
||||
<option value="1" selected>On</option>
|
||||
<option value="2">Off</option>
|
||||
@else
|
||||
<option value="2" selected>Off</option>
|
||||
<option value="1">On</option>
|
||||
@endif
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-12"><br /></div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Bật / tắt game nổ hũ:</label>
|
||||
<select class="form-control" name="on_nohu">
|
||||
@if ($GetSetting->on_nohu == 1)
|
||||
<option value="1" selected>On</option>
|
||||
<option value="2">Off</option>
|
||||
@else
|
||||
<option value="2" selected>Off</option>
|
||||
<option value="1">On</option>
|
||||
@endif
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Bật / tắt trả thưởng tuần:</label>
|
||||
<select class="form-control" name="on_trathuongtuan">
|
||||
@if ($GetSetting->on_trathuongtuan == 1)
|
||||
<option value="1" selected>On</option>
|
||||
<option value="2">Off</option>
|
||||
@else
|
||||
<option value="2" selected>Off</option>
|
||||
<option value="1">On</option>
|
||||
@endif
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Bật / tắt điểm danh nhận quà:</label>
|
||||
<select class="form-control" name="on_diemdanh">
|
||||
@if ($GetSetting->on_diemdanh == 1)
|
||||
<option value="1" selected>On</option>
|
||||
<option value="2">Off</option>
|
||||
@else
|
||||
<option value="2" selected>Off</option>
|
||||
<option value="1">On</option>
|
||||
@endif
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Bật / tắt điểm danh ngày:</label>
|
||||
<select class="form-control" name="on_diemdanh_ngay">
|
||||
@if ($GetSetting->on_diemdanh_ngay == 1)
|
||||
<option value="1" selected>On</option>
|
||||
<option value="2">Off</option>
|
||||
@else
|
||||
<option value="2" selected>Off</option>
|
||||
<option value="1">On</option>
|
||||
@endif
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-12"><br /></div>
|
||||
|
||||
<div class="col-12 col-md-12">
|
||||
<label>Script:</label>
|
||||
<textarea class="form-control" rows="10" name="script">{{
|
||||
$GetSetting->script
|
||||
}}</textarea>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="col-12 col-md-12"><br /></div>
|
||||
<div class="col-12 col-md-12">
|
||||
<button class="btn btn-info" style="width: 100%;">Lưu lại</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
83
resources/views/AdminPage/setting_diemdanh.blade.php
Normal file
83
resources/views/AdminPage/setting_diemdanh.blade.php
Normal file
@@ -0,0 +1,83 @@
|
||||
@extends('layouts.admin')
|
||||
|
||||
@section('style')
|
||||
|
||||
@endsection
|
||||
|
||||
@section('script')
|
||||
@if ($errors->any())
|
||||
<script>
|
||||
swal("Thông báo", "{{ $errors->first() }}", "error");
|
||||
</script>
|
||||
@endif
|
||||
|
||||
@if (\Session::has('message'))
|
||||
<script>
|
||||
swal("Thông báo", "{{ \Session::get('message') }}", "{{ \Session::get('status') }}");
|
||||
</script>
|
||||
@endif
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="box">
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<form action="{{ route($GetSetting->action) }}" method="POST">
|
||||
@csrf
|
||||
<input type="hidden" name="id" value="{{ $settingDiemdanh->id }}">
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Tiền thắng min(VNĐ):</label>
|
||||
<input class="form-control" name="money_min" value="{{ $settingDiemdanh->money_min }}">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Tiền thắng max(VNĐ):</label>
|
||||
<input class="form-control" name="money_max" value="{{ $settingDiemdanh->money_max }}">
|
||||
</div>
|
||||
<div class="col-12 col-md-12"><br/></div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Thời gian bắt đầu:</label>
|
||||
<input class="form-control" name="start_time" value="{{ $settingDiemdanh->start_time }}">
|
||||
|
||||
</div>
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Thời gian kết thúc:</label>
|
||||
<input class="form-control" name="end_time" value="{{ $settingDiemdanh->end_time }}">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-12"><br/></div>
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Tỉ lệ nguời chơi thắng(%):</label>
|
||||
<input class="form-control" name="win_rate" value="{{ $settingDiemdanh->win_rate }}">
|
||||
</div>
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Thời gian mỗi phiên điểm danh(giây): </label>
|
||||
<select class="form-control" name="time_each">
|
||||
@foreach($configTimeEach as $time)
|
||||
<option value="{{ $time }}" {{ $time == $settingDiemdanh->time_each ? "selected" : "" }}>{{ $time >= 86400 ? $time/86400 : ($time >= 3600 ? $time/3600 : $time/60) }} {{ $time >=86400 ? "ngày":($time >= 3600 ? "tiếng" : "phút") }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
{{-- <input class="form-control" name="time_each" value="{{ $settingDiemdanh->time_each }}">--}}
|
||||
</div>
|
||||
<div class="col-12 col-md-12"><br/></div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Tỉ lệ bot vào chơi(%)</label>
|
||||
<input class="form-control" name="bot_rate" value="{{ $settingDiemdanh->bot_rate }}">
|
||||
</div>
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Cài SDT Win</label>
|
||||
<input class="form-control" name="setphonewin" value="{{ $settingDiemdanh->setphonewin }}">
|
||||
</div>
|
||||
<div class="col-12 col-md-12"><br/></div>
|
||||
|
||||
<div class="col-12 col-md-12">
|
||||
<button class="btn btn-info" style="width: 100%;">Lưu lại</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
233
resources/views/AdminPage/setting_diemdanh_ngay.blade.php
Normal file
233
resources/views/AdminPage/setting_diemdanh_ngay.blade.php
Normal file
@@ -0,0 +1,233 @@
|
||||
@extends('layouts.admin')
|
||||
|
||||
@section('style')
|
||||
|
||||
@endsection
|
||||
|
||||
@section('script')
|
||||
@if ($errors->any())
|
||||
<script>
|
||||
swal("Thông báo", "{{ $errors->first() }}", "error");
|
||||
</script>
|
||||
@endif
|
||||
|
||||
@if (\Session::has('message'))
|
||||
<script>
|
||||
swal("Thông báo", "{{ \Session::get('message') }}", "{{ \Session::get('status') }}");
|
||||
</script>
|
||||
@endif
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="box">
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<!-- Repeater Html Start -->
|
||||
<div class="form-group form-group-last row">
|
||||
<div class="col-sm-2 pull-right">
|
||||
<a href="javascript:;" data-repeater-create="" class="btn btn-info"
|
||||
onclick="addFormRepeater(this.parentElement.parentElement.parentElement);">
|
||||
<i class="fa fa-plus"></i> Thêm
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@foreach($settings as $setting)
|
||||
<div class="form-group form-group-last form-template">
|
||||
<form enctype="multipart/form-data" role="form" method="POST" action=""
|
||||
class="kt-form form-setting" style="margin-top: 10px;">
|
||||
<div data-repeater-list="" class="col-sm-12">
|
||||
<div data-repeater-item class="form-group row align-items-center">
|
||||
<div class="col-sm-1">
|
||||
<label class="control-label"> Mốc chơi: </label>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="kt-form__group--inline">
|
||||
<input class="form-control input-mocchoi-{{ $setting['id'] }}" value="{{ $setting['mocchoi'] }}"/>
|
||||
</div>
|
||||
<div class="d-md-none kt-margin-b-10"></div>
|
||||
</div>
|
||||
<div class="col-sm-1">
|
||||
<label class="control-label"> Tiền nhận: </label>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="kt-form__group--inline">
|
||||
<div class="kt-form__control">
|
||||
<input type="text"
|
||||
value="{{ $setting['tiennhan'] }}"
|
||||
placeholder=""
|
||||
class="edit-template form-control input-tiennhan-{{ $setting['id'] }}"
|
||||
name="">
|
||||
<div class="show-template show-template-youtube edit-template" id=""></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-sm-none kt-margin-b-10"></div>
|
||||
</div>
|
||||
<div class="col-sm-1 text-right">
|
||||
<a href="javascript:;" data-repeater-delete=""
|
||||
class="btn btn-success"
|
||||
data-toggle="kt-tooltip"
|
||||
data-placement="top" data-skin="dark" title="" data-html="true"
|
||||
data-original-title="@lang('school/student_message.delete_file')"
|
||||
onclick="updateRepeater(this.parentElement.parentElement.parentElement.parentElement, {{ $setting['id'] }});">
|
||||
<i class="fa fa-save"></i>
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-sm-1 text-right">
|
||||
<a href="javascript:;" data-repeater-delete=""
|
||||
class="btn btn-danger"
|
||||
data-toggle="kt-tooltip"
|
||||
data-placement="top" data-skin="dark" title="" data-html="true"
|
||||
data-original-title="@lang('school/student_message.delete_file')"
|
||||
onclick="removeRepeater(this.parentElement.parentElement.parentElement.parentElement, {{ $setting['id'] }});">
|
||||
<i class="fa fa-times"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@endforeach
|
||||
<div class="form-group form-group-last list-attach-files kt-margin-b-5 kt-margin-t-5">
|
||||
</div>
|
||||
<div class="form-group form-group-last form-template-setting" style="display: none">
|
||||
<form enctype="multipart/form-data" role="form" method="POST" action=""
|
||||
class="kt-form form-template-setting" style="margin-top: 10px;">
|
||||
<div data-repeater-list="" class="col-sm-12">
|
||||
<div data-repeater-item class="form-group row align-items-center">
|
||||
<div class="col-sm-1">
|
||||
<label class="control-label"> Mốc chơi: </label>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="kt-form__group--inline">
|
||||
<input class="form-control input-mocchoi" placeholder="Mốc chơi"/>
|
||||
</div>
|
||||
<div class="d-md-none kt-margin-b-10"></div>
|
||||
</div>
|
||||
<div class="col-sm-1">
|
||||
<label class="control-label"> Tiền nhận: </label>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="kt-form__group--inline">
|
||||
<div class="kt-form__control">
|
||||
<input type="text"
|
||||
placeholder="Tiền nhận"
|
||||
class="edit-template form-control input-tiennhan"
|
||||
name="">
|
||||
<div class="show-template show-template-youtube edit-template" id=""></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-sm-none kt-margin-b-10"></div>
|
||||
</div>
|
||||
<div class="col-sm-1 text-right">
|
||||
<a href="javascript:;"
|
||||
class="btn btn-danger"
|
||||
data-toggle="kt-tooltip"
|
||||
data-placement="top" data-skin="dark" title="" data-html="true"
|
||||
data-original-title="@lang('school/student_message.delete_file')"
|
||||
onclick="removeRepeater(this.parentElement.parentElement.parentElement.parentElement);">
|
||||
<i class="fa fa-times"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<!-- Repeater End -->
|
||||
<div class="col-lg-12" style="margin-top: 20px">
|
||||
<div class="text-center">
|
||||
<button class="btn btn-success" onclick="saveAttendanceDateSetting()">Lưu</i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@endsection
|
||||
<script>
|
||||
function addFormRepeater(form) {
|
||||
var template = $(form).find('.form-template-setting form').first();
|
||||
var list_attach_files = $(form).find('.list-attach-files').first();
|
||||
|
||||
template.clone().appendTo(list_attach_files);
|
||||
}
|
||||
|
||||
function removeRepeater(formElement, setting_id) {
|
||||
if (setting_id !== undefined) {
|
||||
$.ajax({
|
||||
url: "{{ route('admin_setting_attendance_date_delete') }}",
|
||||
type: "POST",
|
||||
data: {
|
||||
setting_id: setting_id,
|
||||
},
|
||||
success: function (data) {
|
||||
swal("Xóa thành công", 'success');
|
||||
},
|
||||
error: function () {
|
||||
swal("Vui lòng thử lại", 'errors');
|
||||
}
|
||||
});
|
||||
}
|
||||
$(formElement).remove();
|
||||
}
|
||||
|
||||
function updateRepeater(formElement, setting_id) {
|
||||
let tiennhan = $(formElement).find('.input-tiennhan-' + setting_id).first().val();
|
||||
let mocchoi = $(formElement).find('.input-mocchoi-' + setting_id).first().val();
|
||||
if (tiennhan.trim() == "" || mocchoi.trim() == "") {
|
||||
swal("Vui lòng điền đầy đủ thông tin");
|
||||
return false;
|
||||
}
|
||||
$.ajax({
|
||||
url: "{{ route('admin_setting_attendance_date_update') }}",
|
||||
type: "POST",
|
||||
data: {
|
||||
setting_id: setting_id,
|
||||
mocchoi: mocchoi,
|
||||
tiennhan: tiennhan,
|
||||
},
|
||||
success: function (data) {
|
||||
swal("Cập nhật thành công", 'success');
|
||||
},
|
||||
error: function () {
|
||||
swal("Vui lòng thử lại", 'errors');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function saveAttendanceDateSetting() {
|
||||
let listFormRepeater = $('.list-attach-files').find('.form-template-setting');
|
||||
listFormRepeater.each(function (index, form) {
|
||||
let tiennhan = $(form).find('.input-tiennhan').first().val();
|
||||
let mocchoi = $(form).find('.input-mocchoi').first().val();
|
||||
if (tiennhan.trim() == "" || mocchoi.trim() == "") {
|
||||
return true;
|
||||
}
|
||||
let finish = 0;
|
||||
if (index == listFormRepeater.length - 1) {
|
||||
finish = 1;
|
||||
}
|
||||
$.ajax({
|
||||
url: "{{ route('admin_setting_attendance_date_add') }}",
|
||||
type: "POST",
|
||||
data: {
|
||||
mocchoi: tiennhan,
|
||||
tiennhan: tiennhan,
|
||||
finish: finish,
|
||||
},
|
||||
success: function (data) {
|
||||
if (data.status == 2) {
|
||||
swal("Vui lòng thử lại", 'errors');
|
||||
}
|
||||
if (finish == 1) {
|
||||
location.reload();
|
||||
}
|
||||
},
|
||||
error: function () {
|
||||
swal("Vui lòng thử lại", 'errors');
|
||||
}
|
||||
});
|
||||
console.log(form)
|
||||
});
|
||||
}
|
||||
</script>
|
71
resources/views/AdminPage/setting_game.blade.php
Normal file
71
resources/views/AdminPage/setting_game.blade.php
Normal file
@@ -0,0 +1,71 @@
|
||||
@extends('layouts.admin')
|
||||
|
||||
@section('style')
|
||||
|
||||
@endsection
|
||||
|
||||
@section('script')
|
||||
@if ($errors->any())
|
||||
<script>
|
||||
swal("Thông báo", "{{ $errors->first() }}", "error");
|
||||
</script>
|
||||
@endif
|
||||
|
||||
@if (\Session::has('message'))
|
||||
<script>
|
||||
swal("Thông báo", "{{ \Session::get('message') }}", "{{ \Session::get('status') }}");
|
||||
</script>
|
||||
@endif
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="box">
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<form action="{{ route($GetSetting->action) }}" method="POST">
|
||||
@csrf
|
||||
<input type="hidden" name="id" value="{{ $Setting_Game->id }}">
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Min:</label>
|
||||
<input class="form-control" name="min" value="{{ $Setting_Game->min }}">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Max:</label>
|
||||
<input class="form-control" name="max" value="{{ $Setting_Game->max }}">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-12"><br /></div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Số điện thoại:</label>
|
||||
<div>
|
||||
@foreach($GetAccountMomo as $row)
|
||||
<div class="form-check">
|
||||
<label class="icheckbox_minimal-blue disabled">
|
||||
<input class="minimal" type="checkbox" value="{{ $row->id }}" name="sdt[]" @if ($row->active == 1) {{ 'checked' }} @endif>
|
||||
{{
|
||||
$row->sdt
|
||||
}}
|
||||
</label>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Tỉ lệ:</label>
|
||||
<input class="form-control" name="tile" value="{{ $Setting_Game->tile }}">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-12"><br /></div>
|
||||
|
||||
<div class="col-12 col-md-12">
|
||||
<button class="btn btn-info" style="width: 100%;">Lưu lại</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
85
resources/views/AdminPage/setting_game2.blade.php
Normal file
85
resources/views/AdminPage/setting_game2.blade.php
Normal file
@@ -0,0 +1,85 @@
|
||||
@extends('layouts.admin')
|
||||
|
||||
@section('style')
|
||||
|
||||
@endsection
|
||||
|
||||
@section('script')
|
||||
@if ($errors->any())
|
||||
<script>
|
||||
swal("Thông báo", "{{ $errors->first() }}", "error");
|
||||
</script>
|
||||
@endif
|
||||
|
||||
@if (\Session::has('message'))
|
||||
<script>
|
||||
swal("Thông báo", "{{ \Session::get('message') }}", "{{ \Session::get('status') }}");
|
||||
</script>
|
||||
@endif
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="box">
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<form action="{{ route($GetSetting->action) }}" method="POST">
|
||||
@csrf
|
||||
<input type="hidden" name="id" value="{{ $Setting_Game->id }}">
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Min:</label>
|
||||
<input class="form-control" name="min" value="{{ $Setting_Game->min }}">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Max:</label>
|
||||
<input class="form-control" name="max" value="{{ $Setting_Game->max }}">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-12"><br /></div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Số điện thoại:</label>
|
||||
<div>
|
||||
@foreach($GetAccountMomo as $row)
|
||||
<div class="form-check">
|
||||
<label class="icheckbox_minimal-blue disabled">
|
||||
<input class="minimal" type="checkbox" value="{{ $row->id }}" name="sdt[]" @if ($row->active == 1) {{ 'checked' }} @endif>
|
||||
{{
|
||||
$row->sdt
|
||||
}}
|
||||
</label>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Tỉ lệ 1:</label>
|
||||
<input class="form-control" name="tile1" value="{{ $Setting_Game->tile1 }}">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-12"><br /></div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Tỉ lệ 2:</label>
|
||||
<input class="form-control" name="tile2" value="{{ $Setting_Game->tile2 }}">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Tỉ lệ 3:</label>
|
||||
<input class="form-control" name="tile3" value="{{ $Setting_Game->tile3 }}">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-12 col-md-12"><br /></div>
|
||||
|
||||
<div class="col-12 col-md-12">
|
||||
<button class="btn btn-info" style="width: 100%;">Lưu lại</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
55
resources/views/AdminPage/setting_game3.blade.php
Normal file
55
resources/views/AdminPage/setting_game3.blade.php
Normal file
@@ -0,0 +1,55 @@
|
||||
@extends('layouts.admin')
|
||||
|
||||
@section('style')
|
||||
|
||||
@endsection
|
||||
|
||||
@section('script')
|
||||
@if ($errors->any())
|
||||
<script>
|
||||
swal("Thông báo", "{{ $errors->first() }}", "error");
|
||||
</script>
|
||||
@endif
|
||||
|
||||
@if (\Session::has('message'))
|
||||
<script>
|
||||
swal("Thông báo", "{{ \Session::get('message') }}", "{{ \Session::get('status') }}");
|
||||
</script>
|
||||
@endif
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="box">
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<form action="{{ route($GetSetting->action) }}" method="POST">
|
||||
@csrf
|
||||
<input type="hidden" name="id" value="{{ $Setting_Game->id }}">
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Tiền cược:</label>
|
||||
<input class="form-control" name="tiencuoc" value="{{ $Setting_Game->tiencuoc }}">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Tiền mặc định:</label>
|
||||
<input class="form-control" name="tienmacdinh" value="{{ $Setting_Game->tienmacdinh }}">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-12"><br /></div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label>% tiền cược vào hũ:</label>
|
||||
<input class="form-control" name="ptvaohu" value="{{ $Setting_Game->ptvaohu }}">
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-12"><br /></div>
|
||||
|
||||
<div class="col-12 col-md-12">
|
||||
<button class="btn btn-info" style="width: 100%;">Lưu lại</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
45
resources/views/AdminPage/setting_thuongtuan.blade.php
Normal file
45
resources/views/AdminPage/setting_thuongtuan.blade.php
Normal file
@@ -0,0 +1,45 @@
|
||||
@extends('layouts.admin')
|
||||
|
||||
@section('style')
|
||||
|
||||
@endsection
|
||||
|
||||
@section('script')
|
||||
@if ($errors->any())
|
||||
<script>
|
||||
swal("Thông báo", "{{ $errors->first() }}", "error");
|
||||
</script>
|
||||
@endif
|
||||
|
||||
@if (\Session::has('message'))
|
||||
<script>
|
||||
swal("Thông báo", "{{ \Session::get('message') }}", "{{ \Session::get('status') }}");
|
||||
</script>
|
||||
@endif
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="box">
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<form action="{{ route('admin_setting_thuongtuan_action') }}" method="POST">
|
||||
@csrf
|
||||
<div class="row">
|
||||
|
||||
@foreach($GetSettingThuongTuan as $row)
|
||||
<div class="col-12 col-md-6">
|
||||
<label>Top {{ $row->top }}:</label>
|
||||
<input class="form-control" name="top_{{ $row->top }}" value="{{ $row->phanthuong }}">
|
||||
<br />
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
|
||||
<div class="col-12 col-md-12">
|
||||
<button class="btn btn-info" style="width: 100%;">Lưu lại</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
53
resources/views/AdminPage/update.blade.php
Normal file
53
resources/views/AdminPage/update.blade.php
Normal file
@@ -0,0 +1,53 @@
|
||||
@extends('layouts.admin')
|
||||
|
||||
@section('style')
|
||||
|
||||
@endsection
|
||||
|
||||
@section('script')
|
||||
@if (\Session::has('message'))
|
||||
<script>
|
||||
swal("Thông báo", "{{ \Session::get('message') }}", "{{ \Session::get('status') }}");
|
||||
</script>
|
||||
@endif
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="box">
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<p># Thông tin phiên bản:</p>
|
||||
<ul>
|
||||
<li>Phiên bản hiện tại: {{ $emyinfo[0] }}</li>
|
||||
<li>Phiên bản mới nhất: {{ $eserverinfo[0] }}</li>
|
||||
</ul>
|
||||
<hr />
|
||||
<p># Nội dung bản cập nhật: </p>
|
||||
<ul>
|
||||
@php
|
||||
$dem = 0;
|
||||
@endphp
|
||||
@if($emyinfo[0] == $eserverinfo[0])
|
||||
<li>Phiên bản hiện tại đã là mới nhất</li>
|
||||
@else
|
||||
@foreach ($eserverinfo as $r)
|
||||
@if($dem > 0)
|
||||
<li>
|
||||
{{ $r }}
|
||||
<br />
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@php
|
||||
$dem ++;
|
||||
@endphp
|
||||
@endforeach
|
||||
@endif
|
||||
</ul>
|
||||
<hr />
|
||||
<a href="{{ route('admin.update') }}">
|
||||
<button class="btn btn-info">Cập nhật phiên bản mới</button>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
Reference in New Issue
Block a user