added sender ID to the clients Tab in Show view plus bug fixes

This commit is contained in:
Kwesi Banson
2024-08-26 10:23:49 +00:00
parent 4a0248e40d
commit 6cede6d980
54 changed files with 1948 additions and 120 deletions

View File

@@ -0,0 +1,64 @@
<div class="modal fade" id="newSenderIdFormModal" tabindex="-1" role="dialog" aria-labelledby="senderidModalLabel" aria-hidden="true">
<div class="modal-dialog modal-sm" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title" id="senderidModalLabelLabel">New Sender ID Form</h4>
</div>
<div class="modal-body">
<div id="senderIdnotifyArea" class="alert alert-danger hidden"></div>
<form class="form-vertical" method="POST" id="newSenderIdForm" action="">
{{ csrf_field() }}
<input type="hidden" name="client_id" id="clientID" value="{{ $showclient->id }}">
<input type="hidden" name="created_by" id="createdByIDD" value="{{ session('current_user.id') }}">
<input type="hidden" name="last_modified_by" id="modifiedByIDD" value="{{ session('current_user.id') }}">
<input type="hidden" name="" id="">
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label class="control-label" for="senderIDD">Sender ID *</label>
<div class="{{ $errors->has('senderid') ? 'has-error' : ''}}">
{!! Form::text('senderid', old('senderid'), ['class' => 'form-control ', 'placeholder'=>'Enter sender ID' , 'id' => 'senderIDD', 'required' => 'true']) !!}
{!! $errors->first('name', '<p class="help-block">:message</p>') !!}
</div>
</div>
<div class="form-group">
<label class="control-label" for="status">Status *</label>
<div class=" {{ $errors->has('status') ? 'has-error' : ''}}">
{!! Form::select('status', $sender_id_statuses ,old('status'), ['class' => 'form-control ', 'placeholder'=>'Select Status ' , 'id' => 'status', 'required' => 'true', 'style' => 'width: 100%']) !!}
{!! $errors->first('status', '<p class="help-block">:message</p>') !!}
</div>
</div>
<div class="form-group">
<label class="control-label" for="network">Network *</label>
<div class=" {{ $errors->has('network') ? 'has-error' : ''}}">
{!! Form::select('network_id', $networks, old('network_id'), ['class' => 'form-control ', 'placeholder'=>'Select Network ' , 'id' => 'network', 'required' => 'true', 'style' => 'width: 100%']) !!}
{!! $errors->first('network', '<p class="help-block">:message</p>') !!}
</div>
</div>
<div class="form-group">
<label class="control-label" for="remarks">Remarks</label>
<div class=" {{ $errors->has('remarks') ? 'has-error' : ''}}">
{!! Form::text('remarks', old('remarks'), ['class' => 'form-control ', 'placeholder'=>'Enter remarks here' , 'id' => 'remarks']) !!}
{!! $errors->first('remarks', '<p class="help-block">:message</p>') !!}
</div>
</div>
<div class="ln_solid"></div>
<div class="form-group">
<div class="">
<button type="submit" class="btn btn-success btn-block"><i class="fa fa-save"></i> Submit</button>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->
</div>
<!-- /.modal -->

View File

@@ -15,14 +15,14 @@
<input type="hidden" name="client_id" id="clientID" value="{{ $showclient->id }}">
<input type="hidden" name="code_type" id="shortCodeType">
<div class="row">
<div class="form-group" >
<div class="col-md-12" style="padding-bottom: 5px;">
<label for="name">Friendly Name *</label>
<input type="text" class="form-control" name="name" id="name" required >
<input type="text" class="form-control" name="name" id="name" required >
</div>
</div>
<div class="form-group">
<div class="form-group">
<div class="col-md-12" style="padding-bottom: 5px">
<label for="networks">Network *</label>
<!-- 'multiple'=> 'true', -->
@@ -32,15 +32,15 @@
<div class="form-group" >
<div class="col-md-12" style="padding-bottom: 5px;">
<label for="shortCode">Code *</label>
<input type="number" class="form-control" name="shortcode" id="shortCode" required >
<input type="number" class="form-control" name="shortcode" id="shortCode" required >
</div>
</div>
<div class="form-group">
<div class="form-group">
<div class="col-md-12" style="padding-bottom: 5px">
<label for="tollFree">Toll Free</label>
<select name="toll_free" id="tollFree" class="form-control" required style="width: 100%;">
<option value="YES">YES</option>
<option value="NO">NO</option>
<option value="YES">YES</option>
<option value="NO">NO</option>
</select>
</div>
</div>
@@ -63,18 +63,18 @@
</div>
</div>
</div>
</div>
<div class="form-group">
</div>
<div class="form-group">
<div class="col-md-12" style="padding-bottom: 5px">
<label for="codeStatus">Status</label>
<select id="codeStatus" name="status" class="form-control" required style="width: 100%;">
<option value="LIVE">Live</option>
<option value="PENDING">Pending</option>
<option value="LIVE">Live</option>
<option value="PENDING">Pending</option>
<option value="TESTING">Testing</option>
<option value="INACTIVE">Inactive </option>
<option value="INACTIVE">Inactive </option>
</select>
</div>
</div>
</div>
<div class="form-group" >
<div class="col-md-12" style="padding-bottom: 5px;">
<label for="remarks">Remarks</label>
@@ -82,7 +82,7 @@
</div>
</div>
<div class="form-group" style="margin-bottom: 0.2rem; padding-bottom: 5px; padding-top: 5px;">
<div class="col-md-12" style="padding-bottom: 10px;">
<button type="submit" class="btn btn-success btn-block updateBtn"> <i class="fa fa-send"></i> Submit</button>

