worked on the new onboarding steps
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{!! url('dashboard') !!}">Dashboard</a></li>
|
||||
<li><a href="{!! url('clients') !!}">Clients</a></li>
|
||||
<li><a href="{{ url('clients', $client->id) }}">{{ $client->name }}</a></li>
|
||||
<li class="active">Update Client Details</li>
|
||||
</ol>
|
||||
</div>
|
||||
@@ -28,6 +29,7 @@
|
||||
<div class="x_content">
|
||||
<br>
|
||||
{!! Form::model($client, [ 'method' => 'PATCH', 'files' => 'true', 'url' => ['clients', $client], 'class' => 'form-horizontal form-label-left']) !!}
|
||||
<input type="hidden" name="current_pending_stage" value="{{ $current_pending_stage }}">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
@@ -334,16 +336,18 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@if($current_pending_stage !== 'COMPLETED')
|
||||
<div class="col-md-12">
|
||||
<div class="form-group" >
|
||||
<!-- style="background-color: skyblue;" -->
|
||||
<div class=" {{ $errors->has('progress_indicators') ? 'has-error' : ''}}">
|
||||
<label class="" for="payment_mode">Progress Indicators</label>
|
||||
{!! Form::select('progress_indicators[]', $progress_indicators, $current_progress_indicators, ['class' => 'form-control' , 'id' => 'progressIndicators', 'multiple' => 'true']) !!}
|
||||
{!! $errors->first('progress_indicators', '<p class="help-block">:message</p>') !!}
|
||||
<!-- 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']) !!}
|
||||
{!! $errors->first('onboarding_sub_items', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<div class="ln_solid"></div>
|
||||
<div class="form-group">
|
||||
|
||||
@@ -108,6 +108,12 @@
|
||||
field: "accountMgr",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Onboarding Status",
|
||||
field: "progress_indicator",
|
||||
sorter: "string",
|
||||
},
|
||||
/*
|
||||
{ title:"Progress",
|
||||
field:"progress_indicator_score",
|
||||
sorter:"number",
|
||||
@@ -116,6 +122,7 @@
|
||||
width:200,
|
||||
editable:true
|
||||
},
|
||||
*/
|
||||
{
|
||||
title: "Status",
|
||||
field: "status",
|
||||
|
||||
91
resources/views/client/onboarding_show.blade.php
Normal file
91
resources/views/client/onboarding_show.blade.php
Normal file
@@ -0,0 +1,91 @@
|
||||
@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><a href="{!! url('clients') !!}">Clients</a></li>
|
||||
<li><a href="{{ url('clients', $client->id) }}">{{ $client->name }}</a></li>
|
||||
<li class="active">Onboarding Checklist </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">
|
||||
Update Onboarding Checklist
|
||||
@include('commons.notifications')
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
{{-- start of content --}}
|
||||
<div class="x_content">
|
||||
<br>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h4>Agreement Stage</h4>
|
||||
<div>
|
||||
<div class="form-group" >
|
||||
<div class=" {{ $errors->has('progress_indicators') ? 'has-error' : ''}}">
|
||||
<label class="" for="payment_mode">Checklist Items</label>
|
||||
{!! Form::select('progress_indicators[]', $progress_indicators, $current_progress_indicators, ['class' => 'form-control' , 'id' => 'progressIndicators', 'multiple' => 'true']) !!}
|
||||
{!! $errors->first('progress_indicators', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<h4>Interconnectional (Bilateral)</h4>
|
||||
<div>
|
||||
|
||||
</div>
|
||||
<h4>Tests Completed</h4>
|
||||
<div>
|
||||
|
||||
</div>
|
||||
<h4>Rate Card Sharing</h4>
|
||||
<div>
|
||||
|
||||
</div>
|
||||
<h4>Rates Uploaded</h4>
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="ln_solid"></div>
|
||||
<div class="form-group">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{{-- end of x_content --}}
|
||||
</div>
|
||||
{{-- end of x_panel --}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@section('javascript')
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$('select').select2();
|
||||
|
||||
|
||||
// $('.typeServices').select2({}).select2('val', PRESELECTED_FRUITS);
|
||||
$('.typeServices').select2({
|
||||
tags : true
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
@@ -0,0 +1,48 @@
|
||||
<div class="modal fade" id="progressIndicatorDetailsModal" tabindex="-1" role="dialog" aria-labelledby="progressIndicatorModalLabel" aria-hidden="true">
|
||||
<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="progressIndicatorDetailsModalHeading">Progress Indicators</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="">
|
||||
<?php if ($showclient->progress_indicators !== null): ?>
|
||||
<ul class="to_do">
|
||||
<?php $current_indicators = json_decode($showclient->progress_indicators, true); ?>
|
||||
@foreach($progress_indicators as $indirow)
|
||||
<?php
|
||||
$arr_check = in_array($indirow, $current_indicators);
|
||||
$theCheck = ($arr_check == true) ? "fa-check-circle green" : "fa-question red";
|
||||
?>
|
||||
<li>
|
||||
<p>
|
||||
<span class="fa {{ $theCheck }}"></span>
|
||||
{{ $indirow }}
|
||||
</p>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
<?php else: ?>
|
||||
@foreach($progress_indicators as $indirow)
|
||||
<ul class="to_do">
|
||||
<li>
|
||||
<p>
|
||||
<span class="fa fa-question red"></span>
|
||||
{{ $indirow }}
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
@endforeach
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
</div>
|
||||
<!-- /.modal -->
|
||||
@@ -0,0 +1,34 @@
|
||||
<div class="modal fade" id="progressIndicatorDetailsModal" tabindex="-1" role="dialog" aria-labelledby="progressIndicatorModalLabel" aria-hidden="true">
|
||||
<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="progressIndicatorDetailsModalHeading">Progress Indicators</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="">
|
||||
<ul class="to_do">
|
||||
<?php $current_indicators = json_decode($showclient->progress_indicators, true); ?>
|
||||
|
||||
@foreach($progress_indicators as $indirow)
|
||||
<?php
|
||||
$arr_check = in_array($indirow, $current_indicators);
|
||||
$theCheck = ($arr_check == true) ? "checked" : "";
|
||||
$theDisabled = ($arr_check == true) ? "" : "disabled";
|
||||
?>
|
||||
<li>
|
||||
<p><input type="checkbox" {{ $theCheck }} class="flat progressIndicatorCheckbox" {{ $theDisabled }} > {{ $indirow }}</p>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
</div>
|
||||
<!-- /.modal -->
|
||||
@@ -11,7 +11,8 @@
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{!! url('dashboard') !!}">Dashboard</a></li>
|
||||
<li><a href="{!! url('clients') !!}">Clients</a></li>
|
||||
<li class="active">{{ $showclient->name }} (Full Details)</li>
|
||||
<li><a href="{{ url('clients', $showclient->id) }}">{{ $showclient->name }}</a></li>
|
||||
<li class="active">Full Details</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
@@ -216,14 +217,15 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row">
|
||||
<div class="col-md-12 well">
|
||||
|
||||
<h4>Documents</h4>
|
||||
<div class="tile fixed_height_60">
|
||||
|
||||
|
||||
<h4>Documents</h4>
|
||||
@if(!$showdocuments->isEmpty() == true)
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
|
||||
<div class="row">
|
||||
@foreach($showdocuments as $docs)
|
||||
<div class="col-md-3">
|
||||
@@ -239,6 +241,7 @@
|
||||
@else
|
||||
<p>No Documents found</p>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@@ -336,6 +339,8 @@
|
||||
@endsection
|
||||
|
||||
@section('javascript')
|
||||
<script type="text/javascript" src="{{ url('public/assets/vendors/gauge.js/dist/gauge.min.js') }}"></script>
|
||||
<script type="text/javascript" src="{{ url('public/assets/js/showclientreadonly.js') }}"></script>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
{{ $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')
|
||||
@@ -52,7 +55,10 @@
|
||||
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></h4>
|
||||
<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>
|
||||
@@ -78,6 +84,7 @@
|
||||
@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>
|
||||
|
||||
@@ -261,7 +268,9 @@
|
||||
|
||||
<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>
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane fade" id="tabFinance" aria-labelledby="finance-tab">
|
||||
@@ -337,5 +346,55 @@
|
||||
</div>
|
||||
@endsection
|
||||
@section('javascript')
|
||||
<script type="text/javascript" src="{{ url('public/assets/js/clientshow.js') }}"></script>
|
||||
<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
|
||||
@@ -15,15 +15,14 @@
|
||||
<div class="tile-stats">
|
||||
<div class="icon"><i class="fa fa-sun-o"></i></div>
|
||||
<div class="count">{{ $total }}</div>
|
||||
<h3>Total Clients</h3>
|
||||
<!-- <p>Lorem ipsum psdea itgum rixt.</p> -->
|
||||
<h3 class="" style="color: #1ABB9C">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>SMS Clients</h3>
|
||||
<h3 style="color: #1ABB9C">SMS Clients</h3>
|
||||
<!-- <p>Lorem ipsum psdea itgum rixt.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
@@ -31,7 +30,7 @@
|
||||
<div class="tile-stats">
|
||||
<div class="icon"><i class="fa fa-mobile-phone"></i></div>
|
||||
<div class="count">{{ $ussd }}</div>
|
||||
<h3>USSD Client</h3>
|
||||
<h3 style="color: #1ABB9C">USSD Client</h3>
|
||||
<!-- <p>Lorem ipsum psdea itgum rixt.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
@@ -39,7 +38,7 @@
|
||||
<div class="tile-stats">
|
||||
<div class="icon"><i class="fa fa-bullhorn"></i></div>
|
||||
<div class="count">{{ $voice }}</div>
|
||||
<h3>Voice Clients</h3>
|
||||
<h3 style="color: #1ABB9C">Voice Clients</h3>
|
||||
<!-- <p>Lorem ipsum psdea itgum rixt.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
@@ -53,7 +52,7 @@
|
||||
<div class="col-md-4">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
<h2>Recent Activities </h2>
|
||||
<h2 class="blue">Recent Activities </h2>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
@@ -61,35 +60,24 @@
|
||||
<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>Who Needs Sundance When You’ve Got Crowdfunding?</a>
|
||||
<a>{{ $userrow->content }}</a>
|
||||
</h2>
|
||||
<div class="byline">
|
||||
<span>13 hours ago</span> by <a>Jane Smith</a>
|
||||
<span>{{ $userrow->activity_time }}</span>
|
||||
<!-- by <a>Jane Smith</a> -->
|
||||
</div>
|
||||
<p class="excerpt">Film festivals used to be do-or-die moments for movie makers. They were where you met the producers that could fund your project, and if the buyers liked your flick, they’d pay to Fast-forward and… <a>Read More</a>
|
||||
</p>
|
||||
<p class="excerpt"></p>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="block">
|
||||
<div class="block_content">
|
||||
<h2 class="title">
|
||||
<a>Who Needs Sundance When You’ve Got Crowdfunding?</a>
|
||||
</h2>
|
||||
<div class="byline">
|
||||
<span>13 hours ago</span> by <a>Jane Smith</a>
|
||||
</div>
|
||||
<p class="excerpt">Film festivals used to be do-or-die moments for movie makers. They were where you met the producers that could fund your project, and if the buyers liked your flick, they’d pay to Fast-forward and… <a>Read More</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
@@ -99,7 +87,7 @@
|
||||
<div class="col-md-4">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
<h2>Expiring Contracts </h2>
|
||||
<h2 class="red">Contracts Expiry Dates </h2>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
@@ -108,12 +96,17 @@
|
||||
@foreach($expiring_contracts as $row)
|
||||
<article class="media event">
|
||||
<a class="pull-left date" style="background-color: #de9a24">
|
||||
<p class="month">{{ date("M", strtotime($row->contract_validity)) }}</p>
|
||||
<p class="day">23</p>
|
||||
|
||||
<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
|
||||
@@ -136,60 +129,40 @@
|
||||
<div class="col-md-4">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
<h2>Expiring Certificates</h2>
|
||||
<h2 class="green">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">
|
||||
<p class="month">April</p>
|
||||
<p class="day">23</p>
|
||||
<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" href="#">Item One Title</a>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
|
||||
<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>
|
||||
<article class="media event">
|
||||
@endforeach
|
||||
@else
|
||||
<article class="media event">
|
||||
<a class="pull-left date">
|
||||
<p class="month">April</p>
|
||||
<p class="day">23</p>
|
||||
<p class="month">00</p>
|
||||
<p class="day">00</p>
|
||||
</a>
|
||||
<div class="media-body">
|
||||
<a class="title" href="#">Item Two Title</a>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
|
||||
</div>
|
||||
</article>
|
||||
<article class="media event">
|
||||
<a class="pull-left date">
|
||||
<p class="month">April</p>
|
||||
<p class="day">23</p>
|
||||
</a>
|
||||
<div class="media-body">
|
||||
<a class="title" href="#">Item Two Title</a>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
|
||||
</div>
|
||||
</article>
|
||||
<article class="media event">
|
||||
<a class="pull-left date">
|
||||
<p class="month">April</p>
|
||||
<p class="day">23</p>
|
||||
</a>
|
||||
<div class="media-body">
|
||||
<a class="title" href="#">Item Two Title</a>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
|
||||
</div>
|
||||
</article>
|
||||
<article class="media event">
|
||||
<a class="pull-left date">
|
||||
<p class="month">April</p>
|
||||
<p class="day">23</p>
|
||||
</a>
|
||||
<div class="media-body">
|
||||
<a class="title" href="#">Item Three Title</a>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
|
||||
<a class="title" href="#"></a>
|
||||
<p>No Records</p>
|
||||
</div>
|
||||
</article>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
<ul class="nav child_menu">
|
||||
<li><a href="{!! url('clientpaymentreports') !!}">Client Payments</a></li>
|
||||
<li><a href="{!! url('mnopaymentreports') !!}">MNO Payments</a></li>
|
||||
<li><a href="{!! url('reports/recentclients') !!}">Recent Clients</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
155
resources/views/reports/recent_clients.blade.php
Normal file
155
resources/views/reports/recent_clients.blade.php
Normal file
@@ -0,0 +1,155 @@
|
||||
@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">Recent 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> Recent Clients </h2>
|
||||
|
||||
<div class="pull-right"></div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<div class="x_content">
|
||||
<div>
|
||||
<button id="clients-download-xlsx" class="btn btn-success btn-sm"><i class="fa fa-file-excel-o"></i> Download XLSX</button>
|
||||
<button id="clients-download-pdf" class="btn btn-danger btn-sm"><i class="fa fa-file-pdf-o"></i> Download PDF</button>
|
||||
</div>
|
||||
<div id="recentClientsTable"></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>';
|
||||
}
|
||||
var table = new Tabulator("#recentClientsTable", {
|
||||
ajaxURL: "recentclients/all",
|
||||
paginationSize: 15,
|
||||
layout: "fitColumns",
|
||||
pagination: "remote",
|
||||
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: "Status",
|
||||
field: "status",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Country",
|
||||
field: "country",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Date Added",
|
||||
field: "created_at",
|
||||
sorter: "date",
|
||||
}
|
||||
],
|
||||
// $('#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("clients-download-xlsx").addEventListener("click", function(){
|
||||
table.download("xlsx", "client-list.xlsx", {sheetName:"Sheet 1"});
|
||||
});
|
||||
//trigger download of data.pdf file
|
||||
document.getElementById("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("clients/all?keyword=" + keyword);
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
11
resources/views/test.php
Normal file
11
resources/views/test.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>my title</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user