first commit, after modifying client section

This commit is contained in:
Kwesi Banson
2023-02-22 07:48:50 +00:00
commit ad0dd6a6e1
1880 changed files with 538494 additions and 0 deletions

View File

@@ -0,0 +1,111 @@
@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">Create Client</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">
@include('commons.notifications')
<div class="clearfix"></div>
</div>
{{-- start of content --}}
<div class="x_content">
<br>
{!! Form::open(['url' => 'clients', 'class' => 'form-horizontal form-label-left']) !!}
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Name</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('name') ? 'has-error' : ''}}">
{!! Form::text('name', old('name'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter name' , 'id' => 'name']) !!}
{!! $errors->first('name', '<p class="help-block">:message</p>') !!}
</div>
</div>
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="email">Email</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('name') ? 'has-error' : ''}}">
{!! Form::text('email', old('email'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter email' , 'id' => 'email']) !!}
{!! $errors->first('email', '<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="auth_user_id">Account Manager</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('auth_user_id') ? 'has-error' : ''}}">
{!! Form::select('auth_user_id', $auth_users ,old('auth_user_id'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter Account Manager ' , 'id' => 'auth_user_id']) !!}
{!! $errors->first('auth_user_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="type">Type</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('type') ? 'has-error' : ''}}">
{!! Form::select('type', $service_type ,old('type'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter Service ' , 'id' => 'type']) !!}
{!! $errors->first('type', '<p class="help-block">:message</p>') !!}
</div>
</div>
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="country">Country</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('country') ? 'has-error' : ''}}">
{!! Form::select('country', $countries ,old('country'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter Country ' , 'id' => 'country']) !!}
{!! $errors->first('country', '<p class="help-block">:message</p>') !!}
</div>
</div>
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="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'=>'Enter Status ' , 'id' => 'status']) !!}
{!! $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="payment_mode">Payment Mode</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('payment_mode') ? 'has-error' : ''}}">
{!! Form::select('payment_mode', $payment_type ,old('payment_mode'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter Payment Type ' , 'id' => 'payment_mode']) !!}
{!! $errors->first('payment_mode', '<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="currency">Currency</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('currency') ? 'has-error' : ''}}">
{!! Form::select('currency', $currency ,old('currency'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter Currency ' , 'id' => 'currency']) !!}
{!! $errors->first('currency', '<p class="help-block">:message</p>') !!}
</div>
</div>
<div class="ln_solid"></div>
<div class="form-group">
<div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
<button type="submit" class="btn btn-success"><i class="fa fa-save"></i> 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">
$(function(){
$('select').select2();
});
</script>
@endsection

View File

@@ -0,0 +1,83 @@
@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">Create Service</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">
@include('commons.notifications')
<div class="clearfix"></div>
</div>
{{-- start of content --}}
<div class="x_content">
<br>
{!! Form::model($client, [
'method' => 'PATCH',
'url' => ['ussdclients', $client],
'class' => 'form-horizontal form-label-left'
]) !!}
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="amountPaid">Amount Paid</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('amount_paid') ? 'has-error' : ''}}">
{!! Form::number('amount_paid', old('amount_paid'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter amount total amount paid' , 'id' => 'amountPaid']) !!}
{!! $errors->first('amount_paid', '<p class="help-block">:message</p>') !!}
<p class="help-block" style="color: red;">-- no commas --</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="paymentType">Payment Type</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('payment_type') ? 'has-error' : ''}}">
{!! Form::text('payment_type', old('payment_type'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter payment type e.g. initial deposit' , 'id' => 'paymentType']) !!}
{!! $errors->first('payment_type', '<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' , '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"><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">
$(function(){
$('select').select2();
});
</script>
@endsection

View File

@@ -0,0 +1,119 @@
@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">
<div class="title_left">
<ol class="breadcrumb">
<li><a href="{!! url('dashboard') !!}">Dashboard</a></li>
<li class="active">Ussd Clients</li>
</ol>
</div>
</div>
<div class="title_right">
<div class="row">
<form method="GET" action="{!! url('ussdclients') !!}">
<div class="col-md-5 col-sm-5 col-xs-12 form-group">
<div style="margin-top:1px; margin-right:-90px;" class="top_search">
{!! Form::select('filter', $columns, null, ['class' => 'form-control', 'placeholder' => 'Select Filter here']) !!}
</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" 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('ussdclients') !!}" 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> USSD Clients </h2>
<div class="clearfix"></div>
</div>
<div class="x_content">
<div class="table-responsive">
<table class="table table-striped ">
<thead>
<tr class="headings">
<th class="column-title">Name</th>
<th class="column-title">Email</th>
<th class="column-title">Account Manager</th>
<th class="column-title">Amount Paid</th>
<th class="column-title">Payment Type</th>
<th class="column-title">Remarks</th>
<th class="column-title">Last Modified By</th>
<th class="column-title">Date Added</th>
<th class="column-title no-link last"><span class="nobr">Action</span>
</th>
<th class="bulk-actions" colspan="7">
<a class="antoo" style="color:#fff; font-weight:500;">Bulk Actions ( <span class="action-cnt"> </span> ) <i class="fa fa-chevron-down"></i></a>
</th>
</tr>
</thead>
<tbody>
@if ($client_arr->isEmpty())
<tr>
<td class="" colspan="7">No Records found</td>
</tr>
@else
@foreach ($client_arr as $row)
<?php if ($row->client_info == false) {
continue;
} ?>
<tr class="even pointer">
<td class="mes-td">{{ $row->client_info->name }}</td>
<td class="mes-td">{{ $row->client_info->email }}</td>
<td class="mes-td">{{ $account_managers[$row->client_info->auth_user_id] }}</td>
<td class="mes-td">{{ number_format($row->amount_paid) }}</td>
<td class="mes-td">{{ $row->payment_type or 'N/A' }}</td>
<td class="mes-td">{{ $row->remarks or 'N/A' }}</td>
<td class="mes-td">{{ $account_managers[$row->last_modified_by_id] }}</td>
<td class="mes-td">{{ $row->created_at }}</td>
<td class="last" >
<a href="{!! route('ussdclients.edit', [$row->id]) !!}" class="btn btn-xs btn-primary"><i class="fa fa-edit"></i></a>
<input type="hidden" name="client_id" class="clientID" value="{{ $row->id }}">
</td>
</tr>
@endforeach
@endif
</tbody>
</table>
</div>
{{ $client_arr->links() }} <br>
Page : {{ $client_arr->currentPage() }} of {{ $client_arr->lastPage() }} |
Total Records : <span id="totalRecords">{{ $client_arr->total() }}</span>
</div>
</div>
</div>
@endsection

View File

@@ -0,0 +1,59 @@
@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">
</div>
<div class="title_left">
<ol class="breadcrumb">
<li><a href="{!! url('dashboard') !!}">Dashboard</a></li>
<li><a href="{!! url('clients') !!}">Client</a></li>
<li class="active">Display Client</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>Service Details </h2>
<div class="clearfix"></div>
</div>
<div class="x_content">
@include('commons.notifications')
<div class="col-md-7 col-sm-7 col-xs-12 ">
<blockquote style="line-height: 300%;">
<div class="product-image44">
<p>Name : {{ ucwords($showclient->name) }} </p>
</div>
<div class="product-image44">
<p>Type : {{ ucwords($showclient->type) }}</p>
</div>
</blockquote>
<div class="clearfix"></div>
<br>
</div>
</div>
<div>
</div>
</div>
</div>
</div>
</div>
@endsection