131 lines
8.6 KiB
PHP
131 lines
8.6 KiB
PHP
|
@inject('employeeRepository', 'Modules\Employee\Repositories\EmployeeRepository')
|
||
|
|
||
|
@extends('layouts.app')
|
||
|
|
||
|
@section('content')
|
||
|
<div class="page-content">
|
||
|
<div class="container-fluid">
|
||
|
|
||
|
<!-- start page title -->
|
||
|
@include('layouts.partials.breadcrumb', ['title' => $title])
|
||
|
<!-- end page title -->
|
||
|
|
||
|
<div class="card">
|
||
|
<div class="card-header align-items-center d-flex">
|
||
|
<h5 class="card-title flex-grow-1 mb-0">{{ $title }}</h5>
|
||
|
<div class="flex-shrink-0">
|
||
|
<a href="{{ route('interviewSchedule.create') }}" class="btn btn-success waves-effect waves-light"><i
|
||
|
class="ri-add-fill me-1 align-bottom"></i> Schedule</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="card-body">
|
||
|
<table id="buttons-datatables" class="display table-sm table-bordered table">
|
||
|
<thead class="table-light">
|
||
|
<tr>
|
||
|
<th class="tb-col"><span class="overline-title">S.N</span></th>
|
||
|
<th class="tb-col"><span class="overline-title">Designation</span></th>
|
||
|
<th class="tb-col"><span class="overline-title">Post</span></th>
|
||
|
<th class="tb-col"><span class="overline-title">Interviewer Choices</span></th>
|
||
|
<th class="tb-col"><span class="overline-title">Interviewer Approved</span></th>
|
||
|
<th class="tb-col"><span class="overline-title">Scheduled Date</span></th>
|
||
|
<th class="tb-col"><span class="overline-title">Scheduled Time</span></th>
|
||
|
<th class="tb-col"><span class="overline-title">Status</span></th>
|
||
|
<th class="tb-col" data-sortable="false"><span class="overline-title">Action</span>
|
||
|
</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
|
||
|
@foreach ($interviewScheduleLists as $index => $item)
|
||
|
<tr>
|
||
|
<td class="tb-col">{{ $index + 1 }}</td>
|
||
|
<td class="tb-col">{{ $item->jobPost?->designation?->name }}</td>
|
||
|
<td class="tb-col">{{ $item->jobPost?->title }}</td>
|
||
|
<td>
|
||
|
<div class="avatar-group flex-nowrap">
|
||
|
|
||
|
@isset($item->interviewer_choices)
|
||
|
@foreach ($item->interviewer_choices as $interviewId)
|
||
|
@php
|
||
|
$interviewer = $employeeRepository->getEmployeeById(
|
||
|
$interviewId,
|
||
|
);
|
||
|
@endphp
|
||
|
|
||
|
<div class="avatar-group-item">
|
||
|
<a href="javascript: void(0);" class="d-inline-block"
|
||
|
data-bs-toggle="tooltip" data-bs-trigger="hover"
|
||
|
data-bs-placement="top" aria-label="{{ $interviewer?->full_name }}"
|
||
|
data-bs-original-title="{{ $interviewer?->full_name }}">
|
||
|
<img src="{{ asset($interviewer?->profile_pic) }}" alt=""
|
||
|
class="rounded-circle avatar-xxs">
|
||
|
</a>
|
||
|
</div>
|
||
|
@endforeach
|
||
|
@endisset
|
||
|
</div>
|
||
|
</td>
|
||
|
<td class="tb-col">
|
||
|
<div class="avatar-group flex-nowrap">
|
||
|
@isset($item->interviewer_choices)
|
||
|
@foreach ($item->interviewer_choices as $interviewId)
|
||
|
@php
|
||
|
$interviewer = $employeeRepository->getEmployeeById(
|
||
|
$interviewId,
|
||
|
);
|
||
|
@endphp
|
||
|
|
||
|
<div class="avatar-group-item">
|
||
|
<a href="javascript: void(0);" class="d-inline-block"
|
||
|
data-bs-toggle="tooltip" data-bs-trigger="hover"
|
||
|
data-bs-placement="top" aria-label="{{ $interviewer?->full_name }}"
|
||
|
data-bs-original-title="{{ $interviewer?->full_name }}">
|
||
|
<img src="{{ asset($interviewer?->profile_pic) }}" alt=""
|
||
|
class="rounded-circle avatar-xxs">
|
||
|
</a>
|
||
|
</div>
|
||
|
@endforeach
|
||
|
@endisset
|
||
|
</div>
|
||
|
</td>
|
||
|
<td class="tb-col">{{ $item->scheduled_date }}</td>
|
||
|
<td class="tb-col">{{ $item->scheduled_time?->format('H:i A') }}</td>
|
||
|
<td class="tb-col">{!! $item->status_name !!}</td>
|
||
|
<td class="tb-col">
|
||
|
<div class="dropdown d-inline-block">
|
||
|
<button class="btn btn-soft-secondary btn-sm dropdown" type="button"
|
||
|
data-bs-toggle="dropdown" aria-expanded="false">
|
||
|
<i class="ri-more-fill align-middle"></i>
|
||
|
</button>
|
||
|
<ul class="dropdown-menu dropdown-menu-end">
|
||
|
<li><a href="{{ route('interviewSchedule.show', [$item->interview_schedule_id]) }}"
|
||
|
class="dropdown-item"><i
|
||
|
class="ri-eye-fill text-muted me-2 align-bottom"></i> View</a>
|
||
|
</li>
|
||
|
|
||
|
<li><a href="{{ route('interviewSchedule.edit', [$item->interview_schedule_id]) }}"
|
||
|
class="dropdown-item edit-item-btn"><i
|
||
|
class="ri-pencil-fill text-muted me-2 align-bottom"></i>
|
||
|
Edit</a>
|
||
|
</li>
|
||
|
<li>
|
||
|
<a href="{{ route('interviewSchedule.destroy', [$item->interview_schedule_id]) }}"
|
||
|
class="dropdown-item remove-item-btn"
|
||
|
onclick="confirmDelete(this.href)">
|
||
|
<i class="ri-delete-bin-fill text-muted me-2 align-bottom"></i>
|
||
|
Delete
|
||
|
</a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
@endforeach
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
@endsection
|