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>