mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-10-03 15:13:04 -04:00
199 lines
7.8 KiB
PHP
199 lines
7.8 KiB
PHP
@extends('backEnd.master')
|
|
@section('styles')
|
|
<link rel="stylesheet" href="{{asset(asset_path('modules/supportticket/css/style.css'))}}" />
|
|
|
|
@endsection
|
|
@section('mainContent')
|
|
<section class="admin-visitor-area">
|
|
<div class="container-fluid p-0">
|
|
<div class="row justify-content-between p-3">
|
|
<div class="bc-pages">
|
|
<h3 class="mb-0 mr-30 mb_xs_15px mb_sm_20px">{{__('referral.my_referrals')}}</h3>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="white-box">
|
|
<div class="row">
|
|
<div class="col-md-6 text-center">
|
|
<h4>{{__('referral.client_referral_link')}}</h4>
|
|
<h5>{{ url('/client/register/'.Auth::user()->referral_code) }}</h5>
|
|
</div>
|
|
<div class="col-md-6 text-center">
|
|
<h4>{{__('referral.staff_referral_link')}}</h4>
|
|
<h5>{{ url('/staff/register/'.Auth::user()->referral_code) }}</h5>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12 mt-40">
|
|
<div class="main-title">
|
|
<h3 class="mb-0">{{__('referral.my_referral_list')}}</h3>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-12">
|
|
|
|
<div class="row mt-40">
|
|
<div class="col-lg-12">
|
|
|
|
<div class="QA_section QA_section_heading_custom check_box_table">
|
|
<div class="QA_table ">
|
|
<table class="table Crm_table_active3">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">{{ __('common.sl') }}</th>
|
|
<th scope="col">{{ __('common.name') }}</th>
|
|
<th scope="col">{{ __('hr.role') }}</th>
|
|
<th scope="col" class="text-end">{{ __('common.registered_date') }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($referrals as $key => $referral)
|
|
|
|
<tr>
|
|
<th>{{ getNumberTranslate($key+1) }}</th>
|
|
<td>{{ucwords( @$referral->getFullNameAttribute() ) }}</a></td>
|
|
<td>{{ @$referral->role->name }}</td>
|
|
<td class="text-end">{{ date(app('general_setting')->dateFormat->format, strtotime($referral->created_at)) }}</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
|
|
@endsection
|
|
|
|
@push('scripts')
|
|
<script type="text/javascript">
|
|
(function($){
|
|
"use strict";
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
|
$('#dataListTable').DataTable({
|
|
processing: true,
|
|
serverSide: true,
|
|
stateSave: true,
|
|
"ajax": ( {
|
|
url: "new_url"
|
|
}),
|
|
"initComplete":function(json){
|
|
$('.niceSelect').niceSelect();
|
|
},
|
|
columns: [
|
|
{ data: 'DT_RowIndex', name: 'id' },
|
|
{ data: 'subject', name: 'subject' },
|
|
{ data: 'category', name: 'category.name' },
|
|
{ data: 'username', name: 'username' },
|
|
{ data: 'priority', name: 'priority.name' },
|
|
{ data: 'assign_user', name: 'assign_user' },
|
|
{ data: 'status', name: 'status.name' },
|
|
{ data: 'assign_aggent', name: 'assign_aggent' },
|
|
{ data: 'action', name: 'action' }
|
|
|
|
],
|
|
|
|
bLengthChange: false,
|
|
"bDestroy": true,
|
|
language: {
|
|
search: "<i class='ti-search'></i>",
|
|
searchPlaceholder: trans('common.quick_search'),
|
|
paginate: {
|
|
next: "<i class='ti-arrow-right'></i>",
|
|
previous: "<i class='ti-arrow-left'></i>"
|
|
}
|
|
},
|
|
dom: 'Bfrtip',
|
|
buttons: [{
|
|
extend: 'copyHtml5',
|
|
text: '<i class="fa fa-files-o"></i>',
|
|
title: $("#header_title").text(),
|
|
titleAttr: 'Copy',
|
|
exportOptions: {
|
|
columns: ':visible',
|
|
columns: ':not(:last-child)',
|
|
}
|
|
},
|
|
{
|
|
extend: 'excelHtml5',
|
|
text: '<i class="fa fa-file-excel-o"></i>',
|
|
titleAttr: 'Excel',
|
|
title: $("#header_title").text(),
|
|
margin: [10, 10, 10, 0],
|
|
exportOptions: {
|
|
columns: ':visible',
|
|
columns: ':not(:last-child)',
|
|
},
|
|
|
|
},
|
|
{
|
|
extend: 'csvHtml5',
|
|
text: '<i class="fa fa-file-text-o"></i>',
|
|
titleAttr: 'CSV',
|
|
exportOptions: {
|
|
columns: ':visible',
|
|
columns: ':not(:last-child)',
|
|
}
|
|
},
|
|
{
|
|
extend: 'pdfHtml5',
|
|
text: '<i class="fa fa-file-pdf-o"></i>',
|
|
title: $("#header_title").text(),
|
|
titleAttr: 'PDF',
|
|
exportOptions: {
|
|
columns: ':visible',
|
|
columns: ':not(:last-child)',
|
|
},
|
|
pageSize: 'A4',
|
|
margin: [0, 0, 0, 0],
|
|
alignment: 'center',
|
|
header: true,
|
|
|
|
},
|
|
{
|
|
extend: 'print',
|
|
text: '<i class="fa fa-print"></i>',
|
|
titleAttr: 'Print',
|
|
title: $("#header_title").text(),
|
|
exportOptions: {
|
|
columns: ':not(:last-child)',
|
|
}
|
|
},
|
|
{
|
|
extend: 'colvis',
|
|
text: '<i class="fa fa-columns"></i>',
|
|
postfixButtons: ['colvisRestore']
|
|
}
|
|
],
|
|
columnDefs: [{
|
|
visible: false
|
|
}],
|
|
responsive: true,
|
|
});
|
|
|
|
|
|
|
|
});
|
|
})(jQuery);
|
|
|
|
</script>
|
|
|
|
@endpush
|