604 lines
36 KiB
PHP
604 lines
36 KiB
PHP
@extends('Admin.layouts.master')
|
||
|
||
@section('content')
|
||
<!--<div class="app-wrapper flex-column flex-row-fluid" id="kt_app_wrapper">
|
||
<div class="app-main flex-column flex-row-fluid" id="kt_app_main">-->
|
||
<div id="success" class="">
|
||
</div>
|
||
<div class="d-flex flex-column flex-column-fluid">
|
||
<div id="kt_app_toolbar" class="app-toolbar py-3 py-lg-6">
|
||
<div id="kt_app_toolbar_container" class="app-container container-xxl d-flex flex-stack">
|
||
<div class="page-title d-flex flex-column justify-content-center flex-wrap me-3">
|
||
<h1 class="page-heading d-flex text-dark fw-bold fs-3 flex-column justify-content-center my-0">
|
||
Manage KYC Details</h1>
|
||
|
||
</div>
|
||
<div class="d-flex align-items-center gap-2 gap-lg-3">
|
||
<div class="m-0">
|
||
<a href="#"
|
||
class="btn btn-sm btn-flex bg-body btn-color-gray-700 btn-active-color-primary fw-bold"
|
||
data-kt-menu-trigger="click" data-kt-menu-placement="bottom-end">
|
||
<span class="svg-icon svg-icon-6 svg-icon-muted me-1">
|
||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none"
|
||
xmlns="http://www.w3.org/2000/svg">
|
||
<path
|
||
d="M19.0759 3H4.72777C3.95892 3 3.47768 3.83148 3.86067 4.49814L8.56967 12.6949C9.17923 13.7559 9.5 14.9582 9.5 16.1819V19.5072C9.5 20.2189 10.2223 20.7028 10.8805 20.432L13.8805 19.1977C14.2553 19.0435 14.5 18.6783 14.5 18.273V13.8372C14.5 12.8089 14.8171 11.8056 15.408 10.964L19.8943 4.57465C20.3596 3.912 19.8856 3 19.0759 3Z"
|
||
fill="currentColor" />
|
||
</svg>
|
||
</span>Filter
|
||
</a>
|
||
<div class="menu menu-sub menu-sub-dropdown w-250px w-md-300px"
|
||
data-kt-menu="true" id="kt_menu_62cfa3a253c5c">
|
||
<div class="px-7 py-5">
|
||
<div class="fs-5 text-dark fw-bold">Filter Options</div>
|
||
</div>
|
||
<div class="separator border-gray-200"></div>
|
||
<div class="px-7 py-5">
|
||
<div class="mb-10">
|
||
<label class="form-label fw-semibold">Status:</label>
|
||
<div>
|
||
<select class="form-select form-select-solid"
|
||
data-kt-select2="true" data-placeholder="Select option"
|
||
data-dropdown-parent="#kt_menu_62cfa3a253c5c"
|
||
data-allow-clear="true">
|
||
<option></option>
|
||
<option value="1">Active</option>
|
||
<option value="2">In-active</option>
|
||
|
||
</select>
|
||
</div>
|
||
</div>
|
||
<div class="d-flex justify-content-end">
|
||
<button type="reset"
|
||
class="btn btn-sm btn-light btn-active-light-primary me-2"
|
||
data-kt-menu-dismiss="true">Reset</button>
|
||
<button type="submit" class="btn btn-sm btn-primary"
|
||
data-kt-menu-dismiss="true">Apply</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<a href="{{ url('/export-mag_kyc') }}" class="btn btn-sm fw-bold btn-primary">Export</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="kt_app_content" class="app-content flex-column-fluid">
|
||
<div id="kt_app_content_container" class="app-container container-xxl">
|
||
<form action="#">
|
||
<!--begin::Card-->
|
||
<!--<div class="card mb-7">-->
|
||
<!--begin::Card body-->
|
||
<!-- <div class="card-body">-->
|
||
<!--begin::Compact form-->
|
||
<!-- <div class="d-flex align-items-center">-->
|
||
<!--begin::Input group-->
|
||
<!-- <div class="position-relative w-md-400px me-md-2 ">-->
|
||
<!--begin::Svg Icon | path: icons/duotune/general/gen021.svg-->
|
||
<!-- <span-->
|
||
<!-- class="svg-icon svg-icon-3 svg-icon-gray-500 position-absolute top-50 translate-middle ms-6">-->
|
||
<!-- <svg width="24" height="24" viewBox="0 0 24 24" fill="none"-->
|
||
<!-- xmlns="http://www.w3.org/2000/svg">-->
|
||
<!-- <rect opacity="0.5" x="17.0365" y="15.1223" width="8.15546"-->
|
||
<!-- height="2" rx="1" transform="rotate(45 17.0365 15.1223)"-->
|
||
<!-- fill="currentColor"></rect>-->
|
||
<!-- <path-->
|
||
<!-- d="M11 19C6.55556 19 3 15.4444 3 11C3 6.55556 6.55556 3 11 3C15.4444 3 19 6.55556 19 11C19 15.4444 15.4444 19 11 19ZM11 5C7.53333 5 5 7.53333 5 11C5 14.4667 7.53333 17 11 17C14.4667 17 17 14.4667 17 11C17 7.53333 14.4667 5 11 5Z"-->
|
||
<!-- fill="currentColor"></path>-->
|
||
<!-- </svg>-->
|
||
<!-- </span>-->
|
||
<!--end::Svg Icon-->
|
||
<!-- <input type="text" class="form-control form-control-solid ps-10 h-40px"-->
|
||
<!-- name="search" value="" placeholder="Search">-->
|
||
<!-- </div>-->
|
||
<!--end::Input group-->
|
||
<!--begin:Action-->
|
||
<!-- <div class="d-flex align-items-center">-->
|
||
<!-- <button type="submit" class="btn btn-primary me-5">Search</button>-->
|
||
|
||
<!-- </div>-->
|
||
<!--end:Action-->
|
||
<!-- </div>-->
|
||
<!--end::Compact form-->
|
||
|
||
<!-- </div>-->
|
||
<!--end::Card body-->
|
||
<!--</div>-->
|
||
<!--end::Card-->
|
||
</form>
|
||
|
||
<div class="card mb-5 mb-xl-8">
|
||
<div class="card-body card-padding">
|
||
<div class="table-responsive">
|
||
<table
|
||
class="table table-row-bordered table-row-gray-100 align-middle gs-0 gy-3" id="example">
|
||
|
||
<thead>
|
||
<tr class="fw-bold ">
|
||
<th class="w-50px">
|
||
<div
|
||
class="form-check form-check-sm form-check-custom form-check-solid">
|
||
<input class="form-check-input" type="checkbox"
|
||
value="1" data-kt-check="true"
|
||
data-kt-check-target=".widget-13-check" />
|
||
</div>
|
||
</th>
|
||
<th class="min-w-25px">SR. No.</th>
|
||
<th class="min-w-125px">Full Name</th>
|
||
<th class="min-w-120px">Date of Birth</th>
|
||
<th class="min-w-120px">Document Type</th>
|
||
<th class="min-w-100px">Email Id</th>
|
||
<th class="min-w-175px">Address</th>
|
||
<th class="min-w-50px">Status</th>
|
||
<th class="min-w-175px text-center">Actions</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
@foreach($get_details as $key=>$row)
|
||
<tr id="uid{{$row->id}}">
|
||
<td>
|
||
<div
|
||
class="form-check form-check-sm form-check-custom form-check-solid">
|
||
<input class="form-check-input widget-13-check"
|
||
type="checkbox" value="1" />
|
||
</div>
|
||
</td>
|
||
<td
|
||
class="fs-6">{{$key+1}}
|
||
</td>
|
||
<td class="fs-6">
|
||
{{$row->firstName}} {{$row->lastName}}
|
||
|
||
</td>
|
||
<td class="fs-6">
|
||
{{date("d-m-Y", strtotime($row->DOB)) }}
|
||
|
||
|
||
</td>
|
||
<td class=" fs-6">{{$row->pan_number}}
|
||
|
||
</td>
|
||
<td class="fs-6">
|
||
{{$row->email}}</td>
|
||
<td class=" fs-6">{{$row->address}}</td>
|
||
<td>
|
||
<div class="custom-control custom-switch blog-switch">
|
||
<input type="checkbox" class="custom-control-input" id="customSwitch1">
|
||
<label class="custom-control-label" for="customSwitch1" data-toggle="tooltip" title="Active"></label>
|
||
</div>
|
||
|
||
</td>
|
||
<td class="text-center">
|
||
<a href="{{url('manage_kyc_view/'.$row->id)}}"
|
||
class="btn btn-icon btn-bg-light btn-active-color-primary btn-sm me-1">
|
||
<!--begin::Svg Icon | path: icons/duotune/general/gen019.svg-->
|
||
<span class="svg-icon svg-icon-3">
|
||
<svg xmlns="http://www.w3.org/2000/svg" width="16"
|
||
height="16" fill="currentColor"
|
||
class="bi bi-eye" viewBox="0 0 16 16">
|
||
<path
|
||
d="M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z" />
|
||
<path
|
||
d="M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z" />
|
||
</svg>
|
||
</span>
|
||
<!--end::Svg Icon-->
|
||
</a>
|
||
<a href="javascript:void()"
|
||
data-toggle="modal"
|
||
data-target="#edit_perdetails"
|
||
data-id ="{{$row->id}}";
|
||
data-first_name ="{{$row->firstName}}";
|
||
data-last_name ="{{$row->lastName}}";
|
||
data-address ="{{$row->address}}";
|
||
data-email = "{{$row->email}}";
|
||
data-pan_num ="{{$row->pan_number}}";
|
||
data-mob_num ="{{$row->mob_number}}";
|
||
data-age = "{{$row->age}}";
|
||
data-occupation = "{{$row->occupation}}";
|
||
data-gender ="{{$row->gender}}";
|
||
data-resisential_status="{{$row->residential_status}}",
|
||
data-life_expectancy ="{{$row->life_expectancy}}"
|
||
class="btn btn-icon btn-bg-light btn-active-color-primary btn-sm me-1 view_single_user_detail">
|
||
<!--begin::Svg Icon | path: icons/duotune/art/art005.svg-->
|
||
<span class="svg-icon svg-icon-3">
|
||
<svg width="24" height="24" viewBox="0 0 24 24"
|
||
fill="none" xmlns="http://www.w3.org/2000/svg">
|
||
<path opacity="0.3"
|
||
d="M21.4 8.35303L19.241 10.511L13.485 4.755L15.643 2.59595C16.0248 2.21423 16.5426 1.99988 17.0825 1.99988C17.6224 1.99988 18.1402 2.21423 18.522 2.59595L21.4 5.474C21.7817 5.85581 21.9962 6.37355 21.9962 6.91345C21.9962 7.45335 21.7817 7.97122 21.4 8.35303ZM3.68699 21.932L9.88699 19.865L4.13099 14.109L2.06399 20.309C1.98815 20.5354 1.97703 20.7787 2.03189 21.0111C2.08674 21.2436 2.2054 21.4561 2.37449 21.6248C2.54359 21.7934 2.75641 21.9115 2.989 21.9658C3.22158 22.0201 3.4647 22.0084 3.69099 21.932H3.68699Z"
|
||
fill="currentColor"></path>
|
||
<path
|
||
d="M5.574 21.3L3.692 21.928C3.46591 22.0032 3.22334 22.0141 2.99144 21.9594C2.75954 21.9046 2.54744 21.7864 2.3789 21.6179C2.21036 21.4495 2.09202 21.2375 2.03711 21.0056C1.9822 20.7737 1.99289 20.5312 2.06799 20.3051L2.696 18.422L5.574 21.3ZM4.13499 14.105L9.891 19.861L19.245 10.507L13.489 4.75098L4.13499 14.105Z"
|
||
fill="currentColor"></path>
|
||
</svg>
|
||
</span>
|
||
<!--end::Svg Icon-->
|
||
</a>
|
||
<a href="javascript:void(0)" data-toggle="modal" data-target="#delete_opt"
|
||
class="btn btn-icon btn-bg-light btn-active-color-primary btn-sm userdeletebtn"
|
||
data-id="{{$row->id}}">
|
||
<!--begin::Svg Icon | path: icons/duotune/general/gen027.svg-->
|
||
<span class="svg-icon svg-icon-3">
|
||
<svg width="24" height="24" viewBox="0 0 24 24"
|
||
fill="none" xmlns="http://www.w3.org/2000/svg">
|
||
<path
|
||
d="M5 9C5 8.44772 5.44772 8 6 8H18C18.5523 8 19 8.44772 19 9V18C19 19.6569 17.6569 21 16 21H8C6.34315 21 5 19.6569 5 18V9Z"
|
||
fill="currentColor" />
|
||
<path opacity="0.5"
|
||
d="M5 5C5 4.44772 5.44772 4 6 4H18C18.5523 4 19 4.44772 19 5V5C19 5.55228 18.5523 6 18 6H6C5.44772 6 5 5.55228 5 5V5Z"
|
||
fill="currentColor" />
|
||
<path opacity="0.5"
|
||
d="M9 4C9 3.44772 9.44772 3 10 3H14C14.5523 3 15 3.44772 15 4V4H9V4Z"
|
||
fill="currentColor" />
|
||
</svg>
|
||
</span>
|
||
<!--end::Svg Icon-->
|
||
</a>
|
||
|
||
</td>
|
||
</tr>
|
||
|
||
@endforeach
|
||
</tbody>
|
||
<!--end::Table body-->
|
||
</table>
|
||
<!--end::Table-->
|
||
</div>
|
||
<!--end::Table container-->
|
||
</div>
|
||
<!--begin::Body-->
|
||
|
||
</div>
|
||
<!--end::Tables Widget 13-->
|
||
<div class="d-flex flex-stack flex-wrap pt-10 justify-content-end">
|
||
|
||
<!--begin::Pages-->
|
||
<!-- <ul class="pagination">
|
||
<li class="page-item previous">
|
||
<a href="#" class="page-link">
|
||
<i class="previous"></i>
|
||
</a>
|
||
</li>
|
||
<li class="page-item active">
|
||
<a href="#" class="page-link">1</a>
|
||
</li>
|
||
<li class="page-item">
|
||
<a href="#" class="page-link">2</a>
|
||
</li>
|
||
<li class="page-item">
|
||
<a href="#" class="page-link">3</a>
|
||
</li>
|
||
|
||
<li class="page-item next">
|
||
<a href="#" class="page-link">
|
||
<i class="next"></i>
|
||
</a>
|
||
</li>
|
||
</ul>-->
|
||
<!--end::Pages-->
|
||
</div>
|
||
</div>
|
||
<!--end::Content container-->
|
||
</div>
|
||
<!--end::Content-->
|
||
</div>
|
||
<!--end::Content wrapper-->
|
||
|
||
<!-- </div>
|
||
end:::Main
|
||
</div>-->
|
||
<!--end::Wrapper-->
|
||
</div>
|
||
<!--end::Page-->
|
||
</div>
|
||
<!--end::App-->
|
||
|
||
|
||
|
||
<!--begin::Scrolltop-->
|
||
<div id="kt_scrolltop" class="scrolltop" data-kt-scrolltop="true">
|
||
<!--begin::Svg Icon | path: icons/duotune/arrows/arr066.svg-->
|
||
<span class="svg-icon">
|
||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||
<rect opacity="0.5" x="13" y="6" width="13" height="2" rx="1" transform="rotate(90 13 6)"
|
||
fill="currentColor" />
|
||
<path
|
||
d="M12.5657 8.56569L16.75 12.75C17.1642 13.1642 17.8358 13.1642 18.25 12.75C18.6642 12.3358 18.6642 11.6642 18.25 11.25L12.7071 5.70711C12.3166 5.31658 11.6834 5.31658 11.2929 5.70711L5.75 11.25C5.33579 11.6642 5.33579 12.3358 5.75 12.75C6.16421 13.1642 6.83579 13.1642 7.25 12.75L11.4343 8.56569C11.7467 8.25327 12.2533 8.25327 12.5657 8.56569Z"
|
||
fill="currentColor" />
|
||
</svg>
|
||
</span>
|
||
<!--end::Svg Icon-->
|
||
</div>
|
||
<!--end::Scrolltop-->
|
||
<!--begin::Modals-->
|
||
|
||
|
||
|
||
|
||
<!--begin::Delete Modals-->
|
||
<div class="modal fade" id="delete_opt" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle"
|
||
aria-hidden="true">
|
||
<div class="modal-dialog modal-dialog-centered" role="document">
|
||
<div class="modal-content Delete_pop">
|
||
|
||
<div class="modal-body">
|
||
<form action="" id="delete_user_kyc_form">
|
||
@csrf
|
||
<input type="hidden" id="uid" name="uid" />
|
||
<svg style="color: red;margin-bottom: 20px;" xmlns="http://www.w3.org/2000/svg" width="50" height="50" fill="currentColor" class="bi bi-x-circle" viewBox="0 0 16 16"> <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z" fill="red"></path> <path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z" fill="red"></path> </svg>
|
||
<h2>Are you sure want to delete?</h2>
|
||
<!--<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor</p>-->
|
||
<div class="modal-footer logout_footer">
|
||
<button id="close_modal" class="log-close" type="button" data-dismiss="modal" aria-label="Close">
|
||
<span aria-hidden="true">Cancel</span>
|
||
</button>
|
||
<button id='delete_kyc_form' class="btn btn-primary">Delete</button>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<!--end:: DeleteModals-->
|
||
|
||
<!-- Button trigger modal -->
|
||
<!--begin::tab 1 Modals-->
|
||
<div class="modal fade" id="edit_perdetails" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle"
|
||
aria-hidden="true">
|
||
<div class="modal-dialog modal-dialog-centered" role="document">
|
||
<div class="modal-content addpln-content editsub_details">
|
||
<div class="modal-header">
|
||
<h5 class="modal-title" id="exampleModalLongTitle">Edit Personal Information</h5>
|
||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||
<span aria-hidden="true">×</span>
|
||
</button>
|
||
</div>
|
||
<div class="modal-body">
|
||
<form>
|
||
@csrf
|
||
<input type="hidden" placeholder="" id="kyc_id" value="">
|
||
<div class="edit_perinfo">
|
||
<div class="perinfo_row">
|
||
<label>Full Name :</label>
|
||
<input type="text" placeholder="Enter Full Name" id="first_name" value="">
|
||
</div>
|
||
<div class="perinfo_row">
|
||
<label>Address :</label>
|
||
<input type="text" placeholder="Enter Address" id="address" value="Malad West, Mumbai, Maharashtra 400064">
|
||
</div>
|
||
<div class="perinfo_row">
|
||
<label>Email ID :</label>
|
||
<input type="text" placeholder="Enter Email ID" id="email" value="aditya@gmail.com">
|
||
</div>
|
||
<div class="perinfo_row">
|
||
<label>PAN Number :</label>
|
||
<input type="text" placeholder="Enter PAN Number" id="panNumber" value="BCZPG4561C">
|
||
</div>
|
||
<div class="perinfo_row">
|
||
<label>Mobile number :</label>
|
||
<input type="text" placeholder="Enter Mobile Number" id="mobile" value="8425025713">
|
||
</div>
|
||
<div class="perinfo_row">
|
||
<label>Age :</label>
|
||
<input type="text" placeholder="Enter Age" id="age" value="27">
|
||
</div>
|
||
<div class="perinfo_row">
|
||
<label>Occupation :</label>
|
||
<input type="text" placeholder="Enter Occupation" id="occupation" value="UI/ UX Designer">
|
||
</div>
|
||
<div class="perinfo_row">
|
||
<label>Gender :</label>
|
||
<input type="text" placeholder="Enter Gender" id="gender" value="Male">
|
||
</div>
|
||
<div class="perinfo_row">
|
||
<label>Residential Status :</label>
|
||
<input type="text" placeholder="Enter Residential Status" id="res_status" value="Malad West, Mumbai, Maharashtra 400064">
|
||
</div>
|
||
<div class="perinfo_row">
|
||
<label>Retirement Age :</label>
|
||
<input type="text" placeholder="Enter Retirement Age" value="60">
|
||
</div>
|
||
<div class="perinfo_row">
|
||
<label>Life expectancy :</label>
|
||
<input type="text" placeholder="Enter Life expectancy" id="life_exp" value="70">
|
||
</div>
|
||
<div class="modal-header">
|
||
<h5 class="modal-title" id="exampleModalLongTitle">Edit Family Details</h5>
|
||
</div>
|
||
<div class="edit_perinfo">
|
||
<div class="perinfo_row">
|
||
<label>Father’s Name :</label>
|
||
<input type="text" placeholder="Enter Father’s Name" value="Lorem Ipsum">
|
||
</div>
|
||
<div class="perinfo_row">
|
||
<label>Occupation :</label>
|
||
<select name="occupation" id="occ">
|
||
<option value="manager">Manager</option>
|
||
<option value="business">Business</option>
|
||
<option value="doctor">Doctor</option>
|
||
<option value="engineer">Engineer</option>
|
||
</select>
|
||
</div>
|
||
<div class="perinfo_row">
|
||
<label>Date of Birth :</label>
|
||
<input type="date" >
|
||
</div>
|
||
<div class="perinfo_row">
|
||
<label>Age:</label>
|
||
<input type="text" placeholder="Enter Age" value="50">
|
||
</div>
|
||
<div class="perinfo_row">
|
||
<label>Mother Name :</label>
|
||
<input type="text" placeholder="Enter Mother Name" value="Priyanka Joshi">
|
||
</div>
|
||
<div class="perinfo_row">
|
||
<label>Occupation</label>
|
||
<select name="occupation" id="occ">
|
||
<option value="house wife">House Wife</option>
|
||
<option value="manager">Manager</option>
|
||
<option value="business">Business</option>
|
||
<option value="doctor">Doctor</option>
|
||
<option value="engineer">Engineer</option>
|
||
</select>
|
||
</div>
|
||
<div class="perinfo_row">
|
||
<label>Date of Birth*</label>
|
||
<input type="date" >
|
||
</div>
|
||
<div class="perinfo_row">
|
||
<label>Age :</label>
|
||
<input type="text" placeholder="Enter Age" value="45">
|
||
</div>
|
||
<div class="perinfo_row">
|
||
<label>Husband / Wife Name :</label>
|
||
<input type="text" placeholder="Enter Husband / Wife Name" value="Kiara Advani">
|
||
</div>
|
||
<div class="perinfo_row">
|
||
<label>Occupation :</label>
|
||
<select name="occupation" id="occ">
|
||
<option value="house wife">House Wife</option>
|
||
<option value="manager">Manager</option>
|
||
<option value="business">Business</option>
|
||
<option value="doctor">Doctor</option>
|
||
<option value="engineer">Engineer</option>
|
||
</select>
|
||
</div>
|
||
<div class="perinfo_row">
|
||
<label>Date of Birth*</label>
|
||
<input type="date">
|
||
</div>
|
||
<div class="perinfo_row">
|
||
<label>Age :</label>
|
||
<input type="text" placeholder="Enter Age" value="45">
|
||
</div>
|
||
<div class="perinfo_row">
|
||
<label>Children :</label>
|
||
<select name="occupation" id="occ">
|
||
<option value="yes">Yes</option>
|
||
<option value="no">No</option>
|
||
</select>
|
||
</div>
|
||
|
||
</div>
|
||
<div class="modal-header">
|
||
<h5 class="modal-title" id="exampleModalLongTitle">Edit Add Income & Expenses Details</h5>
|
||
|
||
</div>
|
||
<!--<h5 >Edit Add Income & Expenses Details</h5>-->
|
||
<div class="edit_perinfo">
|
||
<div class="perinfo_row1">
|
||
<label>Income - Salary, Business, Post office MIS, Pension, Others</label>
|
||
<input type="text" placeholder="Enter Income" value="Lorem Ipsum">
|
||
</div>
|
||
<div class="perinfo_row1">
|
||
<label>Expenses - Rent, Medical, Household exp, Vacations, Parties</label>
|
||
<input type="text" placeholder="Enter Income" value="Lorem Ipsum">
|
||
</div>
|
||
<div class="perinfo_row1">
|
||
<label>Add Assets & Liabilities</label>
|
||
<input type="text" placeholder="Enter Income" value="Lorem Ipsum">
|
||
</div>
|
||
<div class="perinfo_row1">
|
||
<label>Liabilities - Housing, Credit card, All types of Loans</label>
|
||
<input type="text" placeholder="Enter Income" value="Lorem Ipsum">
|
||
</div>
|
||
<div class="perinfo_row1">
|
||
<label>Existing Insurance (If any)</label>
|
||
<select name="insurance" id="ins">
|
||
<option value="term plan">Term Plan</option>
|
||
<option value="business">Yearly<option>
|
||
<option value="doctor">No plan</option>
|
||
</select>
|
||
|
||
</div>
|
||
|
||
|
||
</div>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button type="button" id="updateSingleUserDetail" class="btn btn-primary">Save</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<!--end::tab 1 Modals-->
|
||
|
||
|
||
<!--end::Modals-->
|
||
<!--@section('scripts')-->
|
||
<script>
|
||
$(document).ready(function () {
|
||
/* When click show user */
|
||
$('.view_single_user_detail').on('click', function () {
|
||
// alert("show");
|
||
var id = $(this).data("id");
|
||
var first_name = $(this).data("first_name");
|
||
var address = $(this).data("address");
|
||
var emailId = $(this).data("email");
|
||
var pan_num = $(this).data("pan_num");
|
||
var mob_num = $(this).data("mob_num");
|
||
var age = $(this).data("age");
|
||
var occupation = $(this).data("occupation");
|
||
var gender = $(this).data("gender");
|
||
var resisential_status = $(this).data("resisential_status");
|
||
var life_expectancy = $(this).data("life_expectancy");
|
||
// var last_name = $(this).data("last_name");
|
||
|
||
// $('#kyc_id').html(id);
|
||
// alert(first_name);
|
||
$('#kyc_id').val(id);
|
||
$('#first_name').val(first_name);
|
||
$('#address').val(address);
|
||
$('#email').val(emailId);
|
||
$('#panNumber').val(pan_num);
|
||
$('#mobile').val(mob_num);
|
||
$('#age').val(age);
|
||
$('#occupation').val(occupation);
|
||
$('#gender').val(gender);
|
||
$('#res_status').val(resisential_status);
|
||
$('#life_exp').val(life_expectancy);
|
||
});
|
||
});
|
||
$('#updateSingleUserDetail').on('click', function (e) {
|
||
e.preventDefault();
|
||
var kyc_id = $('#kyc_id').val();
|
||
// alert(kyc_id);
|
||
var data = {
|
||
'kyc_id': kyc_id,
|
||
'first_name': $('#first_name').val(),
|
||
'address': $('#address').val(),
|
||
'email': $('#email').val(),
|
||
'panNumber': $('#panNumber').val(),
|
||
'mobile': $('#mobile').val(),
|
||
'age': $('#age').val(),
|
||
'occupation': $('#occupation').val(),
|
||
'gender': $('#gender').val(),
|
||
'res_status': $('#res_status').val(),
|
||
'life_exp': $('#life_exp').val(),
|
||
};
|
||
// console.log(data);
|
||
$.ajax({
|
||
url:'{{url("/edit_manage_kyc")}}',
|
||
type: "POST",
|
||
data: {kycdata: data,
|
||
_token: $("input[name=_token]").val()
|
||
},
|
||
dataType: "json",
|
||
success: function (response) {
|
||
toastr.info('User kyc Updated successfully!')
|
||
$('#edit_perdetails').modal('hide');
|
||
setTimeout(function () {
|
||
window.location.reload();
|
||
}, 3000);
|
||
window.location.reload();
|
||
}
|
||
});
|
||
});
|
||
|
||
</script>
|
||
@endsection
|
||
|
||
@endsection
|