bug fixes and new additions
This commit is contained in:
@@ -345,6 +345,9 @@
|
||||
|
||||
Inactive
|
||||
<input type="radio" class="flat" name="status" id="statusInactive" value="Inactive" <?php echo ($client->status == 'Inactive') ? "checked" : ""; ?> />
|
||||
|
||||
Cancelled
|
||||
<input type="radio" class="flat" name="status" id="statusCancelled" value="Cancelled" <?php echo ($client->status == 'Cancelled') ? "checked" : ""; ?> />
|
||||
</p>
|
||||
<p>
|
||||
|
||||
@@ -358,7 +361,7 @@
|
||||
@if($current_pending_stage !== 'COMPLETED')
|
||||
<div class="col-md-12">
|
||||
<div class="form-group" >
|
||||
<!-- style="background-color: skyblue;"-->
|
||||
<!-- style="background-color: skyblue;"-->
|
||||
<div class=" {{ $errors->has('onboarding_sub_items') ? 'has-error' : ''}}">
|
||||
<label class="" for="payment_mode">Onboarding Stage ({{ $current_pending_stage }}) | Click below to select </label>
|
||||
{!! Form::select('onboarding_sub_items_progress[]', $onboarding_sub_items, $onboarding_sub_items_progress, ['class' => 'form-control' , 'id' => 'progressIndicators', 'multiple' => 'true']) !!}
|
||||
@@ -413,7 +416,7 @@
|
||||
});
|
||||
$('#contractValidity').datetimepicker({
|
||||
format: 'YYYY-MM-DD'
|
||||
});
|
||||
});
|
||||
//
|
||||
//
|
||||
});
|
||||
|
||||
187
resources/views/client/index-inactive.blade.php
Normal file
187
resources/views/client/index-inactive.blade.php
Normal file
@@ -0,0 +1,187 @@
|
||||
@extends('layouts.master')
|
||||
@section('page_title')
|
||||
@if(isset($page_title))
|
||||
{{ $page_title }}
|
||||
@endif
|
||||
@endsection
|
||||
@section('css')
|
||||
<link href="{!! url('public/assets/vendors/tabulator/css/bootstrap/tabulator_bootstrap.css') !!}" type="text/css" rel="stylesheet">
|
||||
@endsection
|
||||
@section('content')
|
||||
<div class="">
|
||||
<div class="page-title">
|
||||
<div class="title_left">
|
||||
<div class="title_left">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{!! url('dashboard') !!}">Dashboard</a></li>
|
||||
<li class="active">Inactive Clients</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="title_right">
|
||||
<div class="row">
|
||||
<form method="GET" action="{!! url('clients') !!}">
|
||||
<div class="col-md-5 col-sm-5 col-xs-12 form-group">
|
||||
<div style="margin-top:1px; margin-right:-90px;" class="top_search">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search" style="margin-top: -2px;">
|
||||
<div class="input-group">
|
||||
<input type="text" name="keyword" class="form-control" id="keywordField" placeholder="Keyword here...">
|
||||
<span class="input-group-btn">
|
||||
<button type="submit" class="btn btn-primary" style="color: #fff;" type="button">Go!</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="pull-right">
|
||||
<!-- <a href="{!! url('clients') !!}" class="btn btn-warning btn-xs"><i class="fa fa-refresh"></i> Reset Filter</a> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
<div class="row">
|
||||
@include('commons.notifications')
|
||||
<div class="col-md-12 col-sm-12 col-xs-12">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
<h2 class="text-danger">Inactive Clients </h2>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<div class="x_content">
|
||||
<div>
|
||||
<button id="inactive-clients-download-xlsx" class="btn btn-success btn-sm"><i class="fa fa-file-excel-o"></i> Download XLSX</button>
|
||||
<button id="inactive-clients-download-pdf" class="btn btn-danger btn-sm"><i class="fa fa-file-pdf-o"></i> Download PDF</button>
|
||||
</div>
|
||||
<div id="clientsTable"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@section('javascript')
|
||||
<script src="{!! url('public/assets/vendors/tabulator/js/tabulator.js') !!}"></script>
|
||||
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/xlsx.full.min.js') !!}"></script>
|
||||
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/jspdf.min.js') !!}"></script>
|
||||
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/jspdf.plugin.autotable.js') !!}"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
function link(cell, formatterParams){
|
||||
var url = cell.getValue();
|
||||
var rowID = cell.getData().id
|
||||
return "<a href='"+ base_url + "/clients/"+rowID+"' class='btn btn-link'>"+url+"</a>";
|
||||
//return '<a href="'+ base_url + '"/clients/"'+rowID+'" class="btn btn-link">'+ url +'</a>';
|
||||
}
|
||||
|
||||
function statusDisplay(cell, formatterParams){
|
||||
var url = cell.getValue();
|
||||
var rowID = cell.getData().id
|
||||
return "<a href='"+ base_url + "/clients/"+rowID+"' class='btn btn-link'>"+url+"</a>";
|
||||
}
|
||||
var table = new Tabulator("#clientsTable", {
|
||||
ajaxURL: "inactive-clients/all",
|
||||
paginationSize: 10,
|
||||
paginationSizeSelector: true,
|
||||
paginationSizeSelector:[5, 10, 25, 50, 100, 200],
|
||||
layout: "fitColumns",
|
||||
pagination: "local",
|
||||
selectable: false,
|
||||
printAsHtml: true,
|
||||
ajaxLoaderLoading: $('#logo_spinner').html(),
|
||||
columns: [
|
||||
{
|
||||
title: "Client",
|
||||
field: "name",
|
||||
sorter: "string",
|
||||
formatter:link,
|
||||
},
|
||||
{
|
||||
title: "Account Manager",
|
||||
field: "accountMgr",
|
||||
sorter: "string",
|
||||
},
|
||||
/*
|
||||
{ title:"Onboarding Progress Score",
|
||||
field:"progress_indicator_score",
|
||||
sorter:"number",
|
||||
hozAlign:"left",
|
||||
formatter:"progress",
|
||||
width:200,
|
||||
editable:true
|
||||
},
|
||||
*/
|
||||
{ title:"Onboarding %",
|
||||
field:"progress_indicator_score",
|
||||
sorter:"number",
|
||||
},
|
||||
{
|
||||
title: "Status",
|
||||
field: "status",
|
||||
sorter: "string",
|
||||
formatter:'Red',
|
||||
},
|
||||
{
|
||||
title: "Country",
|
||||
field: "country",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Flag",
|
||||
field: "theflag",
|
||||
download: false,
|
||||
formatter:"image", formatterParams:{
|
||||
height:"20px",
|
||||
width:"30px",
|
||||
// urlPrefix:"http://website.com/images/",
|
||||
// urlSuffix:".png",
|
||||
}
|
||||
},
|
||||
{
|
||||
title: "Last Modified By",
|
||||
field: "modifiedBy",
|
||||
sorter: "string",
|
||||
}
|
||||
],
|
||||
// $('#clients-download-xlsx').click(function(){
|
||||
// table.download("xlsx", "client-list.xlsx", {sheetName:"Sheet 1"});
|
||||
// });
|
||||
|
||||
rowClick:function(e, row){
|
||||
var userID = row.getData().id;
|
||||
//$('#userEditModal').modal('show');
|
||||
},
|
||||
});
|
||||
document.getElementById("inactive-clients-download-xlsx").addEventListener("click", function(){
|
||||
table.download("xlsx", "client-list.xlsx", {sheetName:"Sheet 1"});
|
||||
});
|
||||
//trigger download of data.pdf file
|
||||
document.getElementById("inactive-clients-download-pdf").addEventListener("click", function(){
|
||||
table.download("pdf", "client-list.pdf", {
|
||||
orientation:"portrait", //set page orientation to portrait
|
||||
title:"Click Mobile - Clients", //add title to report
|
||||
});
|
||||
});
|
||||
|
||||
$('#keywordField').on('keyup', function(){
|
||||
console.log('up');
|
||||
var keyword = $(this).val();
|
||||
table.setData("inactive-clients/all?keyword=" + keyword);
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
@@ -21,7 +21,7 @@
|
||||
<div class="col-md-12 col-sm-12 col-xs-12">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
Update Onboarding Checklist
|
||||
Onboarding Checklist Status
|
||||
@include('commons.notifications')
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
@@ -30,7 +30,7 @@
|
||||
<br>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-condensed" style="width: 100%;">
|
||||
<table class="table table-striped table-bordered jambo_table table-condensed" style="width: 100%;">
|
||||
<thead>
|
||||
<tr class="headings">
|
||||
<th class="column-title">Stage</th>
|
||||
@@ -46,12 +46,12 @@
|
||||
</tr>
|
||||
@else
|
||||
@foreach ($onboarding_stages as $row)
|
||||
<tr class="even pointer">
|
||||
<td class="mes-td" >{{ $row->stage_id }}</td>
|
||||
<td class="mes-td">{{ $row->name }}</td>
|
||||
<td class="mes-td <?php echo ($row->status == 'COMPLETED') ? 'text-success' : 'text-danger'; ?>" >
|
||||
<tr class="even pointer" scope="row">
|
||||
<td class="<?php echo ($row->stage_id == 1) ? 'bg-success' : ((($row->stage_id == 2)) ? 'bg-warning' : 'bg-info'); ?> " >{{ $row->stage_id }}</td>
|
||||
<td class="">{{ $row->name }}</td>
|
||||
<td class="<?php echo ($row->status == 'COMPLETED') ? 'text-success' : 'text-danger'; ?>" >
|
||||
{{ $row->status }}
|
||||
|
||||
<!-- (($row->stage_id == 3)) ? 'bg-info' : 'bg-success'; -->
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
289
resources/views/client/show.blade copy11-04-2025.php
Executable file
289
resources/views/client/show.blade copy11-04-2025.php
Executable file
@@ -0,0 +1,289 @@
|
||||
@extends('layouts.master')
|
||||
@section('page_title')
|
||||
@if(isset($page_title))
|
||||
{{ $page_title }}
|
||||
@endif
|
||||
@endsection
|
||||
@section('css')
|
||||
<link href="{{ url('public/assets/vendors/iCheck/skins/flat/green.css') }}" rel="stylesheet">
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
@include('client.partials.new_notes')
|
||||
@include('client.partials.edit-notes')
|
||||
@include('client.partials.finance')
|
||||
@include('client.partials.create-shortcodes')
|
||||
@include('client.partials.edit-shortcodes')
|
||||
@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">
|
||||
<div class="title_left">
|
||||
</div>
|
||||
<div class="title_left">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{!! url('dashboard') !!}">Dashboard</a></li>
|
||||
<li><a href="{!! url('clients') !!}">Clients</a></li>
|
||||
<li class="active">Client Details</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12 col-xs-12">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
<h2>Client Details </h2>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
@include('commons.notifications')
|
||||
</div>
|
||||
<div class="x_content">
|
||||
<div class="col-md-12">
|
||||
|
||||
</div>
|
||||
<div class="col-md-3 col-sm-3 col-xs-12 profile_left">
|
||||
<div class="profile_img">
|
||||
<div id="crop-avatar">
|
||||
<!-- Current avatar -->
|
||||
@if($showclient->country_flag_info !== null)
|
||||
<img class="img-responsives avatar-views" src="{{ url($showclient->country_flag_info->url) }}" alt="Generic Client Icon" title="Country Flag" width="100px">
|
||||
@else
|
||||
|
||||
<img class="img-responsive avatar-view" src="{{ url('public/assets/img/generic-client.png') }}" alt="Generic Client Icon" title="Change the avatar" width="100px">
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<h3>{{ $showclient->name }}</h3>
|
||||
<div class="well" style="border-radius: 25px;">
|
||||
Click Account Manager <br>
|
||||
<strong><em> <?php echo $showclient->auth_user_info->name ?? 'N/A' ?> </em></strong>
|
||||
</div>
|
||||
<h4>
|
||||
Status : <span class="label label-{{ $status_bg }}">{{ $showclient->status }}</span>
|
||||
<span role="button" id="progressIndicatorBtn" class="label label-{{ $progress_status_bg }}"> Progress: {{ $showclient->progress_indicator_score }}%</span>
|
||||
</h4>
|
||||
<ul class="list-unstyled user_data">
|
||||
<li><i class="fa fa-phone user-profile-icon"></i> <?php echo $showclient->phone ?? "N/A"; ?></li>
|
||||
<li><i class="fa fa-envelope user-profile-icon"></i> <?php echo $showclient->email ?? "N/A"; ?> </li>
|
||||
<li class="m-top-xs"><i class="fa fa-skype user-profile-icon"></i> <?php echo $showclient->skype_name ?? "N/A"; ?></li>
|
||||
<li class="m-top-xs"><i class="fa fa-linkedin user-profile-icon"></i> <?php echo $showclient->linkedin_name ?? "N/A"; ?></li>
|
||||
</ul>
|
||||
|
||||
<h5 style="text-decoration: underline;">Highlights</h5>
|
||||
@if(!$show_notes->isEmpty())
|
||||
<ul class="legend list-unstyled">
|
||||
<li>
|
||||
<p>
|
||||
<span class="icon"><i class="fa fa-square blue"></i></span> <span class="name">
|
||||
<?php for ($i = 0; $i < $show_notes->count(); $i++) { ?>
|
||||
|
||||
<?php if ($show_notes[$i]->highlight == 'NO'): continue; endif; ?>
|
||||
<strong> {{ $i+1 . "." }}</strong> {{ $show_notes[$i]->notes_body }}
|
||||
<?php } ?>
|
||||
</span>
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
@endif
|
||||
@if(session('current_user.id') == $showclient->auth_user_id)
|
||||
<a class="btn btn-success" href="{{ url('clients/'. $showclient->id . '/edit') }}"><i class="fa fa-edit m-right-xs"></i> Edit Client</a>
|
||||
<a class="btn btn-primary" href="{{ url('clients/onboarding', $showclient->id) }}"><i class="fa fa-edit m-right-xs"></i> Onboarding Checklist</a>
|
||||
@endif
|
||||
<a class="btn btn-primary" href="{{ url('clients/readonly/'. $showclient->id) }}"><i class="fa fa-eye m-right-xs"></i> Full Details (Readonly)</a>
|
||||
|
||||
<br />
|
||||
|
||||
<!-- start skills -->
|
||||
<!-- <h4>Finance</h4>
|
||||
<ul class="list-unstyled user_data">
|
||||
<li><i class="fa fa-phone user-profile-icon"></i> [Phone Number here]</li>
|
||||
<li><i class="fa fa-envelope user-profile-icon"></i> [email here] </li>
|
||||
<li class="m-top-xs"><i class="fa fa-skype user-profile-icon"></i> [Skype ID Here]</li>
|
||||
</ul> -->
|
||||
<!-- end of skills -->
|
||||
</div>
|
||||
|
||||
<div class="col-md-9 col-sm-9 col-xs-12" style="border: 1px solid; min-height: 500px;">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="" role="tabpanel" data-example-id="togglable-tabs">
|
||||
<div class="col-xs-3">
|
||||
<ul id="myTab" class="nav nav-tabs bar_tabs tabs-left" role="tablist">
|
||||
<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>
|
||||
<div class="col-xs-9">
|
||||
<div id="myTabContent" class="tab-content">
|
||||
|
||||
<div role="tabpanel" class="tab-pane fade" id="tabConnection" aria-labelledby="connection-tab">
|
||||
|
||||
<h4 class="lead"><strong>Connection Details </strong></h4>
|
||||
<blockquote>
|
||||
<p>Connection Types : <?php if($showclient->connections) { echo implode(", ", json_decode($showclient->connections, true)); } else {echo "N/A"; } ?></p>
|
||||
<br>
|
||||
|
||||
<p>Partner SMPP Details <br>
|
||||
<?php //if($showclient->smpp_details) { echo $showclient->smpp_details; } else {echo "N/A"; } ?></p>
|
||||
</blockquote>
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane fade" id="tabContract" aria-labelledby="contract-tab">
|
||||
<h4 class="lead"> <strong>Contract Details </strong></h4>
|
||||
<blockquote>
|
||||
<p>Contract Type : <strong> {{ ucfirst($showclient->contract_type) ?? 'N/A'}} </strong><br> </p>
|
||||
|
||||
|
||||
<p>Contract Validity (Date) : <strong> {{ $showclient->contract_validity or 'N/A'}} </strong></p>
|
||||
<p>Contract Auto Renewal : <strong> {{ $showclient->contract_auto_renew or 'N/A'}} </strong></p>
|
||||
@if($showclient->contract_auto_renew != 'YES')
|
||||
<p>Renewal Due : <strong class="text-<?php echo ($highlight_colour == 'none') ? '' : 'danger'; ?> "> {{ $renewal_due }} </strong></p>
|
||||
@endif
|
||||
</blockquote>
|
||||
<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')
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane fade" id="tabFinance" aria-labelledby="finance-tab">
|
||||
<h4 class="lead"><strong>Finance Details </strong></h4>
|
||||
<button type="button" class="btn btn-success btn-sm pull-right" id="createPaymentBtn"><i class="fa fa-plus-square"></i> New Payment Details</button>
|
||||
<div class="clearfix"></div>
|
||||
<hr>
|
||||
@include('client.partials.recent-payments')
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane fade" id="tabNotes" aria-labelledby="notes-tab">
|
||||
<strong><h3> Notes</h3> </strong>
|
||||
<div class="pull-right">
|
||||
<!-- {{ url('clients/create-notes') }} -->
|
||||
<button type="button" class="btn btn-success btn-sm" id="createNotesBtn">New Notes <i class="fa fa-plus-square"></i> </button>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<div style="background-color: #dce2e4; height: 400px; overflow: scroll;">
|
||||
|
||||
<ul class="messages list-group" style="padding: 15px;">
|
||||
@if($show_notes->isEmpty())
|
||||
<li style="" class="">No notes found</li>
|
||||
@else
|
||||
<?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" 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>
|
||||
</div>
|
||||
<div class="message_wrapper">
|
||||
<h4 class="heading">{{ $show_notes[$i]->client_info->name }}</h4>
|
||||
<blockquote class="message"><em>Content : </em> {{ $show_notes[$i]->notes_body }}</blockquote>
|
||||
<br />
|
||||
<p class="url">
|
||||
<span class="fs1 text-info" aria-hidden="true" data-icon=""></span>
|
||||
<input type="hidden" name="notes_id" class="notesRowId" value="{{ $show_notes[$i]->id }}">
|
||||
<a href="#" class="notesEditBtn"><i class="fa fa-edit"></i>Account Manager : {{ $show_notes[$i]->created_by_info->name }} </a>
|
||||
</p>
|
||||
</div>
|
||||
</li>
|
||||
<?php } ?>
|
||||
@endif
|
||||
</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>
|
||||
<div class="clearfix"></div>
|
||||
@include('client.partials.sms-codes')
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane fade" id="tabUssdShortCode" aria-labelledby="ussdshortcode-tab">
|
||||
<h4 class="lead"><strong>USSD Short Codes </strong></h4>
|
||||
<button type="button" class="btn btn-success btn-sm pull-right" id="createUssdShortCodeBtn"><i class="fa fa-plus-square"></i> New Short Code</button>
|
||||
<div class="clearfix"></div>
|
||||
@include('client.partials.ussd-codes')
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane fade" id="tabVoiceShortCode" aria-labelledby="voiceshortcode-tab">
|
||||
<h4 class="lead"><strong>Voice Short Code </strong></h4>
|
||||
<button type="button" class="btn btn-success btn-sm pull-right" id="createVoiceShortCodeBtn"><i class="fa fa-plus-square"></i> New Short Code</button>
|
||||
<div class="clearfix"></div>
|
||||
@include('client.partials.voice-codes')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@section('javascript')
|
||||
<script src="{{ url('public/assets/vendors/iCheck/icheck.min.js') }}"></script>
|
||||
<script src="{{ url('public/assets/js/clientshow.js') }}"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
// iCheck
|
||||
$(document).ready(function() {
|
||||
if ($("input.flat")[0]) {
|
||||
$(document).ready(function () {
|
||||
$('input.flat').iCheck({
|
||||
checkboxClass: 'icheckbox_flat-green',
|
||||
radioClass: 'iradio_flat-green'
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
// /iCheck
|
||||
|
||||
// Table
|
||||
$('table input').on('ifChecked', function () {
|
||||
checkState = '';
|
||||
$(this).parent().parent().parent().addClass('selected');
|
||||
countChecked();
|
||||
});
|
||||
$('table input').on('ifUnchecked', function () {
|
||||
checkState = '';
|
||||
$(this).parent().parent().parent().removeClass('selected');
|
||||
countChecked();
|
||||
});
|
||||
|
||||
var checkState = '';
|
||||
|
||||
$('.bulk_action input').on('ifChecked', function () {
|
||||
checkState = '';
|
||||
$(this).parent().parent().parent().addClass('selected');
|
||||
countChecked();
|
||||
});
|
||||
$('.bulk_action input').on('ifUnchecked', function () {
|
||||
checkState = '';
|
||||
$(this).parent().parent().parent().removeClass('selected');
|
||||
countChecked();
|
||||
});
|
||||
$('.bulk_action input#check-all').on('ifChecked', function () {
|
||||
checkState = 'all';
|
||||
countChecked();
|
||||
});
|
||||
$('.bulk_action input#check-all').on('ifUnchecked', function () {
|
||||
checkState = 'none';
|
||||
countChecked();
|
||||
});
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
426
resources/views/client/show_accordion.blade.php
Normal file
426
resources/views/client/show_accordion.blade.php
Normal file
@@ -0,0 +1,426 @@
|
||||
@extends('layouts.master')
|
||||
@section('page_title')
|
||||
@if(isset($page_title))
|
||||
{{ $page_title }}
|
||||
@endif
|
||||
@endsection
|
||||
@section('css')
|
||||
<link href="{{ url('public/assets/vendors/iCheck/skins/flat/green.css') }}" rel="stylesheet">
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
@include('client.partials.new_notes')
|
||||
@include('client.partials.edit-notes')
|
||||
@include('client.partials.finance')
|
||||
@include('client.partials.create-shortcodes')
|
||||
@include('client.partials.edit-shortcodes')
|
||||
@include('client.partials.edit-finance')
|
||||
@include('client.partials.progress_indicator_details')
|
||||
@include('client.partials.support_fees_form')
|
||||
<div class="">
|
||||
<div class="x_content">
|
||||
<div class="col-md-12 col-sm-12 col-xs-12">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
<h2><i class="fa fa-align-left"></i> Client Details : <span class="" style="color: green;"><u>{{ $showclient->name }}</u></span></h2>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
@include('commons.notifications')
|
||||
</div>
|
||||
<div class="x_content">
|
||||
|
||||
<!-- start accordion -->
|
||||
<div class="accordion" id="accordion" role="tablist" aria-multiselectable="true">
|
||||
<div class="panel">
|
||||
<a class="panel-heading" role="tab" id="headingZero" data-toggle="collapse" data-parent="#accordion" href="#collapseZero" aria-expanded="true" aria-controls="collapseZero">
|
||||
<h4 class="panel-title">Details Summary</h4>
|
||||
</a>
|
||||
<div id="collapseZero" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingZero">
|
||||
<div class="panel-body">
|
||||
<div class="col-md-12">
|
||||
<ul class="stats-overview">
|
||||
<li>
|
||||
<span class="name"> Total Payments </span>
|
||||
<span class="value text-success"> {{ number_format($recent_payments->sum('invoice_amount')) }} </span>
|
||||
</li>
|
||||
<li>
|
||||
<span class="name"> Short Codes </span>
|
||||
<span class="value text-success">
|
||||
{{ $ussd_codes->count() + $sms_codes->count() + $voice_codes->count() }}
|
||||
</span>
|
||||
</li>
|
||||
<li class="hidden-phone">
|
||||
<span class="name"> Documents Count </span>
|
||||
<span class="value text-success"> {{ $showdocuments->count() }} </span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="col-md-5">
|
||||
<div class="text-centerM">
|
||||
<div class="profile_img" style="padding-bottom: 5px;">
|
||||
<div id="crop-avatar">
|
||||
<!-- Current avatar -->
|
||||
@if($showclient->country_flag_info !== null)
|
||||
<!-- <img class="img-responsives avatar-views" src="{{ url($showclient->country_flag_info->url) }}" alt="Generic Client Icon" title="Country Flag" width="100px"> -->
|
||||
@else
|
||||
<!-- <img class="img-responsive avatar-view" src="{{ url('public/assets/img/generic-client.png') }}" alt="Generic Client Icon" title="Change the avatar" width="100px"> -->
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<p class="text-warning" style="font-size: larger;"><strong>{{ $showclient->name }}</strong></p>
|
||||
<h4>
|
||||
Status : <span class="label label-{{ $status_bg }}">{{ $showclient->status }}</span>
|
||||
<span role="button" id="progressIndicatorBtn" class="label label-{{ $progress_status_bg }}"> Progress: {{ $showclient->progress_indicator_score }}%</span>
|
||||
</h4>
|
||||
<div class="">
|
||||
Client Account Manager : <strong><em> <?php echo $showclient->contact_person ?? 'N/A' ?> </em></strong>
|
||||
</div>
|
||||
<div class="">
|
||||
Click Account Manager : <strong><em> <?php echo $showclient->auth_user_info->name ?? 'N/A' ?> </em></strong>
|
||||
</div>
|
||||
<ul class="list-unstyled user_data">
|
||||
<li>
|
||||
<i class="fa fa-phone user-profile-icon"></i> <?php echo $showclient->phone ?? "N/A"; ?> | <i class="fa fa-envelope user-profile-icon"></i> <?php echo $showclient->email ?? "N/A"; ?>
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-skype user-profile-icon"></i> <?php echo $showclient->skype_name ?? "N/A"; ?> | <i class="fa fa-linkedin user-profile-icon"></i> <?php echo $showclient->linkedin_name ?? "N/A"; ?>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="list-unstyled user_data">
|
||||
<li>Country : <strong> {{ $showclient->country or "N/A" }}</strong> | Company Type : <strong> {{ $showclient->company_type or "N/A" }}</strong></li>
|
||||
|
||||
</ul>
|
||||
@if(session('current_user.id') == $showclient->auth_user_id)
|
||||
<a class="btn btn-success btn-sm" href="{{ url('clients/'. $showclient->id . '/edit') }}"><i class="fa fa-edit m-right-xs"></i> Edit Client</a>
|
||||
<a class="btn btn-primary btn-sm" href="{{ url('clients/onboarding', $showclient->id) }}"><i class="fa fa-edit m-right-xs"></i> Onboarding Checklist</a>
|
||||
<!-- <a class="btn btn-primary btn-sm" href="{{ url('clients/onboarding', $showclient->id) }}"><i class="fa fa-edit m-right-xs"></i> Onboarding Checklist</a> -->
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<h5 style="text-decoration: underline;">Contract</h5>
|
||||
<ul class="list-unstyled user_data">
|
||||
<li>Contract Type : <strong> {{ ucfirst($showclient->contract_type) ?? 'N/A'}} </strong></li>
|
||||
<li>Contract Validity (Date) : <strong> {{ $showclient->contract_validity or 'N/A'}} </strong></li>
|
||||
<li>Contract Auto Renewal : <strong> {{ $showclient->contract_auto_renew or 'N/A'}} </strong></li>
|
||||
</ul>
|
||||
@if($showclient->contract_auto_renew != 'YES')
|
||||
<p>Renewal Due : <strong class="text-<?php echo ($highlight_colour == 'none') ? '' : 'danger'; ?> "> {{ $renewal_due }} </strong></p>
|
||||
@endif
|
||||
|
||||
<h5 class="" style="text-decoration: underline;"><strong>Connection Details </strong></h5>
|
||||
<p>Connection Types : <em> <?php if($showclient->connections) { echo implode(", ", json_decode($showclient->connections, true)); } else {echo "N/A"; } ?></em></p>
|
||||
<p>SMPP Username : <em>
|
||||
<?php if($showclient->smpp_username) { echo $showclient->smpp_username; } else {echo "N/A"; } ?></em></p>
|
||||
<p>Message Types : <em>
|
||||
<?php if($showclient->message_types) {
|
||||
$types_array = json_decode($showclient->message_types);
|
||||
echo implode(', ', $types_array);
|
||||
}
|
||||
else {
|
||||
echo "N/A";
|
||||
} ?>
|
||||
</em>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<h5 style="text-decoration: underline;">Documents</h5>
|
||||
@if(!$showdocuments->isEmpty() == true)
|
||||
@foreach($showdocuments as $docs)
|
||||
<p class="url">
|
||||
<span class="fs1 text-info" aria-hidden="true" data-icon=""></span>
|
||||
<a href="{{ url('clients/downloadfile', $docs->id) }}" title="Click to Download"><i class="fa fa-paperclip"></i> {{ $docs->name }}.{{ $docs->file_extension }}</a>
|
||||
</p>
|
||||
@endforeach
|
||||
@else
|
||||
<p>No Documents uploaded</p>
|
||||
@endif
|
||||
<div class="" style="padding-top: 10px;">
|
||||
<h5 style="text-decoration: underline;">How We Got This Client</h5>
|
||||
<p class="label label-success">
|
||||
<?php echo $showclient->how_we_got_client ?? "N/A" ?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<h5>Notes(Highlights)</h5>
|
||||
<ul class="legend list-unstyled">
|
||||
<li>
|
||||
<p>
|
||||
<span class="icon"><i class="fa fa-square blue"></i></span> <span class="name">
|
||||
<?php for ($i = 0; $i < $show_notes_highlight->count(); $i++) { ?>
|
||||
<strong> {{ $i+1 . "." }}</strong>
|
||||
{{ $show_notes_highlight[$i]->notes_body }}
|
||||
<?php } ?>
|
||||
</span>
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel">
|
||||
<a class="panel-heading collapsed" role="tab" id="headingOne" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="false" aria-controls="collapseOne">
|
||||
<h3 class="panel-title">Contact & Support Details</h3>
|
||||
</a>
|
||||
<div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne">
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-6">
|
||||
<h5 class=""><strong>Support Phone(s)</strong></h5>
|
||||
@if(!empty($showclient->support_phones))
|
||||
<?php
|
||||
$the_arr = json_decode($showclient->support_phones, true) ?>
|
||||
<ul>
|
||||
<?php foreach ($the_arr as $row): ?>
|
||||
|
||||
<li>{{ $row }}</li>
|
||||
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
@else
|
||||
N/A
|
||||
@endif
|
||||
<h5 class=""><strong>Support Email(s)</strong></h5>
|
||||
@if(!empty($showclient->support_emails))
|
||||
<?php
|
||||
$the_arr = json_decode($showclient->support_emails, true) ?>
|
||||
<ul>
|
||||
<?php foreach ($the_arr as $row): ?>
|
||||
|
||||
<li>{{ $row }}</li>
|
||||
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
@else
|
||||
N/A
|
||||
@endif
|
||||
@if(!empty($showclient->rate_emails))
|
||||
<h5 class=""><strong>Rates Email(s)</strong></h5>
|
||||
<?php
|
||||
$the_arr = json_decode($showclient->rate_emails, true) ?>
|
||||
<ul>
|
||||
<?php foreach ($the_arr as $row): ?>
|
||||
|
||||
<li>{{ $row }}</li>
|
||||
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
@else
|
||||
N/A
|
||||
@endif
|
||||
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<h5 class=""><strong>Finance Email(s)</strong></h5>
|
||||
@if(!empty($showclient->finance_email))
|
||||
<?php
|
||||
$the_arr = json_decode($showclient->finance_email, true) ?>
|
||||
<ul>
|
||||
<?php foreach ($the_arr as $row): ?>
|
||||
|
||||
<li>{{ $row }}</li>
|
||||
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
@else
|
||||
N/A
|
||||
@endif
|
||||
<h5 class=""><strong>Support Skype ID(s)</strong></h5>
|
||||
@if(!empty($showclient->support_skype))
|
||||
<?php
|
||||
$the_arr = json_decode($showclient->support_skype, true) ?>
|
||||
<ul>
|
||||
<?php foreach ($the_arr as $row): ?>
|
||||
|
||||
<li>{{ $row }}</li>
|
||||
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
@else
|
||||
N/A
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel">
|
||||
<a class="panel-heading collapsed" role="tab" id="headingTwo" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
|
||||
<h4 class="panel-title">Support Fees</h4>
|
||||
</a>
|
||||
<div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
|
||||
<div class="panel-body">
|
||||
|
||||
<h4 class="lead"> <strong>Fees List </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')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel">
|
||||
<a class="panel-heading collapsed" role="tab" id="headingThree" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
|
||||
<h4 class="panel-title">Notes</h4>
|
||||
</a>
|
||||
<div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">
|
||||
<div class="panel-body">
|
||||
<!-- <p><strong>Collapsible Item 3 data</strong></p> -->
|
||||
<div class="pull-rightMMM">
|
||||
<button type="button" class="btn btn-success btn-sm" id="createNotesBtn">New Notes <i class="fa fa-plus-square"></i> </button>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<div style="background-color: #dce2e4; height: 400px; overflow: scroll;">
|
||||
<ul class="messages list-group" style="padding: 15px;">
|
||||
@if($show_notes->isEmpty())
|
||||
<li style="" class="">No notes found</li>
|
||||
@else
|
||||
<?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" 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>
|
||||
</div>
|
||||
<div class="message_wrapper">
|
||||
<h4 class="heading">{{ $show_notes[$i]->client_info->name }}</h4>
|
||||
<blockquote class="message"><em>Content : </em> {{ $show_notes[$i]->notes_body }}</blockquote>
|
||||
<br />
|
||||
<p class="url">
|
||||
<span class="fs1 text-info" aria-hidden="true" data-icon=""></span>
|
||||
<input type="hidden" name="notes_id" class="notesRowId" value="{{ $show_notes[$i]->id }}">
|
||||
<a href="#" class="notesEditBtn"><i class="fa fa-edit"></i>Account Manager : {{ $show_notes[$i]->created_by_info->name }} </a>
|
||||
</p>
|
||||
</div>
|
||||
</li>
|
||||
<?php } ?>
|
||||
@endif
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel">
|
||||
<a class="panel-heading collapsed" role="tab" id="headingFour" data-toggle="collapse" data-parent="#accordion" href="#collapseFour" aria-expanded="false" aria-controls="collapseFour">
|
||||
<h4 class="panel-title">Recent Payments</h4>
|
||||
</a>
|
||||
<div id="collapseFour" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingFour">
|
||||
<div class="panel-body">
|
||||
<!-- <p><strong>Collapsible Item Four data</strong></p> -->
|
||||
<button type="button" class="btn btn-success btn-sm pull-rightb" id="createPaymentBtn"><i class="fa fa-plus-square"></i> New Payment Details</button>
|
||||
<div class="clearfix"></div>
|
||||
<div class="" style="background-color: #dce2e4; height: 400px; overflow: scroll;">
|
||||
@include('client.partials.recent-payments')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel">
|
||||
<a class="panel-heading collapsed" role="tab" id="headingSix" data-toggle="collapse" data-parent="#accordion" href="#collapseSix" aria-expanded="false" aria-controls="collapseSix">
|
||||
<h4 class="panel-title">SMS Short Codes</h4>
|
||||
</a>
|
||||
<div id="collapseSix" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingSix">
|
||||
<div class="panel-body">
|
||||
<!-- <p><strong>Collapsible Item Six data</strong></p> -->
|
||||
<button type="button" class="btn btn-success btn-sm pull-rightE" id="createSmsShortCodeBtn"><i class="fa fa-plus-square"></i> New Short Code</button>
|
||||
<div class="clearfix"></div>
|
||||
@include('client.partials.sms-codes')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel">
|
||||
<a class="panel-heading collapsed" role="tab" id="headingSeven" data-toggle="collapse" data-parent="#accordion" href="#collapseSeven" aria-expanded="false" aria-controls="collapseSeven">
|
||||
<h4 class="panel-title">USSD Short Codes</h4>
|
||||
</a>
|
||||
<div id="collapseSeven" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingSeven">
|
||||
<div class="panel-body">
|
||||
<!-- <h4 class="lead"><strong>USSD Short Codes </strong></h4> -->
|
||||
<button type="button" class="btn btn-success btn-sm" id="createUssdShortCodeBtn"><i class="fa fa-plus-square"></i> New Short Code</button>
|
||||
<div class="clearfix"></div>
|
||||
@include('client.partials.ussd-codes')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel">
|
||||
<a class="panel-heading collapsed" role="tab" id="headingVoice" data-toggle="collapse" data-parent="#accordion" href="#collapseVoice" aria-expanded="false" aria-controls="collapseVoice">
|
||||
<h4 class="panel-title">Voice Short Codes</h4>
|
||||
</a>
|
||||
<div id="collapseVoice" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingVoice">
|
||||
<div class="panel-body">
|
||||
<!-- <p><strong>Collapsible Item Voice data</strong></p> -->
|
||||
<button type="button" class="btn btn-success btn-sm" id="createVoiceShortCodeBtn"><i class="fa fa-plus-square"></i> New Short Code</button>
|
||||
<div class="clearfix"></div>
|
||||
@include('client.partials.voice-codes')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- end of accordion -->
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@endsection
|
||||
@section('javascript')
|
||||
<script src="{{ url('public/assets/vendors/iCheck/icheck.min.js') }}"></script>
|
||||
<script src="{{ url('public/assets/js/clientshow.js') }}"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
// iCheck
|
||||
$(document).ready(function() {
|
||||
if ($("input.flat")[0]) {
|
||||
$(document).ready(function () {
|
||||
$('input.flat').iCheck({
|
||||
checkboxClass: 'icheckbox_flat-green',
|
||||
radioClass: 'iradio_flat-green'
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
// /iCheck
|
||||
|
||||
// Table
|
||||
$('table input').on('ifChecked', function () {
|
||||
checkState = '';
|
||||
$(this).parent().parent().parent().addClass('selected');
|
||||
countChecked();
|
||||
});
|
||||
$('table input').on('ifUnchecked', function () {
|
||||
checkState = '';
|
||||
$(this).parent().parent().parent().removeClass('selected');
|
||||
countChecked();
|
||||
});
|
||||
|
||||
var checkState = '';
|
||||
|
||||
$('.bulk_action input').on('ifChecked', function () {
|
||||
checkState = '';
|
||||
$(this).parent().parent().parent().addClass('selected');
|
||||
countChecked();
|
||||
});
|
||||
$('.bulk_action input').on('ifUnchecked', function () {
|
||||
checkState = '';
|
||||
$(this).parent().parent().parent().removeClass('selected');
|
||||
countChecked();
|
||||
});
|
||||
$('.bulk_action input#check-all').on('ifChecked', function () {
|
||||
checkState = 'all';
|
||||
countChecked();
|
||||
});
|
||||
$('.bulk_action input#check-all').on('ifUnchecked', function () {
|
||||
checkState = 'none';
|
||||
countChecked();
|
||||
});
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
@@ -1,5 +1,5 @@
|
||||
@if ($errors->any())
|
||||
<ul class="alert alert-danger" style="padding-left:30px;">
|
||||
<ul class="alert alert-danger" style="padding-left:10px; list-style-type: none; color: #fff;">
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{!! $error !!}</li>
|
||||
@endforeach
|
||||
@@ -7,11 +7,11 @@
|
||||
@endif
|
||||
|
||||
@if(Session::has('success_message'))
|
||||
<div style="text-align: center" class="alert alert-success notification-alert">
|
||||
<div style="text-align: center" class="alert alert-success notification-alert" style="color: #ffff;">
|
||||
{{ Session::get('success_message') }}
|
||||
</div>
|
||||
@elseif(Session::has('error_message'))
|
||||
<div style="text-align: center" class="alert alert-danger notification-alert">
|
||||
<div style="text-align: center" class="alert alert-danger notification-alert" style="color: #ffff;">
|
||||
{{ Session::get('error_message') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
307
resources/views/dashboard/index_two.blade copy 22-05-2025.php
Normal file
307
resources/views/dashboard/index_two.blade copy 22-05-2025.php
Normal file
@@ -0,0 +1,307 @@
|
||||
@extends('layouts.master')
|
||||
@section('css')
|
||||
|
||||
@endsection
|
||||
@section('content')
|
||||
|
||||
|
||||
|
||||
<div class="">
|
||||
|
||||
<div class="right_cols" role="main">
|
||||
<div class="">
|
||||
<div class="row top_tiles">
|
||||
<div class="animated flipInY col-lg-3 col-md-3 col-sm-6 col-xs-12">
|
||||
<div class="tile-stats">
|
||||
<div class="icon"><i class="fa fa-sun-o"></i></div>
|
||||
<div class="count">{{ $total }}</div>
|
||||
<h3 class="" style="color: #53b8e5">Total Clients</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="animated flipInY col-lg-3 col-md-3 col-sm-6 col-xs-12">
|
||||
<div class="tile-stats">
|
||||
<div class="icon"><i class="fa fa-comments-o"></i></div>
|
||||
<div class="count">{{ $sms }}</div>
|
||||
<h3 style="color: #53b8e5">SMS Clients</h3>
|
||||
<!-- <p>Lorem ipsum psdea itgum rixt.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="animated flipInY col-lg-3 col-md-3 col-sm-6 col-xs-12">
|
||||
<div class="tile-stats">
|
||||
<div class="icon"><i class="fa fa-mobile-phone"></i></div>
|
||||
<div class="count">{{ $ussd }}</div>
|
||||
<h3 style="color: #53b8e5">USSD Client</h3>
|
||||
<!-- <p>Lorem ipsum psdea itgum rixt.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="animated flipInY col-lg-3 col-md-3 col-sm-6 col-xs-12">
|
||||
<div class="tile-stats">
|
||||
<div class="icon"><i class="fa fa-bullhorn"></i></div>
|
||||
<div class="count">{{ $voice }}</div>
|
||||
<h3 style="color: #53b8e5">Voice Clients</h3>
|
||||
<!-- <p>Lorem ipsum psdea itgum rixt.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
<h2>Quotes <small></small></h2>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="x_content">
|
||||
<div class="row" style="border-bottom: 1px solid #E0E0E0; padding-bottom: 5px; margin-bottom: 5px;">
|
||||
<div class="col-md-6" style="overflow:hidden;">
|
||||
<span class="sparkline_one" style="height: 160px; padding: 10px 25px;">
|
||||
<blockquote id="dailyQuoteBlock"> ... </blockquote>
|
||||
<p id="authorParagraph"></p>
|
||||
</span>
|
||||
<h4 style="margin:18px" class="red">Quote of the Day </h4>
|
||||
</div>
|
||||
<div class="col-md-6" style="overflow:hidden;">
|
||||
<span class="sparkline_one" style="height: 160px; padding: 10px 25px;">
|
||||
<blockquote id="dailyQuoteBlock">
|
||||
He my polite be object oh change. Consider no mr am overcame yourself throwing sociable children.
|
||||
</blockquote>
|
||||
</span>
|
||||
<h4 style="margin:18px" class="blue">Sam Message of the Day </h4>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
<h2>Contract Expiry Notice <small></small></h2>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="x_content">
|
||||
<div class="row" style="border-bottom: 1px solid #E0E0E0; padding-bottom: 5px; margin-bottom: 5px;">
|
||||
<div class="col-md-12">
|
||||
<div class="row" style="text-align: center;">
|
||||
<div class="col-md-12">
|
||||
<h4 class="blue"><u> MNO Contracts</u></h4>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<h5 style="margin:0" class="text-danger">Expired</h5>
|
||||
<div class="badge bg-red" style="margin: 5px 10px 10px 0" id="mnoExpired">0</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<h5 style="margin:0" class="text-warning">Expiring This Month </h5>
|
||||
<div class="badge bg-orange" style="margin: 5px 10px 10px 0" id="mnoExpiringThisMonth">0</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<!-- <canvas class="canvasDoughnut" height="110" width="110" style="margin: 5px 10px 10px 0"></canvas> -->
|
||||
<h5 style="margin:0" class="text-primary">Expiring in 3 months</h5>
|
||||
<div class="badge bg-green" style="margin: 5px 10px 10px 0" id="mnoExpiringInThreeMonths">0</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row" style="text-align: center;">
|
||||
<div class="col-md-12">
|
||||
<h4 class="blue"><u>Client Contracts</u></h4>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<h5 style="margin:0" class="text-dangers">Expired</h5>
|
||||
<div class="badge bg-red" style="margin: 5px 10px 10px 0" id="clientExpired">0</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
|
||||
<h5 style="margin:0" class="text-warning">Expiring This Month </h5>
|
||||
<div class="badge bg-orange" style="margin: 5px 10px 10px 0" id="clientExpiringThisMonth">0</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<!-- <canvas class="canvasDoughnut" height="110" width="110" style="margin: 5px 10px 10px 0"></canvas> -->
|
||||
<h5 style="margin:0" class="text-primary">Expiring in 3 months</h5>
|
||||
<div class="badge bg-green" style="margin: 5px 10px 10px 0" id="clientExpiringInThreeMonths">0</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
<h2 class="blue">Recent Activities </h2>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="x_content">
|
||||
<div class="dashboard-widget-content">
|
||||
<ul class="list-unstyled timeline widget">
|
||||
@if($user_activities->isEmpty() == false)
|
||||
@foreach($user_activities as $userrow)
|
||||
<li>
|
||||
<div class="block">
|
||||
<div class="block_content">
|
||||
<h2 class="title">
|
||||
<a>{{ $userrow->content }}</a>
|
||||
</h2>
|
||||
<div class="byline">
|
||||
<span>{{ $userrow->activity_time }}</span>
|
||||
<!-- by <a>Jane Smith</a> -->
|
||||
</div>
|
||||
<p class="excerpt"></p>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
@endforeach
|
||||
@endif
|
||||
</ul>
|
||||
</div>
|
||||
<a href="{{ url('reports/useractivities') }}" class="btn btn-link">View More</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
<h2 class="blue">Contracts Expiry Dates </h2>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="x_content">
|
||||
@if($expiring_contracts->isEmpty() == false)
|
||||
@foreach($expiring_contracts as $row)
|
||||
<article class="media event">
|
||||
<a class="pull-left date" style="background-color: #de9a24">
|
||||
|
||||
<p class="month" style="margin-top: -4px; margin-bottom: -4px;">{{ date("M", strtotime($row->contract_validity)) }}</p>
|
||||
<p class="day" style="font-size: 22px !important">{{ date("d", strtotime($row->contract_validity)) }}</p>
|
||||
<p class="text-center" style="color:#fff; margin-bottom: -4px; margin-top: -4px;">{{ date("Y", strtotime($row->contract_validity)) }}</p>
|
||||
|
||||
</a>
|
||||
<div class="media-body">
|
||||
<a class="title" title="View Client Details" href="{{ url('clients', $row->id) }}">{{ $row->name }}</a>
|
||||
<p class="">Contract Type : {{ strtoupper($row->contract_type) }}</p>
|
||||
<p class="">Auto Renew : {{ strtoupper($row->contract_auto_renew) }}</p>
|
||||
|
||||
</div>
|
||||
</article>
|
||||
@endforeach
|
||||
@else
|
||||
<article class="media event">
|
||||
<a class="pull-left date">
|
||||
<p class="month">00</p>
|
||||
<p class="day">00</p>
|
||||
</a>
|
||||
<div class="media-body">
|
||||
<a class="title" href="#"></a>
|
||||
<p>No Records</p>
|
||||
</div>
|
||||
</article>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="x_title">
|
||||
<h2 class="blue">Upcoming Holidays</h2>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<ul class="list-unstyled top_profiles scroll-view">
|
||||
@foreach($upcoming_hodidays as $holiday_row)
|
||||
<li class="media event">
|
||||
<a class="pull-left border-aero profile_thumb">
|
||||
<i class="fa fa-cube aero"></i>
|
||||
</a>
|
||||
<div class="media-body">
|
||||
<a class="title" href="#">{{ $holiday_row->name }}</a>
|
||||
<p><strong></strong> {{ date("jS, F", strtotime($holiday_row->event_date)) }} </p>
|
||||
<p> <small>{{ $holiday_row->country }}</small>
|
||||
</p>
|
||||
</div>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
<h2 class="blue">Newly Added Clients</h2>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="x_content">
|
||||
@if($recent_clients->isEmpty() == false)
|
||||
@foreach($recent_clients as $recentrow)
|
||||
<article class="media event">
|
||||
<a class="pull-left date" style="background-color: #de9a24">
|
||||
|
||||
<p class="month" style="margin-top: -4px; margin-bottom: -4px;">{{ date("M", strtotime($recentrow->created_at)) }}</p>
|
||||
<p class="day" style="font-size: 22px !important">{{ date("d", strtotime($recentrow->created_at)) }}</p>
|
||||
<p class="text-center" style="color:#fff; margin-bottom: -4px; margin-top: -4px;">{{ date("Y", strtotime($recentrow->created_at)) }}</p>
|
||||
|
||||
</a>
|
||||
<div class="media-body">
|
||||
<a class="title" title="View Client Details" href="{{ url('clients', $row->id) }}">{{ $recentrow->name }}</a>
|
||||
<p class="">Company Type : {{ strtoupper($recentrow->company_type) }}</p>
|
||||
<p class="">Account Manager : {{ strtoupper($recentrow->auth_user_info->name) }}</p>
|
||||
</div>
|
||||
</article>
|
||||
@endforeach
|
||||
@else
|
||||
<article class="media event">
|
||||
<a class="pull-left date">
|
||||
<p class="month">00</p>
|
||||
<p class="day">00</p>
|
||||
</a>
|
||||
<div class="media-body">
|
||||
<a class="title" href="#"></a>
|
||||
<p>No Records</p>
|
||||
</div>
|
||||
</article>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="x_title">
|
||||
<h2 class="blue">Upcoming Birthdays</h2>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<ul class="list-unstyled top_profiles scroll-view">
|
||||
@foreach($upcoming_birthdays as $dobrow)
|
||||
<li class="media event">
|
||||
<a class="pull-left border-aero profile_thumb">
|
||||
<i class="fa fa-user aero"></i>
|
||||
</a>
|
||||
<div class="media-body">
|
||||
<a class="title" href="#">{{ $dobrow->name }}</a>
|
||||
<p><strong></strong> {{ date("jS, F", strtotime($dobrow->dob)) }} </p>
|
||||
<!-- <p> <small>12 Sales Today</small> -->
|
||||
</p>
|
||||
</div>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@endsection
|
||||
@section('javascript')
|
||||
|
||||
<!-- DateJS -->
|
||||
<script src="{{ url('public/assets/vendors/DateJS/build/date.js') }}"></script>
|
||||
<script src="{{ url('public/assets/js/dashboard.js') }}"></script>
|
||||
@endsection
|
||||
@@ -11,18 +11,18 @@
|
||||
<div class="right_cols" role="main">
|
||||
<div class="">
|
||||
<div class="row top_tiles">
|
||||
<div class="animated flipInY col-lg-3 col-md-3 col-sm-6 col-xs-12">
|
||||
<!-- <div class="animated flipInY col-lg-3 col-md-3 col-sm-6 col-xs-12">
|
||||
<div class="tile-stats">
|
||||
<div class="icon"><i class="fa fa-sun-o"></i></div>
|
||||
<div class="count">{{ $total }}</div>
|
||||
<h3 class="" style="color: #1ABB9C">Total Clients</h3>
|
||||
<h3 class="" style="color: #53b8e5">Total Clients</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="animated flipInY col-lg-3 col-md-3 col-sm-6 col-xs-12">
|
||||
<div class="tile-stats">
|
||||
<div class="icon"><i class="fa fa-comments-o"></i></div>
|
||||
<div class="count">{{ $sms }}</div>
|
||||
<h3 style="color: #1ABB9C">SMS Clients</h3>
|
||||
<h3 style="color: #53b8e5">SMS Clients</h3>
|
||||
<!-- <p>Lorem ipsum psdea itgum rixt.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
@@ -30,7 +30,7 @@
|
||||
<div class="tile-stats">
|
||||
<div class="icon"><i class="fa fa-mobile-phone"></i></div>
|
||||
<div class="count">{{ $ussd }}</div>
|
||||
<h3 style="color: #1ABB9C">USSD Client</h3>
|
||||
<h3 style="color: #53b8e5">USSD Client</h3>
|
||||
<!-- <p>Lorem ipsum psdea itgum rixt.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
@@ -38,7 +38,15 @@
|
||||
<div class="tile-stats">
|
||||
<div class="icon"><i class="fa fa-bullhorn"></i></div>
|
||||
<div class="count">{{ $voice }}</div>
|
||||
<h3 style="color: #1ABB9C">Voice Clients</h3>
|
||||
<h3 style="color: #53b8e5">Voice Clients</h3>
|
||||
<!-- <p>Lorem ipsum psdea itgum rixt.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="animated flipInY col-lg-3 col-md-3 col-sm-6 col-xs-12">
|
||||
<div class="tile-stats">
|
||||
<div class="icon"><i class="fa fa-certificate"></i></div>
|
||||
<div class="count">{{ $airtime }}</div>
|
||||
<h3 style="color: #53b8e5">Airtime Clients</h3>
|
||||
<!-- <p>Lorem ipsum psdea itgum rixt.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
@@ -47,9 +55,94 @@
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="col-md-6">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
<h2>Quotes <small></small></h2>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="x_content">
|
||||
<div class="row" style="border-bottom: 1px solid #E0E0E0; padding-bottom: 5px; margin-bottom: 5px;">
|
||||
<div class="col-md-6" style="overflow:hidden;">
|
||||
<span class="sparkline_one" style="height: 160px; padding: 10px 25px;">
|
||||
<blockquote id="dailyQuoteBlock"> ... </blockquote>
|
||||
<p id="authorParagraph"></p>
|
||||
</span>
|
||||
<h4 style="margin:18px" class="red">Quote of the Day </h4>
|
||||
</div>
|
||||
<div class="col-md-6" style="overflow:hidden;">
|
||||
<span class="sparkline_one" style="height: 160px; padding: 10px 25px;">
|
||||
<blockquote id="dailyQuoteBlock">
|
||||
Carry out a random act of kindness, with no expectation of reward, safe in the knowledge that one day someone might do the same for you.
|
||||
</blockquote>
|
||||
</span>
|
||||
<h4 style="margin:18px" class="blue">Sam Message of the Day </h4>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
<h2>Contract Expiry Notice <small></small></h2>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="x_content">
|
||||
<div class="row" style="border-bottom: 1px solid #E0E0E0; padding-bottom: 5px; margin-bottom: 5px;">
|
||||
<div class="col-md-12">
|
||||
<div class="row" style="text-align: center;">
|
||||
<div class="col-md-12">
|
||||
<h4 class="blue"><u> MNO Contracts</u></h4>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<h5 style="margin:0" class="text-danger">Expired</h5>
|
||||
<div class="badge bg-red" style="margin: 5px 10px 10px 0" id="mnoExpired"><a href="{{ url('reports/expiredmnocontracts') }}" id="mnoExpiredHref" style="color:#fff;" >0</a></div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<h5 style="margin:0" class="text-warning">Expiring This Month </h5>
|
||||
<div class="badge bg-orange" style="margin: 5px 10px 10px 0" id="mnoExpiringThisMonth"><a href="{{ url('reports/expiredclientcontracts') }}" id="mnoExpiringThisMonthHref" style="color: #fff;" >0</a></div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<!-- <canvas class="canvasDoughnut" height="110" width="110" style="margin: 5px 10px 10px 0"></canvas> -->
|
||||
<h5 style="margin:0" class="text-primary">Expiring in 3 months</h5>
|
||||
<div class="badge bg-green" style="margin: 5px 10px 10px 0" id="mnoExpiringInThreeMonths">0</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row" style="text-align: center;">
|
||||
<div class="col-md-12">
|
||||
<h4 class="blue"><u>Client Contracts</u></h4>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<h5 style="margin:0" class="text-dangers">Expired</h5>
|
||||
<div class="badge bg-red" style="margin: 5px 10px 10px 0" id="clientExpired"><a href="{{ url('reports/expiredclientscontracts') }}" id="clientExpiredHref" style="color: #fff;" >0</a></div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
|
||||
<h5 style="margin:0" class="text-warning">Expiring This Month </h5>
|
||||
<div class="badge bg-orange" style="margin: 5px 10px 10px 0" id="clientExpiringThisMonth">0</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<!-- <canvas class="canvasDoughnut" height="110" width="110" style="margin: 5px 10px 10px 0"></canvas> -->
|
||||
<h5 style="margin:0" class="text-primary">Expiring in 3 months</h5>
|
||||
<div class="badge bg-green" style="margin: 5px 10px 10px 0" id="clientExpiringInThreeMonths">0</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
<h2 class="blue">Recent Activities </h2>
|
||||
@@ -83,52 +176,61 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="col-md-3">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
<h2 class="red">Contracts Expiry Dates </h2>
|
||||
|
||||
<h2 class="blue">Upcoming Holidays </h2>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="x_content">
|
||||
@if($expiring_contracts->isEmpty() == false)
|
||||
@foreach($expiring_contracts as $row)
|
||||
<article class="media event">
|
||||
<a class="pull-left date" style="background-color: #de9a24">
|
||||
|
||||
<p class="month" style="margin-top: -4px; margin-bottom: -4px;">{{ date("M", strtotime($row->contract_validity)) }}</p>
|
||||
<p class="day" style="font-size: 22px !important">{{ date("d", strtotime($row->contract_validity)) }}</p>
|
||||
<p class="text-center" style="color:#fff; margin-bottom: -4px; margin-top: -4px;">{{ date("Y", strtotime($row->contract_validity)) }}</p>
|
||||
|
||||
</a>
|
||||
<div class="media-body">
|
||||
<a class="title" title="View Client Details" href="{{ url('clients', $row->id) }}">{{ $row->name }}</a>
|
||||
<p class="">Contract Type : {{ strtoupper($row->contract_type) }}</p>
|
||||
<p class="">Auto Renew : {{ strtoupper($row->contract_auto_renew) }}</p>
|
||||
|
||||
</div>
|
||||
</article>
|
||||
@endforeach
|
||||
@else
|
||||
<article class="media event">
|
||||
<a class="pull-left date">
|
||||
<p class="month">00</p>
|
||||
<p class="day">00</p>
|
||||
</a>
|
||||
<div class="media-body">
|
||||
<a class="title" href="#"></a>
|
||||
<p>No Records</p>
|
||||
</div>
|
||||
</article>
|
||||
@endif
|
||||
<ul class="list-unstyled top_profiles scroll-view">
|
||||
@foreach($upcoming_hodidays as $holiday_row)
|
||||
<li class="media event">
|
||||
<a class="pull-left border-aero profile_thumb">
|
||||
<i class="fa fa-cube aero"></i>
|
||||
</a>
|
||||
<div class="media-body">
|
||||
<a class="title" href="#">{{ $holiday_row->name }}</a>
|
||||
<p><strong></strong> {{ date("jS, F", strtotime($holiday_row->event_date)) }} </p>
|
||||
<p> <small>{{ $holiday_row->country }}</small>
|
||||
</p>
|
||||
</div>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="col-md-3">
|
||||
<div class="x_panel">
|
||||
|
||||
<div class="x_title">
|
||||
<h2 class="blue">Upcoming Birthdays</h2>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<ul class="list-unstyled top_profiles scroll-view">
|
||||
@foreach($upcoming_birthdays as $dobrow)
|
||||
<li class="media event">
|
||||
<a class="pull-left border-aero profile_thumb">
|
||||
<i class="fa fa-user aero"></i>
|
||||
</a>
|
||||
<div class="media-body">
|
||||
<a class="title" href="#">{{ $dobrow->name }}</a>
|
||||
<p><strong></strong> {{ date("jS, F", strtotime($dobrow->dob)) }} </p>
|
||||
<!-- <p> <small>12 Sales Today</small> -->
|
||||
</p>
|
||||
</div>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
<h2 class="green">Newly Added Clients</h2>
|
||||
<h2 class="blue">Newly Added Clients</h2>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="x_content">
|
||||
@@ -143,7 +245,7 @@
|
||||
|
||||
</a>
|
||||
<div class="media-body">
|
||||
<a class="title" title="View Client Details" href="{{ url('clients', $row->id) }}">{{ $recentrow->name }}</a>
|
||||
<a class="title" title="View Client Details" href="{{ url('clients', $recentrow->id) }}">{{ $recentrow->name }}</a>
|
||||
<p class="">Company Type : {{ strtoupper($recentrow->company_type) }}</p>
|
||||
<p class="">Account Manager : {{ strtoupper($recentrow->auth_user_info->name) }}</p>
|
||||
</div>
|
||||
@@ -163,6 +265,7 @@
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -175,6 +278,4 @@
|
||||
<!-- DateJS -->
|
||||
<script src="{{ url('public/assets/vendors/DateJS/build/date.js') }}"></script>
|
||||
<script src="{{ url('public/assets/js/dashboard.js') }}"></script>
|
||||
|
||||
|
||||
@endsection
|
||||
@endsection
|
||||
42
resources/views/emails/otp.blade.php
Normal file
42
resources/views/emails/otp.blade.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
</head>
|
||||
<body>
|
||||
<div class="">
|
||||
<img src="{!! url('public/assets/img/click-banner.png') !!}" alt="Click Mobile Banner Logo">
|
||||
</div>
|
||||
<h2>{{ date('F d, Y') }} </h2>
|
||||
<h3>ERP Login OTP</h3>
|
||||
|
||||
|
||||
Hello {{ $auth_name }},<br>
|
||||
|
||||
<p>
|
||||
To gain access to the ERP you are required to verify your identify. <br>
|
||||
Use the code below to complete the sign in process.
|
||||
</b>
|
||||
<p>
|
||||
<strong>
|
||||
{{ strtoupper($otp) }}
|
||||
</strong>
|
||||
</p>
|
||||
</p>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<h3>Why you received this email</h3>
|
||||
<p>
|
||||
Click Mobile security policy requires verification whenever an attempt is made to sign in to all internal systems.
|
||||
You cannot gain access until you verify.
|
||||
</p>
|
||||
<p>
|
||||
If you did not make this request, please disregard this email
|
||||
</p>
|
||||
<p>
|
||||
Sincerely, <br>
|
||||
Click Mobile ERP
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,3 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
</head>
|
||||
<body>
|
||||
<div class="">
|
||||
<img src="{!! url('public/assets/img/click-banner.png') !!}" alt="Click Mobile Banner Logo">
|
||||
</div>
|
||||
|
||||
<table bgcolor="#fff" width="100%" cellpadding="2" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
@@ -66,4 +76,8 @@
|
||||
<td style="font-weight: normal; font-size: 0.9em; color: #000000; font-family: Arial,helvetica,sans; padding:0px; text-align:left; border-style:solid; border-width:1px; border-color:#000000;">some text</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -8,8 +8,6 @@
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
|
||||
|
||||
<title>Click Mobile | @yield('page_title') </title>
|
||||
|
||||
<!-- Bootstrap -->
|
||||
@@ -43,7 +41,7 @@
|
||||
}
|
||||
hr.style-five:after { /* Not really supposed to work, but does */
|
||||
content: "\00a0"; /* Prevent margin collapse */
|
||||
}
|
||||
}åå
|
||||
hr.style-four {
|
||||
height: 12px;
|
||||
border: 0;
|
||||
@@ -58,7 +56,10 @@
|
||||
<div class="col-md-3 left_col">
|
||||
<div class="left_col scroll-view">
|
||||
<div class="navbar nav_title" style="border: 0;">
|
||||
<a href="index.html" class="site_title"><i class="fa fa-paw"></i> <span>Click ERP</span></a>
|
||||
<img src="{{ url('public/assets/img/clicklogo.png') }}" width="230px" height="70px">
|
||||
<!-- <a href="{{ url('/') }}" class="site_title"><i class="fa fa-paw"></i>
|
||||
<span>Click ERP</span>
|
||||
</a> -->
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
@@ -114,7 +115,7 @@
|
||||
<!-- footer content -->
|
||||
<footer>
|
||||
<div class="pull-right" style="">
|
||||
Click Mobile | <a href="https://click-mobile.com">Main Website</a>
|
||||
Click Mobile | Adding value to voice, data and media
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</footer>
|
||||
|
||||
@@ -2,8 +2,12 @@
|
||||
<div class="menu_section">
|
||||
<h3>General</h3>
|
||||
<ul class="nav side-menu">
|
||||
<li><a href="{!! url('dashboard') !!}"><i class="fa fa-home"></i> Dashboard</a></li>
|
||||
<li><a href="{!! url('clients') !!}"><i class="fa fa-users"></i> Clients</a></li>
|
||||
<li><a href="{!! url('dashboard') !!}"><i class="fa fa-users"></i> Click Dashboard</a></li>
|
||||
<li><a><i class="fa fa-file"></i> Clients <span class="fa fa-chevron-down"></span></a>
|
||||
<ul class="nav child_menu">
|
||||
<li><a href="{!! url('clients') !!}">Active Clients</a></li>
|
||||
<li><a href="{!! url('inactive-clients') !!}">Inactive Clients</a></li>
|
||||
</ul>
|
||||
<li><a><i class="fa fa-file"></i> Documents <span class="fa fa-chevron-down"></span></a>
|
||||
<ul class="nav child_menu">
|
||||
<li><a href="{!! url('generaldocuments') !!}">Overview</a></li>
|
||||
@@ -29,11 +33,13 @@
|
||||
<!-- <li> -->
|
||||
<li><a><i class="fa fa-table"></i>Reports <span class="fa fa-chevron-down"></span></a>
|
||||
<ul class="nav child_menu">
|
||||
<li><a href="{!! url('reports/overview') !!}">Overview</a></li>
|
||||
<!-- <li><a href="{!! url('reports/overview') !!}">Overview</a></li> -->
|
||||
<li><a href="{!! url('clientpaymentreports') !!}">Client Payments</a></li>
|
||||
<li><a href="{!! url('reports/clientsbyservice') !!}">VAS Clients</a></li>
|
||||
<li><a href="{!! url('mnopaymentreports') !!}">MNO Payments</a></li>
|
||||
<li><a href="{!! url('reports/recentclients') !!}">Recent Clients</a></li>
|
||||
<li><a href="{!! url('reports/expiredmnocontracts') !!}">Expired MNO Contracts</a></li>
|
||||
<li><a href="{!! url('reports/expiredclientcontracts') !!}">Expired Client Contracts</a></li>
|
||||
<li><a href="{!! url('reports/useractivities') !!}">User Activities</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
@@ -11,7 +11,7 @@ $staff_member_id = session('current_user.id');
|
||||
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li class="">
|
||||
<a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
|
||||
<a href="javascript:;" class="user-profile dropdown-toggle text-primary" data-toggle="dropdown" aria-expanded="false">
|
||||
<img src="{{ url('public/assets/img/user.png') }}" alt="">{{ session('current_user.name') }}
|
||||
<span class=" fa fa-angle-down"></span>
|
||||
</a>
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
<section class="login_content">
|
||||
@include('commons.notifications')
|
||||
|
||||
<form method="post" action="{!! url('login') !!}">
|
||||
<form method="post" action="{!! url('otplogin') !!}">
|
||||
{{ csrf_field() }}
|
||||
<h1>Login Here</h1>
|
||||
<div>
|
||||
|
||||
110
resources/views/login/otp.blade.php
Normal file
110
resources/views/login/otp.blade.php
Normal file
@@ -0,0 +1,110 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<!-- Meta, title, CSS, favicons, etc. -->
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<title>Click Mobile ERP | OTP </title>
|
||||
|
||||
<!-- Bootstrap -->
|
||||
<link href="{!! url('public/assets/vendors/bootstrap/dist/css/bootstrap.min.css') !!}" rel="stylesheet">
|
||||
<!-- Font Awesome -->
|
||||
<link href="{!! url('public/assets/vendors/font-awesome/css/font-awesome.min.css') !!}" rel="stylesheet">
|
||||
<!-- NProgress -->
|
||||
<link href="{!! url('public/assets/vendors/nprogress/nprogress.css') !!}" rel="stylesheet">
|
||||
<!-- Animate.css -->
|
||||
<link href="{!! url('public/assets/vendors/animate.css/animate.min.css') !!}" rel="stylesheet">
|
||||
|
||||
<!-- Custom Theme Style -->
|
||||
<link href="{!! url('public/assets/build/css/custom.min.css') !!}" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body class="login">
|
||||
<div>
|
||||
<a class="hiddenanchor" id="signup"></a>
|
||||
<a class="hiddenanchor" id="signin"></a>
|
||||
|
||||
<div class="login_wrapper">
|
||||
<div class="animate form login_form">
|
||||
<section class="login_content">
|
||||
|
||||
|
||||
<form method="post" action="{!! url('login') !!}">
|
||||
<input type="hidden" name="otp_user_id" value="{{ $otp_user_id }}" >
|
||||
{{ csrf_field() }}
|
||||
<h1>OTP Form</h1>
|
||||
<p class="alert alert-info" id="otpInfoArea">Hello {{ $auth_name }}, an OTP has been sent to your email address, use it to complete the login process</p>
|
||||
@include('commons.notifications')
|
||||
<div>
|
||||
<input type="text" name="otp" id="otpText" class="form-control" placeholder=" --- Enter OTP Here ---" required="" />
|
||||
</div>
|
||||
<!-- <div>
|
||||
<input type="password" name="password" class="form-control" placeholder="Password" required="" />
|
||||
</div> -->
|
||||
<div>
|
||||
<button type="submit" id="otpSubmitBtn" class="btn btn-success submit btn-block">Submit</button>
|
||||
<p class="text-center text-danger" id="timer"></p>
|
||||
<div class="text-center">
|
||||
<a class="btn btn-link text-center" href="{{ url('resendotp') }}">Resend OTP</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<div class="separator">
|
||||
<!-- <p class="change_link">New to site?
|
||||
<a href="#signup" class="to_register"> Create Account </a>
|
||||
</p> -->
|
||||
|
||||
<div class="clearfix"></div>
|
||||
<br />
|
||||
|
||||
<div>
|
||||
<h1><i class="fa fa-paw"></i> Click ERP </h1>
|
||||
<p>©{{ date('Y') }} All Rights Reserved. Click Mobile</p>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<script src="{!! url('public/assets/vendors/jquery/dist/jquery.min.js') !!}"></script>
|
||||
<script src="{!! url('public/assets/vendors/bootstrap/dist/js/bootstrap.min.js') !!}"></script>
|
||||
<script src="{!! url('public/assets/vendors/moment/min/moment.min.js') !!}"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
var timeLeft = 120; // 2 minutes in seconds
|
||||
|
||||
function updateTimer() {
|
||||
var minutes = Math.floor(timeLeft / 60);
|
||||
var seconds = timeLeft % 60;
|
||||
seconds = seconds < 10 ? "0" + seconds : seconds; // Format seconds
|
||||
|
||||
$("#timer").text(minutes + ":" + seconds);
|
||||
|
||||
if (timeLeft > 0) {
|
||||
timeLeft--;
|
||||
setTimeout(updateTimer, 1000);
|
||||
}
|
||||
else {
|
||||
$("#timer").text("Time's up!");
|
||||
$('#otpSubmitBtn').prop('disabled', true);
|
||||
$('#otpText').prop('disabled', true);
|
||||
$('#otpInfoArea').removeClass('alert alert-info');
|
||||
$('#otpInfoArea').addClass('alert alert-warning');
|
||||
|
||||
}
|
||||
}
|
||||
updateTimer(); // Start the countdown
|
||||
});
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -103,6 +103,11 @@
|
||||
sorter: "string",
|
||||
formatter:link,
|
||||
},
|
||||
{
|
||||
title: "Validity Date",
|
||||
field: "validity_period",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "File",
|
||||
field: "file_reff",
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
<input type="hidden" name="branch_id" value="{{ $branch_id }}">
|
||||
<div class="row">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('how_we_got_client_other') ? 'has-error' : ''}}">
|
||||
<label class="" for="documentOneName">First Document Name</label>
|
||||
@@ -40,7 +40,16 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('validity_period_one') ? 'has-error' : ''}}">
|
||||
<label class="" for="validityPeriodOne">Validity Period(Optional)</label>
|
||||
{!! Form::text('validity_period_one', null, ['class' => 'form-control validityPeriod' , 'id' => 'validityPeriodOne', 'placeholder' => '']) !!}
|
||||
{!! $errors->first('validity_period_one', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('document_one') ? 'has-error' : ''}}">
|
||||
<label class="" for="documentOne">First Document</label>
|
||||
@@ -51,7 +60,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('how_we_got_client_other') ? 'has-error' : ''}}">
|
||||
<label class="" for="documentOneName">Second Document Name</label>
|
||||
@@ -60,7 +69,16 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('validity_period_two') ? 'has-error' : ''}}">
|
||||
<label class="" for="validityPeriodOne">Validity Period(Optional)</label>
|
||||
{!! Form::text('validity_period_two', null, ['class' => 'form-control validityPeriod' , 'id' => 'validityPeriodTwo', 'placeholder' => '']) !!}
|
||||
{!! $errors->first('validity_period_two', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('document_two') ? 'has-error' : ''}}">
|
||||
<label class="" for="documentTwo">Second Document</label>
|
||||
@@ -71,7 +89,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('how_we_got_client_other') ? 'has-error' : ''}}">
|
||||
<label class="" for="documentThreeName">Third Document Name</label>
|
||||
@@ -80,7 +98,16 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('validity_period_third') ? 'has-error' : ''}}">
|
||||
<label class="" for="validityPeriodThird">Validity Period (Optional)</label>
|
||||
{!! Form::text('validity_period_third', null, ['class' => 'form-control validityPeriod' , 'id' => 'validityPeriodThird', 'placeholder' => '']) !!}
|
||||
{!! $errors->first('validity_period_third', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('document_three') ? 'has-error' : ''}}">
|
||||
<label class="" for="documentThree">Third Document</label>
|
||||
@@ -113,6 +140,10 @@
|
||||
$(function(){
|
||||
//$('select').select2();
|
||||
|
||||
$('.validityPeriod').datetimepicker({
|
||||
format: 'YYYY-MM-DD'
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
152
resources/views/reports/clients-expired-contracts.blade.php
Executable file
152
resources/views/reports/clients-expired-contracts.blade.php
Executable file
@@ -0,0 +1,152 @@
|
||||
@extends('layouts.master')
|
||||
@section('page_title')
|
||||
@if(isset($page_title))
|
||||
{{ $page_title }}
|
||||
@endif
|
||||
@endsection
|
||||
@section('css')
|
||||
<link href="{!! url('public/assets/vendors/tabulator/css/bootstrap/tabulator_bootstrap.css') !!}" type="text/css" rel="stylesheet">
|
||||
@endsection
|
||||
@section('content')
|
||||
<div class="">
|
||||
<div class="page-title">
|
||||
<div class="title_left">
|
||||
<div class="title_left">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{!! url('dashboard') !!}">Dashboard</a></li>
|
||||
<li class="active">Expired Contracts</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="title_right">
|
||||
<div class="row">
|
||||
<form method="GET" action="{!! url('expiredclientscontracts') !!}">
|
||||
<div class="col-md-5 col-sm-5 col-xs-12 form-group">
|
||||
<div style="margin-top:1px; margin-right:-90px;" class="top_search">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search" style="margin-top: -2px;">
|
||||
<div class="input-group">
|
||||
<input type="text" name="keyword" class="form-control" id="keywordField" placeholder="Keyword here...">
|
||||
<span class="input-group-btn">
|
||||
<button type="submit" class="btn btn-primary" style="color: #fff;" type="button">Go!</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
<div class="row">
|
||||
@include('commons.notifications')
|
||||
<div class="col-md-12 col-sm-12 col-xs-12">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
<h2>Expired Contracts - Clients </h2>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<div class="x_content">
|
||||
<div>
|
||||
<button id="clients-expired-contracts-reports-download-xlsx" class="btn btn-success btn-sm"><i class="fa fa-file-excel-o"></i> Download XLSX</button>
|
||||
<button id="clients-expired-contracts-reports-download-pdf" class="btn btn-danger btn-sm"><i class="fa fa-file-pdf-o"></i> Download PDF</button>
|
||||
</div>
|
||||
<div id="clientsExpiredContractsReportsTable"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@section('javascript')
|
||||
<script src="{!! url('public/assets/vendors/tabulator/js/tabulator.js') !!}"></script>
|
||||
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/xlsx.full.min.js') !!}"></script>
|
||||
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/jspdf.min.js') !!}"></script>
|
||||
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/jspdf.plugin.autotable.js') !!}"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
function link(cell, formatterParams){
|
||||
var url = cell.getValue();
|
||||
var rowID = cell.getData().id
|
||||
//return "<a href='"+ base_url + "/clientpaymentreports/"+rowID+"' class='btn btn-link'>"+url+"</a>";
|
||||
//return '<a href="'+ base_url + '"/clients/"'+rowID+'" class="btn btn-link">'+ url +'</a>';
|
||||
}
|
||||
var table = new Tabulator("#clientsExpiredContractsReportsTable", {
|
||||
ajaxURL: "expiredclientscontracts/all",
|
||||
paginationSize: 15,
|
||||
paginationSizeSelector: true,
|
||||
paginationSizeSelector:[5, 10, 25, 50, 100, 200],
|
||||
layout: "fitColumns",
|
||||
pagination: "local",
|
||||
selectable: false,
|
||||
printAsHtml: true,
|
||||
ajaxLoaderLoading: $('#logo_spinner').html(),
|
||||
columns: [
|
||||
{
|
||||
title: "Name",
|
||||
field: "name",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Country",
|
||||
field: "country",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Account Manager",
|
||||
field: "accountManager",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Contract Validity",
|
||||
field: "contract_validity",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Contact Person",
|
||||
field: "contact_person",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Email",
|
||||
field: "email",
|
||||
sorter: "datetime",
|
||||
},
|
||||
{
|
||||
title: "Date Added",
|
||||
field: "created_at",
|
||||
sorter: "datetime",
|
||||
}
|
||||
],
|
||||
rowClick:function(e, row){
|
||||
var userID = row.getData().id;
|
||||
//$('#userEditModal').modal('show');
|
||||
},
|
||||
});
|
||||
document.getElementById("clients-expired-contracts-reports-download-xlsx").addEventListener("click", function(){
|
||||
table.download("xlsx", "clients-expired-contracts-report.xlsx", {sheetName:"Sheet 1"});
|
||||
});
|
||||
//trigger download of data.pdf file
|
||||
document.getElementById("clients-expired-contracts-reports-download-pdf").addEventListener("click", function(){
|
||||
table.download("pdf", "clients-payment-reports-list.pdf", {
|
||||
orientation:"portrait", //set page orientation to portrait
|
||||
title:"Click Mobile ERP - Clients Expired Contracts Reports", //add title to report
|
||||
});
|
||||
});
|
||||
|
||||
$('#keywordField').on('keyup', function(){
|
||||
var keyword = $(this).val();
|
||||
table.setData("expiredclientscontracts/all?keyword=" + keyword);
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
152
resources/views/reports/mno-expired-contracts.blade.php
Executable file
152
resources/views/reports/mno-expired-contracts.blade.php
Executable file
@@ -0,0 +1,152 @@
|
||||
@extends('layouts.master')
|
||||
@section('page_title')
|
||||
@if(isset($page_title))
|
||||
{{ $page_title }}
|
||||
@endif
|
||||
@endsection
|
||||
@section('css')
|
||||
<link href="{!! url('public/assets/vendors/tabulator/css/bootstrap/tabulator_bootstrap.css') !!}" type="text/css" rel="stylesheet">
|
||||
@endsection
|
||||
@section('content')
|
||||
<div class="">
|
||||
<div class="page-title">
|
||||
<div class="title_left">
|
||||
<div class="title_left">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{!! url('dashboard') !!}">Dashboard</a></li>
|
||||
<li class="active">MNO Expired Contracts</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="title_right">
|
||||
<div class="row">
|
||||
<form method="GET" action="{!! url('mnopaymentreports') !!}">
|
||||
<div class="col-md-5 col-sm-5 col-xs-12 form-group">
|
||||
<div style="margin-top:1px; margin-right:-90px;" class="top_search">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search" style="margin-top: -2px;">
|
||||
<div class="input-group">
|
||||
<input type="text" name="keyword" class="form-control" id="keywordField" placeholder="Keyword here...">
|
||||
<span class="input-group-btn">
|
||||
<button type="submit" class="btn btn-primary" style="color: #fff;" type="button">Go!</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
<div class="row">
|
||||
@include('commons.notifications')
|
||||
<div class="col-md-12 col-sm-12 col-xs-12">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
<h2> MNO Expired Contracts </h2>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<div class="x_content">
|
||||
<div>
|
||||
<button id="mno-expired-contracts-reports-download-xlsx" class="btn btn-success btn-sm"><i class="fa fa-file-excel-o"></i> Download XLSX</button>
|
||||
<button id="mno-expired-contracts-reports-download-pdf" class="btn btn-danger btn-sm"><i class="fa fa-file-pdf-o"></i> Download PDF</button>
|
||||
</div>
|
||||
<div id="mnoExpiredContractsReportsTable"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@section('javascript')
|
||||
<script src="{!! url('public/assets/vendors/tabulator/js/tabulator.js') !!}"></script>
|
||||
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/xlsx.full.min.js') !!}"></script>
|
||||
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/jspdf.min.js') !!}"></script>
|
||||
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/jspdf.plugin.autotable.js') !!}"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
function link(cell, formatterParams){
|
||||
var url = cell.getValue();
|
||||
var rowID = cell.getData().id
|
||||
//return "<a href='"+ base_url + "/clientpaymentreports/"+rowID+"' class='btn btn-link'>"+url+"</a>";
|
||||
//return '<a href="'+ base_url + '"/clients/"'+rowID+'" class="btn btn-link">'+ url +'</a>';
|
||||
}
|
||||
var table = new Tabulator("#mnoExpiredContractsReportsTable", {
|
||||
ajaxURL: "expiredmnocontracts/all",
|
||||
paginationSize: 15,
|
||||
paginationSizeSelector: true,
|
||||
paginationSizeSelector:[5, 10, 25, 50, 100, 200],
|
||||
layout: "fitColumns",
|
||||
pagination: "local",
|
||||
selectable: false,
|
||||
printAsHtml: true,
|
||||
ajaxLoaderLoading: $('#logo_spinner').html(),
|
||||
columns: [
|
||||
{
|
||||
title: "Name",
|
||||
field: "name",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Country",
|
||||
field: "country",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Account Manager",
|
||||
field: "accountManager",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Contract Validity",
|
||||
field: "contract_validity",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Contact Person",
|
||||
field: "contact_person",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Contact Person Email",
|
||||
field: "contact_person_email",
|
||||
sorter: "datetime",
|
||||
},
|
||||
{
|
||||
title: "Date Added",
|
||||
field: "created_at",
|
||||
sorter: "datetime",
|
||||
}
|
||||
],
|
||||
rowClick:function(e, row){
|
||||
var userID = row.getData().id;
|
||||
//$('#userEditModal').modal('show');
|
||||
},
|
||||
});
|
||||
document.getElementById("mno-expired-contracts-reports-download-xlsx").addEventListener("click", function(){
|
||||
table.download("xlsx", "mno-expired-contracts-report.xlsx", {sheetName:"Sheet 1"});
|
||||
});
|
||||
//trigger download of data.pdf file
|
||||
document.getElementById("mno-expired-contracts-reports-download-pdf").addEventListener("click", function(){
|
||||
table.download("pdf", "mno-payment-reports-list.pdf", {
|
||||
orientation:"portrait", //set page orientation to portrait
|
||||
title:"Click Mobile ERP - MNO Expired Contracts Reports", //add title to report
|
||||
});
|
||||
});
|
||||
|
||||
$('#keywordField').on('keyup', function(){
|
||||
var keyword = $(this).val();
|
||||
table.setData("expiredmnocontracts/all?keyword=" + keyword);
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
@@ -14,7 +14,7 @@
|
||||
<div class="title_left">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{!! url('dashboard') !!}">Dashboard</a></li>
|
||||
<li class=""><a href="{!! url('reports/overview') !!}"> Reports</a></li>
|
||||
<!-- <li class=""><a href="{!! url('reports/overview') !!}"> Reports</a></li> -->
|
||||
<li class="active">MNO Payments</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
<div class="x_content">
|
||||
<div class="row tile_count">
|
||||
|
||||
<h4 class="green">General Documents Overview</h4>
|
||||
<h3 class="green">Reports Overview</h3>
|
||||
<div class="col-md-2 col-sm-4 col-xs-6 tile_stats_count">
|
||||
<span class="count_top"><i class="fa fa-list"></i>
|
||||
<a href="{!! url('reports/recentclients') !!}">Recent Clients</a>
|
||||
@@ -65,7 +65,7 @@
|
||||
|
||||
<div class="count green">
|
||||
<a href="">
|
||||
<img src="{{ url('public/assets/img/folder-icon.png') }}" width="40px"></a>
|
||||
<img src="{{ url('public/assets/img/report-icon.png') }}" width="40px"></a>
|
||||
<a href="{!! url('reports/recentclients') !!}"> 400</a>
|
||||
</div>
|
||||
<!-- <span class="count_bottom"><i class="green">4% </i> From last Week</span> -->
|
||||
@@ -77,7 +77,7 @@
|
||||
|
||||
<div class="count green">
|
||||
<a href="">
|
||||
<img src="{{ url('public/assets/img/folder-icon.png') }}" width="40px"></a>
|
||||
<img src="{{ url('public/assets/img/report-icon.png') }}" width="40px"></a>
|
||||
<a href="{!! url('reports/clientsbyservice') !!}"> 923</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -89,7 +89,7 @@
|
||||
|
||||
<div class="count green">
|
||||
<a href="">
|
||||
<img src="{{ url('public/assets/img/folder-icon.png') }}" width="40px"></a>
|
||||
<img src="{{ url('public/assets/img/report-icon.png') }}" width="40px"></a>
|
||||
<a href="{!! url('clientpaymentreports') !!}"> 6,123</a>
|
||||
</div>
|
||||
<!-- <span class="count_bottom"><i class="green">4% </i> From last Week</span> -->
|
||||
@@ -112,7 +112,7 @@
|
||||
|
||||
<div class="count green">
|
||||
<a href="{!! url('mnopaymentreports') !!}">
|
||||
<img src="{{ url('public/assets/img/folder-icon.png') }}" width="40px"></a>
|
||||
<img src="{{ url('public/assets/img/report-icon.png') }}" width="40px"></a>
|
||||
<a href="{!! url('reports/useractivities') !!}"> 2,323</a>
|
||||
</div>
|
||||
<!-- <span class="count_bottom"><i class="green">4% </i> From last Week</span> -->
|
||||
|
||||
103
resources/views/senderid/create.blade copy.php
Normal file
103
resources/views/senderid/create.blade copy.php
Normal file
@@ -0,0 +1,103 @@
|
||||
@extends('layouts.master')
|
||||
@section('page_title')
|
||||
@if(isset($page_title))
|
||||
{{ $page_title }}
|
||||
@endif
|
||||
@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 class="active"><a href="{!! url('senderids') !!}">Sender IDs</a></li>
|
||||
<li class="active">New Sender ID</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12 col-xs-12">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
New Sender ID
|
||||
@include('commons.notifications')
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
{{-- start of content --}}
|
||||
<div class="x_content">
|
||||
<br>
|
||||
{!! Form::open(['url' => 'senderids', 'class' => 'form-horizontal form-label-left']) !!}
|
||||
<div class="row">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="senderIDD">Sender ID</label>
|
||||
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('senderid') ? 'has-error' : ''}}">
|
||||
{!! Form::text('senderid', old('senderid'), ['class' => 'form-control col-md-7 col-xs-12', '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 col-md-3 col-sm-3 col-xs-12" for="clientID">Client</label>
|
||||
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('name') ? 'has-error' : ''}}">
|
||||
{!! Form::select('client_id', $clients, old('client_id'), ['class' => 'form-control', 'placeholder'=>'Select Client' , 'id' => 'clientID', 'required' => 'true']) !!}
|
||||
{!! $errors->first('client_id', '<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="status">Status</label>
|
||||
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('status') ? 'has-error' : ''}}">
|
||||
{!! Form::select('status', $status ,old('status'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Select Status ' , 'id' => 'status', 'required' => 'true']) !!}
|
||||
{!! $errors->first('status', '<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="directMno">Direct MNO</label>
|
||||
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('direct_mno') ? 'has-error' : ''}}">
|
||||
{!! Form::select('direct_mno', $direct_mno_arr ,old('direct_mno'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Select one ' , 'id' => 'directMno', 'required' => 'true']) !!}
|
||||
{!! $errors->first('direct_mno', '<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="networkName">Network</label>
|
||||
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('network') ? 'has-error' : ''}}">
|
||||
{!! Form::select('network_id', $network_arr, old('network_id'), ['class' => 'form-control col-md-7 col-xs-12', 'id' => 'networkName', 'required' => 'true']) !!}
|
||||
{!! $errors->first('network', '<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="remarks">Remarks</label>
|
||||
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('remarks') ? 'has-error' : ''}}">
|
||||
{!! Form::text('remarks', old('remarks'), ['class' => 'form-control col-md-7 col-xs-12', '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="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
|
||||
<button type="submit" class="btn btn-success btn-block"><i class="fa fa-save"></i> Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
{{-- end of x_content --}}
|
||||
</div>
|
||||
{{-- end of x_panel --}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@section('javascript')
|
||||
<script type="text/javascript" src="{!! url('public/assets/js/senderid.js') !!}"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function(){
|
||||
$('select').select2();
|
||||
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
@@ -37,20 +37,6 @@
|
||||
{!! $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="clientID">Client</label>
|
||||
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('name') ? 'has-error' : ''}}">
|
||||
{!! Form::select('client_id', $clients, old('client_id'), ['class' => 'form-control', 'placeholder'=>'Select Client' , 'id' => 'clientID', 'required' => 'true']) !!}
|
||||
{!! $errors->first('client_id', '<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="status">Status</label>
|
||||
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('status') ? 'has-error' : ''}}">
|
||||
{!! Form::select('status', $status ,old('status'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Select Status ' , 'id' => 'status', 'required' => 'true']) !!}
|
||||
{!! $errors->first('status', '<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="directMno">Direct MNO</label>
|
||||
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('direct_mno') ? 'has-error' : ''}}">
|
||||
@@ -58,13 +44,29 @@
|
||||
{!! $errors->first('direct_mno', '<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="networkName">Network</label>
|
||||
|
||||
<div class="form-group hidden" id="mnoDiv">
|
||||
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="networkName">MNO Name</label>
|
||||
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('network') ? 'has-error' : ''}}">
|
||||
{!! Form::select('network_id', $network_arr, old('network_id'), ['class' => 'form-control col-md-7 col-xs-12', 'id' => 'networkName', 'required' => 'true']) !!}
|
||||
{!! Form::select('mno_name', $network_arr, old('mno_name'), ['class' => 'form-control col-md-7 col-xs-12', 'id' => 'networkName', 'placeholder' => '-- Select --', 'required' => 'true', 'style' => 'width:100%;']) !!}
|
||||
{!! $errors->first('network', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group hidden" id="supplierDiv">
|
||||
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="supplierName">Supplier Name</label>
|
||||
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('name') ? 'has-error' : ''}}">
|
||||
<!-- 'required' => 'true', -->
|
||||
{!! Form::select('supplier_name', $clients, old('supplier_name'), ['class' => 'form-control', 'id' => 'supplierName', 'placeholder' => '-- Select --', 'style' => 'width:100%;']) !!}
|
||||
{!! $errors->first('client_id', '<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="status">Status</label>
|
||||
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('status') ? 'has-error' : ''}}">
|
||||
{!! Form::select('status', $status ,old('status'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Select Status ' , 'id' => 'status', 'required' => 'true']) !!}
|
||||
{!! $errors->first('status', '<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="remarks">Remarks</label>
|
||||
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('remarks') ? 'has-error' : ''}}">
|
||||
|
||||
@@ -33,39 +33,45 @@
|
||||
'class' => 'form-horizontal form-label-left'
|
||||
]) !!}
|
||||
<div class="row">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="senderIDD">Sender ID</label>
|
||||
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="senderIddEdit">Sender ID</label>
|
||||
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('senderid') ? 'has-error' : ''}}">
|
||||
{!! Form::text('senderid', old('senderid'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter sender ID' , 'id' => 'senderIDD', 'required' => 'true']) !!}
|
||||
{!! Form::text('senderid', old('senderid'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter sender ID' , 'id' => 'senderIddEdit', 'required' => 'true']) !!}
|
||||
{!! $errors->first('name', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="clientID">Client</label>
|
||||
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('name') ? 'has-error' : ''}}">
|
||||
{!! Form::select('client_id', $clients, old('client_id'), ['class' => 'form-control', 'placeholder'=>'Select Client' , 'id' => 'clientID', 'required' => 'true']) !!}
|
||||
{!! $errors->first('client_id', '<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="status">Status</label>
|
||||
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('status') ? 'has-error' : ''}}">
|
||||
{!! Form::select('status', $status ,old('status'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Select Status ' , 'id' => 'status', 'required' => 'true']) !!}
|
||||
{!! $errors->first('status', '<p class="help-block">:message</p>') !!}
|
||||
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="directMnoEdit">Direct MNO</label>
|
||||
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('direct_mno') ? 'has-error' : ''}}">
|
||||
{!! Form::select('direct_mno', $direct_mno_arr ,old('direct_mno'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Select one ' , 'id' => 'directMnoEdit', 'required' => 'true']) !!}
|
||||
{!! $errors->first('direct_mno', '<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="network">Network</label>
|
||||
<div class="form-group <?php //echo ($senderid->direct_mno == 'YES') ? "" : "hidden"; ?>" id="mnoDivEdit">
|
||||
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="networkNameEdit">MNO Name</label>
|
||||
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('network') ? 'has-error' : ''}}">
|
||||
{!! Form::select('network_id', $network_arr, old('network_id'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Select Network ' , 'id' => 'network', 'required' => 'true']) !!}
|
||||
{!! Form::select('mno_name', $network_arr, old('mno_name'), ['class' => 'form-control col-md-7 col-xs-12', 'id' => 'networkNameEdit', 'placeholder' => '-- Select --', 'style' => 'width:100%;']) !!}
|
||||
{!! $errors->first('network', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group <?php //echo ($senderid->direct_mno == 'YES') ? "hidden" : ""; ?>" id="supplierDivEdit">
|
||||
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="supplierNameEdit">Supplier Name</label>
|
||||
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('name') ? 'has-error' : ''}}">
|
||||
{!! Form::select('supplier_name', $clients, old('supplier_name'), ['class' => 'form-control', 'id' => 'supplierNameEdit', 'placeholder' => '-- Select --', 'style' => 'width:100%;']) !!}
|
||||
{!! $errors->first('client_id', '<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="remarks">Remarks</label>
|
||||
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="statusEdit">Status</label>
|
||||
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('status') ? 'has-error' : ''}}">
|
||||
{!! Form::select('status', $status ,old('status'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Select Status ' , 'id' => 'statusEdit', 'required' => 'true']) !!}
|
||||
{!! $errors->first('status', '<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="remarksEdit">Remarks</label>
|
||||
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('remarks') ? 'has-error' : ''}}">
|
||||
{!! Form::text('remarks', old('remarks'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter remarks here' , 'id' => 'remarks']) !!}
|
||||
{!! Form::text('remarks', old('remarks'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter remarks here' , 'id' => 'remarksEdit']) !!}
|
||||
{!! $errors->first('remarks', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
@@ -89,6 +95,7 @@
|
||||
@endsection
|
||||
|
||||
@section('javascript')
|
||||
<script type="text/javascript" src="{!! url('public/assets/js/senderid.js') !!}"></script>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$('select').select2();
|
||||
|
||||
@@ -52,12 +52,19 @@
|
||||
<div class="x_title">
|
||||
<h2> Sender IDs </h2>
|
||||
<div class="pull-right">
|
||||
<a class="btn btn-warning btn-sm" href="{!! url('senderids/upload') !!}"><i class="fa fa-cloud-upload"></i> Upload Sender ID</a>
|
||||
<a class="btn btn-primary btn-sm" href="{!! url('senderids/create') !!}"><i class="fa fa-plus-circle"></i> New Sender ID</a>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<div class="x_content">
|
||||
<div class=" well" >
|
||||
@if(session('current_user.rejected_rows_filename') !== null)
|
||||
<?php $url = session('current_user.rejected_rows_filename');?>
|
||||
<a href="{{ url('senderids/uploadreportdownload', $url) }}" class="btn btn-link">View Sender ID Bulk Upload Report</a>
|
||||
@endif
|
||||
</div>
|
||||
<div>
|
||||
<button id="senderid-download-xlsx" class="btn btn-success btn-sm"><i class="fa fa-file-excel-o"></i> Download XLSX</button>
|
||||
<button id="senderid-download-pdf" class="btn btn-danger btn-sm"><i class="fa fa-file-pdf-o"></i> Download PDF</button>
|
||||
@@ -90,8 +97,12 @@
|
||||
}
|
||||
function statusDesign (cell, formatterParams){
|
||||
var value = cell.getValue();
|
||||
if(value === 'Approved'){
|
||||
return "<span style='color:#3FB449; font-weight:bold;'>" + value + "</span>";
|
||||
// if(value === 'Approved'){
|
||||
if(value.includes('Approved')){
|
||||
return "<span style='color:#3FB449; font-weight:bold;'>" + value + "</span>";
|
||||
}
|
||||
else if(value.includes('Active')){
|
||||
return "<span style='color:#3FB449; font-weight:bold;'>" + value + "</span>";
|
||||
}
|
||||
else{
|
||||
return "<span style='color:#E4A11B;'>" + value + "</span>";
|
||||
@@ -106,23 +117,13 @@
|
||||
printAsHtml: true,
|
||||
ajaxLoaderLoading: $('#logo_spinner').html(),
|
||||
columns: [
|
||||
{
|
||||
title: "Client",
|
||||
field: "clientName",
|
||||
sorter: "string",
|
||||
formatter:link,
|
||||
},
|
||||
|
||||
{
|
||||
title: "Sender ID",
|
||||
field: "senderid",
|
||||
sorter: "string",
|
||||
formatter: cellDesign,
|
||||
},
|
||||
{
|
||||
title: "Status",
|
||||
field: "status",
|
||||
sorter: "string",
|
||||
formatter: statusDesign,
|
||||
formatter:link,
|
||||
},
|
||||
{
|
||||
title: "Direct MNO",
|
||||
@@ -130,16 +131,27 @@
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Country",
|
||||
field: "country",
|
||||
title: "Network",
|
||||
field: "mno_name",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Network",
|
||||
field: "networkName",
|
||||
title: "Supplier",
|
||||
field: "supplier_name",
|
||||
sorter: "string",
|
||||
},
|
||||
|
||||
{
|
||||
title: "Status",
|
||||
field: "status",
|
||||
sorter: "string",
|
||||
formatter: statusDesign,
|
||||
},
|
||||
{
|
||||
title: "Remarks",
|
||||
field: "remarks",
|
||||
sorter: "string",
|
||||
formatter: statusDesign,
|
||||
},
|
||||
{
|
||||
title: "Created By",
|
||||
field: "createdBy",
|
||||
|
||||
80
resources/views/senderid/uploadbulk.blade.php
Normal file
80
resources/views/senderid/uploadbulk.blade.php
Normal file
@@ -0,0 +1,80 @@
|
||||
@extends('layouts.master')
|
||||
@section('page_title')
|
||||
@if(isset($page_title))
|
||||
{{ $page_title }}
|
||||
@endif
|
||||
@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 class="active"><a href="{!! url('senderids') !!}">Sender IDs</a></li>
|
||||
<li class="active">Upload Sender IDs</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12 col-xs-12">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
Bulk Sender ID Upload
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
{{-- start of content --}}
|
||||
<div class="x_content">
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
Sample file
|
||||
<hr>
|
||||
<a href="{{ url('senderids/downloadsample') }}" class="btn btn-link">Download Sample File</a>
|
||||
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{!! Form::open(['url' => 'senderids/uploadstore', 'files' => 'true', 'class' => 'form-horizontal form-label-left']) !!}
|
||||
<div class="row">
|
||||
<div class="col-md-6 well">
|
||||
@include('commons.notifications')
|
||||
<div class="form-group">
|
||||
<div class="{{ $errors->has('senderid_file') ? 'has-error' : 'nothing'}}">
|
||||
<label for="senderIdFile">Sender IDs File</label>
|
||||
{!! Form::file('senderid_file', null, ['class' => 'form-control' , 'id' => 'senderIdFile', 'placeholder' => 'Select file to upload']) !!}
|
||||
{!! $errors->first('senderid_file', '<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::close() !!}
|
||||
|
||||
{{-- end of x_content --}}
|
||||
</div>
|
||||
{{-- end of x_panel --}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@section('javascript')
|
||||
<!-- <script type="text/javascript" src="{!! url('public/assets/js/senderid.js') !!}"></script> -->
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function(){
|
||||
// $('select').select2();
|
||||
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
117
resources/views/shortcodes/partials/create.blade.php
Normal file
117
resources/views/shortcodes/partials/create.blade.php
Normal file
@@ -0,0 +1,117 @@
|
||||
<div class="modal fade" id="newShortCodeFormModal" tabindex="-1" role="dialog" aria-labelledby="createShortCodeModalLabel" aria-hidden="false">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<!-- <h4 class="modal-title">Default Modal</h4> -->
|
||||
<h5 class="modal-title text-center" id="paymentModalLabelHeading">New Short Code Form</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div id="notifyArea" class="alert alert-danger hidden"></div>
|
||||
<form class="form-vertical" method="POST" id="shortCodeForm" action="{{ url('ussdshortcodes/store') }}">
|
||||
{{ csrf_field() }}
|
||||
<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="shortCode">Code *</label>
|
||||
<input type="number" class="form-control" name="shortcode" id="shortCode" required >
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<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 >
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-12" style="padding-bottom: 5px">
|
||||
<label for="clientID">Client *</label>
|
||||
{!! Form::select('client_id', $client_arr, null, ['class' => 'form-control' , 'id' => 'clientID', 'placeholder'=>'Select Client ' , 'required' => 'required' , 'style' => 'width: 100%']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-12" style="padding-bottom: 5px">
|
||||
<label for="networks">Network *</label>
|
||||
{!! Form::select('network', $country_network_arr, null, ['class' => 'form-control' , 'id' => 'networks', 'placeholder'=>'Select Network ' , 'required' => 'required' , 'style' => 'width: 100%']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-12" style="padding-bottom: 5px">
|
||||
<label for="monthlyFee">Monthly Fee</label>
|
||||
<input type="number" class="form-control" name="monthly_fee" id="monthlyFee" >
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-6">
|
||||
<div class='input-group date' id='myDatepicker22' style="padding-bottom: 5px;">
|
||||
<label for="launchDate">Launch Date</label>
|
||||
<input type="text" class="form-control scdates" name="launch_date" id="launchDate" required >
|
||||
<div class="input-group-addon">
|
||||
<span class="fa fa-calendar"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class='input-group date' id='myDatepicker223' style="padding-bottom: 5px;">
|
||||
<label for="expiryDate">Expiry Date</label>
|
||||
<input type="text" class="form-control scdates" name="expiry_date" id="expiryDate" required >
|
||||
<div class="input-group-addon">
|
||||
<span class="fa fa-calendar"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</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="TESTING">Testing</option>
|
||||
<option value="INACTIVE">Inactive </option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" >
|
||||
<div class="col-md-12" style="padding-bottom: 5px;">
|
||||
<label for="remarks">Remarks</label>
|
||||
<input type="text" class="form-control" name="remarks" id="remarks"></textarea>
|
||||
</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>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" style="margin-bottom: 0.5rem; padding-bottom: 5px; padding-top: 5px;">
|
||||
<div class="col-md-12">
|
||||
<button type="button" class="btn btn-dark btn-block" data-dismiss="modal"><i class="fa fa-close"></i> Close</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
</div>
|
||||
<!-- /.modal -->
|
||||
@@ -8,7 +8,9 @@
|
||||
<link href="{!! url('public/assets/vendors/tabulator/css/bootstrap/tabulator_bootstrap.css') !!}" type="text/css" rel="stylesheet">
|
||||
@endsection
|
||||
@section('content')
|
||||
@include('shortcodes.partials.create')
|
||||
@include('client.partials.edit-shortcodes')
|
||||
|
||||
<div class="">
|
||||
<div class="page-title">
|
||||
<div class="title_left">
|
||||
@@ -35,7 +37,7 @@
|
||||
<div class="x_title">
|
||||
<h2> Client Short Codes </h2>
|
||||
<div class="pull-right">
|
||||
<!-- <a class="btn btn-primary btn-sm" href="{!! url('clients/create') !!}"><i class="fa fa-plus-circle"></i> Add Client</a> -->
|
||||
<button class="btn btn-primary btn-sm" id="createSmsShortCodeBtn"><i class="fa fa-plus-circle"></i> Add Short Code</button>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
@@ -87,6 +89,7 @@
|
||||
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/xlsx.full.min.js') !!}"></script>
|
||||
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/jspdf.min.js') !!}"></script>
|
||||
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/jspdf.plugin.autotable.js') !!}"></script>
|
||||
<script type="text/javascript" src="{!! url('public/assets/js/shortcode.js') !!}"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
<link href="{!! url('public/assets/vendors/tabulator/css/bootstrap/tabulator_bootstrap.css') !!}" type="text/css" rel="stylesheet">
|
||||
@endsection
|
||||
@section('content')
|
||||
@include('shortcodes.partials.create')
|
||||
<div class="">
|
||||
<div class="page-title">
|
||||
<div class="title_left">
|
||||
@@ -34,7 +35,7 @@
|
||||
<div class="x_title">
|
||||
<h2> USSD Short Codes </h2>
|
||||
<div class="pull-right">
|
||||
<!-- <a class="btn btn-primary btn-sm" href="{!! url('clients/create') !!}"><i class="fa fa-plus-circle"></i> Add Client</a> -->
|
||||
<button class="btn btn-primary btn-sm" id="createUssdShortCodeBtn"><i class="fa fa-plus-circle"></i> Add Short Code</button>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
@@ -80,6 +81,7 @@
|
||||
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/xlsx.full.min.js') !!}"></script>
|
||||
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/jspdf.min.js') !!}"></script>
|
||||
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/jspdf.plugin.autotable.js') !!}"></script>
|
||||
<script type="text/javascript" src="{!! url('public/assets/js/shortcode.js') !!}"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
<link href="{!! url('public/assets/vendors/tabulator/css/bootstrap/tabulator_bootstrap.css') !!}" type="text/css" rel="stylesheet">
|
||||
@endsection
|
||||
@section('content')
|
||||
@include('shortcodes.partials.create')
|
||||
<div class="">
|
||||
<div class="page-title">
|
||||
<div class="title_left">
|
||||
@@ -34,7 +35,7 @@
|
||||
<div class="x_title">
|
||||
<h2> Voice Short Codes </h2>
|
||||
<div class="pull-right">
|
||||
<!-- <a class="btn btn-primary btn-sm" href="{!! url('clients/create') !!}"><i class="fa fa-plus-circle"></i> Add Client</a> -->
|
||||
<button class="btn btn-primary btn-sm" id="createVoiceShortCodeBtn"><i class="fa fa-plus-circle"></i> Add Short Code</button>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
@@ -79,7 +80,7 @@
|
||||
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/xlsx.full.min.js') !!}"></script>
|
||||
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/jspdf.min.js') !!}"></script>
|
||||
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/jspdf.plugin.autotable.js') !!}"></script>
|
||||
|
||||
<script type="text/javascript" src="{!! url('public/assets/js/shortcode.js') !!}"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
function link(cell, formatterParams){
|
||||
|
||||
@@ -63,14 +63,16 @@
|
||||
<h4 class="brief"><i>{{ $row->designation }}</i></h4>
|
||||
<div class="left col-xs-7">
|
||||
<h2>{{ $row->name }}</h2>
|
||||
<p><strong>Country: </strong> {{ $row->location_country }} </p>
|
||||
<p><strong>Job Title: </strong> {{ $row->job_title or 'N/A' }} </p>
|
||||
<p><strong>Country: </strong> {{ $row->location_country or 'N/A' }} </p>
|
||||
<ul class="list-unstyled">
|
||||
<li><i class="fa fa-envelope"></i> Email: {{ $row->email }} </li>
|
||||
<li><i class="fa fa-phone"></i> Phone #: {{ $row->phone or 'N/A' }} </li>
|
||||
<li><i class="fa fa-calendar"></i> DOB #: {{ $row->dob or 'N/A' }} </li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="right col-xs-5 text-center">
|
||||
<img src="{{ url('public/staff_members/profile_pics/profile.jpg')}}" alt="" class="img-circle img-responsive" width="50">
|
||||
<img src="{{ url('public/staff_members/profile_pics/profile.jpg')}}" alt="" class="img-circle img-responsive" width="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 bottom text-center">
|
||||
|
||||
Reference in New Issue
Block a user