staff, mno, clients, bug fixes

This commit is contained in:
Kwesi Banson
2023-05-08 10:13:03 +00:00
parent 903c1703b9
commit f2279bd13a
49 changed files with 3260 additions and 6511 deletions

View File

@@ -6,78 +6,192 @@
@endsection
@section('content')
<div class="">
<div class="page-title">
<div class="title_left" style="width:800px !important;">
<ol class="breadcrumb">
<li><a href="{!! url('dashboard') !!}">Dashboard</a></li>
<li><a href="{!! url('network_ops') !!}">Network Operator</a></li>
<li class="active">Update Network Operator</li>
</ol>
@include('network_ops.partials.newip')
<div class="">
<div class="page-title">
<div class="title_left" style="width:800px !important;">
<ol class="breadcrumb">
<li><a href="{!! url('dashboard') !!}">Dashboard</a></li>
<li><a href="{!! url('mnos') !!}">Network Operator</a></li>
<li class="active">Update Network Operator</li>
</ol>
</div>
</div>
<div class="clearfix"></div>
<div>
@include('commons.notifications')
</div>
<div class="row">
<div class="col-md-6 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_title">
{{-- @include('commons.notifications') --}}
<div class="clearfix"></div>
</div>
{{-- start of content --}}
<div class="x_content">
<br>
{!! Form::model($network_arr, [
'method' => 'PATCH',
'url' => ['network_ops', $network_arr],
'class' => 'form-horizontal form-label-left'
]) !!}
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Name</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('name') ? 'has-error' : ''}}">
</div>
<div class="clearfix"></div>
<div>@include('commons.notifications')</div>
<div class="row">
<div class="col-md-10 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_title">
<div class="clearfix"></div>
</div>
{{-- start of content --}}
<div class="x_content">
<br>
{!! Form::model($network_arr, ['method' => 'PATCH', 'url' => ['mnos', $network_arr], 'class' => 'form-horizontal form-label-left' ]) !!}
<div class="row">
<div class="col-md-4">
<div class="form-group">
<div class=" {{ $errors->has('name') ? 'has-error' : ''}}">
<label class="" for="name">Name</label>
{!! Form::text('name', old('name'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter name' , 'id' => 'name']) !!}
{!! $errors->first('name', '<p class="help-block">:message</p>') !!}
</div>
</div>
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="country">Country</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('country') ? 'has-error' : ''}}">
</div>
<div class="form-group">
<div class="{{ $errors->has('country') ? 'has-error' : ''}}">
<label class="" for="country">Country</label>
{!! Form::select('country', $countries ,old('country'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter Country' , 'id' => 'country']) !!}
{!! $errors->first('country', '<p class="help-block">:message</p>') !!}
</div>
</div>
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="account_manager_id">Account Manager</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('account_manager_id') ? 'has-error' : ''}}">
<div class="form-group">
<div class="{{ $errors->has('account_manager_id') ? 'has-error' : ''}}">
<label class="" for="account_manager_id">Account Manager</label>
{!! Form::select('account_manager_id', $account_manager ,old('account_manager_id'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter Account Manager' , 'id' => 'account_manager_id']) !!}
{!! $errors->first('account_manager_id', '<p class="help-block">:message</p>') !!}
</div>
</div>
<div class="ln_solid"></div>
<div class="form-group">
<div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
<button type="submit" class="btn btn-success"><i class="fa fa-save"></i> Update Operator</button>
<div class=" {{ $errors->has('contact_person') ? 'has-error' : ''}}">
<label class="" for="email">Contact Person</label>
{!! Form::text('contact_person', old('contact_person'), ['class' => 'form-control', 'placeholder'=>'Enter Contact Person' , 'id' => 'contact_person']) !!}
{!! $errors->first('contact_person', '<p class="help-block">:message</p>') !!}
</div>
</div>
<div class="form-group">
<div class=" {{ $errors->has('contact_person_phone') ? 'has-error' : ''}}">
<label class="" for="email">Phone</label>
{!! Form::text('contact_person_phone', old('contact_person_phone'), ['class' => 'form-control', 'placeholder'=>'Enter Phone Number' , 'id' => 'phone']) !!}
{!! $errors->first('contact_person_phone', '<p class="help-block">:message</p>') !!}
</div>
</div>
{!! Form::close() !!}
<div class="form-group">
<div class=" {{ $errors->has('email') ? 'has-error' : ''}}">
<label class="" for="email">Email</label>
{!! Form::text('contact_person_email', old('contact_person_email'), ['class' => 'form-control ', 'placeholder'=>'Enter email' , 'id' => 'email']) !!}
{!! $errors->first('contact_person_email', '<p class="help-block">:message</p>') !!}
</div>
</div>
<div class="form-group">
<div class=" {{ $errors->has('skype_name') ? 'has-error' : ''}}">
<label class="" for="skypeName">Skype Name</label>
{!! Form::text('contact_person_skype', old('contact_person_skype'), ['class' => 'form-control', 'placeholder'=>'Enter Skype Name' , 'id' => 'skypeName']) !!}
{!! $errors->first('contact_person_skype', '<p class="help-block">:message</p>') !!}
</div>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<div class=" {{ $errors->has('services') ? 'has-error' : ''}}">
<label class="" for="type">Services</label>
{!! Form::select('services[]', $services, $current_services, ['class' => 'form-control typeServices' , 'id' => 'services', 'multiple'=> 'true']) !!}
{!! $errors->first('services', '<p class="help-block">:message</p>') !!}
</div>
</div>
<div class="form-group">
<div class=" {{ $errors->has('support_skype') ? 'has-error' : ''}}">
<label class="" for="rateEmail">Support Skype IDs (Multiple) </label>
{!! Form::select('support_skype[]', $support_skype_arr, $old_support_skype_arr, ['class' => 'form-control supportSkype', 'id' => 'supportSkype', 'multiple' => 'true']) !!}
{!! $errors->first('support_skype', '<p class="help-block">:message</p>') !!}
</div>
</div>
<div class="form-group">
<div class=" {{ $errors->has('support_email') ? 'has-error' : ''}}">
<label class="" for="supportEmail">Support Emails (Multiple) </label>
{!! Form::select('support_emails[]', $support_emails, $old_support_emails, ['class' => 'form-control supportEmail', 'id' => 'supportEmail', 'multiple' => 'true']) !!}
{!! $errors->first('support_emails', '<p class="help-block">:message</p>') !!}
</div>
</div>
<div class="form-group">
<div class=" {{ $errors->has('support_phones') ? 'has-error' : ''}}">
<label class="" for="supportPhones">Support Phone Numbers (Multiple) </label>
{!! Form::select('support_phones[]', $support_phones, $old_support_phones, ['class' => 'form-control supportPhones', 'id' => 'supportPhones', 'multiple' => 'true']) !!}
{!! $errors->first('support_phones', '<p class="help-block">:message</p>') !!}
</div>
</div>
<div class="form-group">
<label>Status *:</label>
<div class="bg-<?php echo $status_bg; ?> " style="border-radius: 5px; border: 1px solid black; padding: 10px;">
<p >
Live:
<input type="radio" class="flat" name="connection_status" id="statusLive" value="Active" <?php echo ($network_arr->connection_status == 'Active') ? "checked" : ""; ?> />
</p>
<p>
Pending:
<input type="radio" class="flat" name="connection_status" id="statusProspect" value="Pending" <?php echo ($network_arr->connection_status == 'Pending') ? "checked" : ""; ?> />
</p>
<p>
Inactive
<input type="radio" class="flat" name="connection_status" id="statusInactive" value="Inactive" <?php echo ($network_arr->connection_status == 'Inactive') ? "checked" : ""; ?> />
</p>
</div>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<div class=" {{ $errors->has('connection_type') ? 'has-error' : ''}}">
<label class="" for="connectionType">Connection Types</label>
{!! Form::select('connection_type[]', $connection_types, $old_connection_type, ['class' => 'form-control' , 'id' => 'connectionType', 'multiple'=> 'true']) !!}
{!! $errors->first('connection_type', '<p class="help-block">:message</p>') !!}
</div>
</div>
</div>
<div class="">
<p>IP Addresses <a href="" class="btn btn-primary btn-xs pull-right" id="addIpBtn" >Add IP</a></p>
<table class="table table-striped">
<thead>
<tr>
<th scope="col active">Service</th>
<th scope="col success">IP</th>
<th scope="col warning">Port</th>
<th scope="col info">Status</th>
</tr>
</thead>
@foreach($ip_addresses as $row)
<tr>
<td class="">{{ $row->service }}</td>
<td class="">{{ $row->ip_address }}</td>
<td class="">{{ $row->port }}</td>
<td class="">{{ $row->status }}</td>
</tr>
@endforeach
</table>
</div>
</div>
</div>
<div class="ln_solid"></div>
<div class="form-group">
<div class="col-md-12 col-sm-12">
<button type="submit" class="btn btn-success btn-block"><i class="fa fa-save"></i> Update Operator</button>
</div>
</div>
{!! Form::close() !!}
</div>
</div>
</div>
</div>
</div>
</div>
@endsection
@section('javascript')
<script type="text/javascript" src="{{ url('public/assets/js/mnos.js') }}"></script>
<script type="text/javascript">
$(function(){
$('select').select2();
$('.supportEmail').select2({
tags : true
});
$('.supportPhones').select2({
tags : true
});
$('.supportSkype').select2({
tags : true
});
});
</script>