View File

@@ -20,10 +20,10 @@
{!! Form::select('services[]', $service_type_names , old('services'), ['class' => 'form-control' , 'id' => 'financeServicesStore', 'required' => 'required', 'multiple'=> 'true', 'style' => 'width: 100%']) !!}
</div>
</div>
<div class="form-group hidden" id="ShortCodeFormGrp" >
<div class="form-group" id="ShortCodeFormGrp" >
<div class="col-md-12" style="padding-bottom: 5px;">
<label for="shortCode">Short Code</label>
<input type="text" class="form-control" name="short_code" id="shortCode" required >
<input type="text" class="form-control" name="short_code" id="shortCode" >
<p class="text-warning">Enter Short related to the selected service</p>
</div>
</div>

View File

@@ -0,0 +1,43 @@
<div>
<div class="table-responsive">
<table class="table table-striped table-condensed table-bordered">
<thead>
<tr class="headings">
<th class="column-title">Sender ID</th>
<th class="column-title">Network</th>
<th class="column-title">Country</th>
<th class="column-title">Status</th>
<th class="column-title">Created By</th>
<th class="column-title">Remarks</th>
<th class="column-title no-link last"><span class="nobr">Action</span>
</th>
</tr>
</thead>
<tbody>
@if ($client_sender_ids->isEmpty())
<tr>
<td class="" colspan="12">No Records found</td>
</tr>
@else
@foreach ($client_sender_ids as $row)
<tr class="even pointer">
<td class="mes-td col-md-2">{{ $row->senderid }} </td>
<td class="col-md-2">{{ $row->network_info->name }}</td>
<td class="col-md-2">{{ $row->network_info->country }}</td>
<td class="col-md-1"><span class="label label-<?php echo ($row->status == 'Approved') ? 'success' : 'warning'; ?>"> {{ $row->status }}</span></td>
<td class="col-md-2">{{ $row->created_by_info->name }}</td>
<td class="mes-td col-md-2" style="width: 100px;">{{ $row->remarks }}</td>
<td class="last col-md-1" style="width: 100px;">
<span>
<input type="hidden" name="senderId_entry_id" value="{{ $row->id }}" class="senderIdEntryRowId">
<a href="" class="btn btn-xs btn-primary senderIdEditBtn"><i class="fa fa-edit"></i></a>
</span>
</td>
</tr>
@endforeach
@endif
</tbody>
</table>
</div>
</div>

View File

