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,90 @@
@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 Account</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' => 'accountmanagers', '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="type">Designation</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('service_type') ? 'has-error' : ''}}">
{!! Form::select('designation', $designation ,old('designation'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter designation ' , 'id' => 'designation']) !!}
{!! $errors->first('designation', '<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('email') ? 'has-error' : ''}}">
{!! Form::email('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="password">Password</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('passwword') ? 'has-error' : ''}}">
{!! Form::text('password', old('password'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter password' , 'id' => 'password']) !!}
{!! $errors->first('password', '<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="confirm_password">Confirm Password</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('confirm_password') ? 'has-error' : ''}}">
{!! Form::text('confirm_password', old('confirm_password'), ['class' => 'form-control', 'placeholder'=>'Re-enter Password' , 'id' => 'confirm_password']) !!}
<?php //echo Form::password('password', ['class' => 'awesome']); ?>
{!! $errors->first('confirm_password', '<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,96 @@
@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 Account</li>
</ol>
</div>
</div>
<div class="clearfix"></div>
<div class="row">
<div class="col-md-10 col-sm-10 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($account_arr, [
'method' => 'PATCH',
'url' => ['accountmanagers', $account_arr],
'class' => 'form-horizontal form-label-left'
]) !!}
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Name</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('name') ? 'has-error' : ''}}">
{!! 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="type">Designation</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('service_type') ? 'has-error' : ''}}">
{!! Form::select('designation', $designation ,old('designation'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter designation ' , 'id' => 'designation']) !!}
{!! $errors->first('designation', '<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('email') ? 'has-error' : ''}}">
{!! Form::email('email', old('email'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter name' , 'id' => 'email']) !!}
{!! $errors->first('email', '<p class="help-block">:message</p>') !!}
</div>
</div>
<!-- <hr> -->
<!-- <p class="text-center">Leave password blank to keep the current password</p> -->
<!-- <div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="password">Password</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('passwword') ? 'has-error' : ''}}">
{!! Form::text('password', null, ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter password' , 'id' => 'password']) !!}
{!! $errors->first('password', '<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="confirm_password">Confirm Password</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('confirm_password') ? 'has-error' : ''}}">
{!! Form::text('confirm_password', null, ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Re-enter Password' , 'id' => 'confirm_password']) !!}
{!! $errors->first('confirm_password', '<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">
$(function(){
$('select').select2();
});
</script>
@endsection

View File

@@ -0,0 +1,168 @@
@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">Accounts</li>
</ol>
</div>
</div>
<div class="title_right">
<div class="row">
<form method="GET" action="{!! url('accountmanagers') !!}">
<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('accountmanagers') !!}" 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> Accounts </h2>
<div class="pull-right">
<a class="btn btn-primary btn-sm" href="{!! url('accountmanagers/create') !!}"><i class="fa fa-plus-circle"></i> Add Account Manager
</a>
</div>
<div class="clearfix"></div>
</div>
<div class="x_content">
<div class="table-responsive">
<table class="table table-striped ">
<thead>
<tr class="headings">
{{-- <th>#</th> --}}
<th class="column-title">Name</th>
<th class="column-title">Designation</th>
<th class="column-title">Email</th>
<th class="column-title">Phone</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 ($allusers->isEmpty())
<tr>
<td class="" colspan="6">No Records found</td>
</tr>
@else
@foreach ($allusers as $row)
<?php //dd($row); ?>
<tr class="even pointer">
<td class="mes-td" >{{ $row->name }}</td>
<td class="mes-td" >{{ ucwords($row->designation_info->name) }}</td>
<td class="mes-td" >{{ $row->email }}</td>
<td class="mes-td" >{{ $row->phone }}</td>
<td class="last" >
<a href="{!! route('accountmanagers.show', [$row->id]) !!}" class="btn btn-xs btn-info"><i class="fa fa-info-circle"></i></a>
<a href="{!! route('accountmanagers.edit', [$row->id]) !!}" class="btn btn-xs btn-primary"><i class="fa fa-edit"></i></a>
<a title="Remove Service" class="btn btn-xs btn-danger removeAccount"><i class="fa fa-trash"></i></a>
<input type="hidden" name="account_id" class="accountID" value="{{ $row->id }}">
</td>
</tr>
@endforeach
@endif
</tbody>
</table>
</div>
{{ $allusers->links() }} <br>
Page : {{ $allusers->currentPage() }} of {{ $allusers->lastPage() }} |
Total Records : <span id="totalRecords">{{ $allusers->total() }}</span>
</div>
</div>
</div>
</div>
</div>
@endsection
@section('javascript')
<script type="text/javascript">
$(document).ready(function(){
//$('select').select2();
$(".removeAccount").click(function(evt){
var recordsTotal = Number($('#totalRecords').text());
var Rrow = $(this).parents('tr');
var theUrl = "{!! url('accountmanagers/destroy') !!}";
var accountID = $(this).siblings('.accountID').val();
var linker = base_url + "/accountmanagers/" + accountID;
swal({
title: "Delete Confirmation",
text: "This will remove the Account completely from the system. Do you want to continue",
type: "info",
showCancelButton: true,
confirmButtonClass: "btn-danger conBtn",
confirmButtonText: "Yes, remove it!",
showLoaderOnConfirm: true,
closeOnConfirm: false,
closeOnCancel: false
},
function(isConfirm){
if (isConfirm) {
$.ajax({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
type: "DELETE",
data: { id: accountID },
url: base_url + "/accountmanagers/" + accountID,
success: function(data){
if (data.code === 1) {
$(Rrow).remove();
$('#totalRecords').text(recordsTotal - 1);
swal("Deleted!", "Selected Account has been removed .", "success");
}
if (data.code === 3) {
swal("Not Permitted", "This Operator has transactions! .", "warning");
}
}
});// end of ajax function
} else {
swal("Cancelled", "You cancelled the operation :)", "error");
}
});
});
});
</script>
@endsection

View File

@@ -0,0 +1,65 @@
@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('accounts') !!}">Account</a></li>
<li class="active">Display Account 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>Account 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($account_arr->name) }} </p>
</div>
<div class="product-image44">
<p>Type : {{ ucwords($account->designation) }}</p>
</div>
<div class="product-image44">
<p>Type : {{ ucwords($account->email) }}</p>
</div>
<div class="product-image44">
<p>Type : {{ ucwords($account->phone) }}</p>
</div>
</blockquote>
<div class="clearfix"></div>
<br>
</div>
</div>
<div>
</div>
</div>
</div>
</div>
</div>
@endsection