Viewing file: index.blade.php (5.07 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
@extends('layouts.admin')
@section('title') Sender | ID @endsection
@section('extra-css')
<link rel="stylesheet" href="{{asset('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css')}}">
<link rel="stylesheet" href="{{asset('plugins/datatables-responsive/css/responsive.bootstrap4.min.css')}}">
@endsection
@section('content')
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-header">
<h2 class="card-title">@lang('admin.customers.customer_sender_approved_list')
<i data-toggle="tooltip" data-placement="right" class="fa fa-question-circle alert-tooltip"
title="Admin has to set Sender ID price and this price will applicable for system's all user.
Remember if admin doesn't set the price then customer can send request without payment."></i>
</h2>
<div class="float-right">
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal">
{{trans('admin.set_sender_id_price')}}
</button>
<a class="btn btn-info" href="{{route('admin.sender.requests')}}">@lang('admin.form.button.request') <span class="masking_counter_2">0</span></a>
</div>
</div>
<!-- /.card-header -->
<div class="card-body">
<table id="sender_ids" class="table table-striped table-bordered dt-responsive nowrap">
<thead>
<tr>
<th>@lang('admin.table.customer_name')</th>
<th>@lang('From')</th>
<th>@lang('admin.table.sender_id')</th>
<th>@lang('admin.table.expire_date')</th>
<th>{{trans('Action')}}</th>
</tr>
</thead>
</table>
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</section>
<!-- /.content -->
<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">{{trans('Set Price')}}</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<form action="{{route('admin.sender.sender_id.setting')}}" method="post">
@csrf
<div class="modal-body">
<div class="form-group">
<label for="">{{trans('admin.sender_id_price')}}</label>
<input type="number" name="sender_id_price"
value="{{isset($senderIdPrice->value) && isset(json_decode($senderIdPrice->value)->sender_id_price)?json_decode($senderIdPrice->value)->sender_id_price:0}}" class="form-control" placeholder="Enter price">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="submit" class="btn btn-primary">Save</button>
</div>
</form>
</div>
</div>
</div>
@endsection
@section('extra-scripts')
<script src="{{asset('plugins/datatables/jquery.dataTables.min.js')}}"></script>
<script src="{{asset('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js')}}"></script>
<script src="{{asset('plugins/datatables-responsive/js/dataTables.responsive.min.js')}}"></script>
<script src="{{asset('plugins/datatables-responsive/js/responsive.bootstrap4.min.js')}}"></script>
<script src="{{asset('js/readmore.min.js')}}"></script>
<script>
"use strict";
$('#sender_ids').DataTable({
processing: true,
serverSide: true,
responsive:true,
ajax:'{{route('admin.sender.get.all')}}',
columns: [
{ "data": "customer" },
{ "data": "from" },
{ "data": "sender_id" },
{ "data": "expire_date" },
{ "data": "status" },
],
});
</script>
@endsection
|