@@ -17,6 +17,7 @@
@include('client.partials.edit-finance')
@include('client.partials.progress_indicator_details')
@include('client.partials.support_fees_form')
@include('client.partials.create-senderids')
<?php ?>
<div class="">
<div class="page-title">
@@ -105,14 +106,15 @@
<div class="col-md-9 col-sm-9 col-xs-12" style="border: 1px solid; min-height: 500px;">
<div class="" role="tabpanel" data-example-id="togglable-tabs">
<ul id="myTab" class="nav nav-tabs bar_tabs" role="tablist">
<li role="presentation" class="active"><a href="#tabCompany" id="company-tab" role="tab" data-toggle="tab" aria-expanded="true">Company</a></li>
<li role="presentation" class="active"><a href="#tabCompany" id="company-tab" role="tab" class="text-success" data-toggle="tab" aria-expanded="true">Company</a></li>
<!-- <li role="presentation" class=""><a href="#tabConnection" role="tab" id="connection-tab" data-toggle="tab" aria-expanded="false">Connection</a></li> -->
<li role="presentation" class=""><a href="#tabContract" role="tab" id="contract-tab2" data-toggle="tab" aria-expanded="false">Contract</a></li>
<li role="presentation" class=""><a href="#tabFinance" role="tab" id="finance-tab2" data-toggle="tab" aria-expanded="false">Finance</a></li>
<li role="presentation" class=""><a href="#tabNotes" role="tab" id="notes-tab2" data-toggle="tab" aria-expanded="false">Notes</a></li>
<li role="presentation" class=""><a href="#tabSmsShortCode" role="tab" id="smsshortcode-tab2" data-toggle="tab" aria-expanded="false">SMS Short Codes</a></li>
<li role="presentation" class=""><a href="#tabUssdShortCode" role="tab" id="ussdshortcode-tab2" data-toggle="tab" aria-expanded="false">USSD Short Codes</a></li>
<li role="presentation" class=""><a href="#tabVoiceShortCode" role="tab" id="voiceshortcode-tab2" data-toggle="tab" aria-expanded="false">Voice Short Codes</a></li>
<li role="presentation" class=""><a href="#tabContract" role="tab" id="contract-tab2" class="text-info bg-info" data-toggle="tab" aria-expanded="false">Contract</a></li>
<li role="presentation" class=""><a href="#tabFinance" role="tab" id="finance-tab2" class="text-success" data-toggle="tab" aria-expanded="false">Finance</a></li>
<li role="presentation" class=""><a href="#tabNotes" role="tab" id="notes-tab2" class="text-default" data-toggle="tab" aria-expanded="false">Notes</a></li>
<li role="presentation" class=""><a href="#tabSenderIDs" role="tab" id="senderIds-tab2" class="text-warning" data-toggle="tab" aria-expanded="false">Sender IDs</a></li>
<li role="presentation" class=""><a href="#tabSmsShortCode" role="tab" id="smsshortcode-tab2" class="text-info" data-toggle="tab" aria-expanded="false">SMS Short Codes</a></li>
<li role="presentation" class=""><a href="#tabUssdShortCode" role="tab" id="ussdshortcode-tab2" class="text-success" data-toggle="tab" aria-expanded="false">USSD Short Codes</a></li>
<li role="presentation" class=""><a href="#tabVoiceShortCode" role="tab" id="voiceshortcode-tab2" class="text-warning" data-toggle="tab" aria-expanded="false">Voice Short Codes</a></li>
</ul>
<div id="myTabContent" class="tab-content">
<div role="tabpanel" class="tab-pane fade active in" id="tabCompany" aria-labelledby="company-tab">
@@ -278,8 +280,7 @@
<h4 class="lead"> <strong>Support Fees </strong></h4>
<button type="button" class="btn btn-success btn-sm pull-right" id="addSupportFeesInfoBtn"><i class="fa fa-plus-square"></i> New Support Fee Info</button>
<div class="clearfix"></div>
@include('client.partials.support_fees')
@include('client.partials.support_fees')
</div>
<div role="tabpanel" class="tab-pane fade" id="tabFinance" aria-labelledby="finance-tab">
<h4 class="lead"><strong>Finance Details </strong></h4>
@@ -304,7 +305,7 @@
<?php for ($i = 0; $i < $show_notes->count(); $i++) { ?>
<?php if ($show_notes[$i]->highlight == 'YES'): continue; endif; ?>
<li class="list-group-item list-group-item-<?php echo ($i%2 == 0)? "secondary" : "info"; ?>">
<div class="message_date">
<div class="message_date" style="padding-right: 10px;">
<h3 class="date text-info"><?php echo date('d', strtotime($show_notes[$i]->created_at)); ?></h3>
<p class="month"><?php echo date('M', strtotime($show_notes[$i]->created_at)); ?></p>
<p class="year"><?php echo date('Y', strtotime($show_notes[$i]->created_at)); ?></p>
@@ -325,6 +326,12 @@
</ul>
</div>
</div>
<div role="tabpanel" class="tab-pane fade" id="tabSenderIDs" aria-labelledby="senderIds-tab">
<h4 class="lead"><strong>Sender IDs </strong></h4>
<button type="button" class="btn btn-success btn-sm pull-right" id="createSenderIdBtn"><i class="fa fa-plus-square"></i> New Sender ID</button>
<div class="clearfix"></div>
@include('client.partials.sender-ids')
</div>
<div role="tabpanel" class="tab-pane fade" id="tabSmsShortCode" aria-labelledby="smsshortcode-tab">
<h4 class="lead"><strong>SMS Short Code </strong></h4>
<button type="button" class="btn btn-success btn-sm pull-right" id="createSmsShortCodeBtn"><i class="fa fa-plus-square"></i> New Short Code</button>