StocksNew/Modules/Recruit/resources/views/jobapplications/index.blade.php

78 lines
4.7 KiB
PHP
Raw Normal View History

2024-08-27 12:03:06 +00:00
@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('jobApplication.create') }}" class="btn btn-success waves-effect waves-light"><i
class="ri-add-fill me-1 align-bottom"></i> Create</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">Department</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">Name</span></th>
<th class="tb-col"><span class="overline-title">Working Experience</span></th>
<th class="tb-col"><span class="overline-title">Prev Company</span></th>
<th class="tb-col"><span class="overline-title">Apply Date</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 ($jobApplicationLists as $index => $item)
<tr>
<td class="tb-col">{{ $index + 1 }}</td>
<td class="tb-col">{{ $item->jobPost?->department?->name }}</td>
<td class="tb-col">{{ $item->jobPost?->designation?->name }}</td>
<td class="tb-col">{{ $item->jobPost?->title }}</td>
<td class="tb-col">{{ $item->name }}</td>
<td class="tb-col">{{ $item->prev_company }}</td>
<td class="tb-col">{{ $item->working_experience }}</td>
<td class="tb-col">{{ $item->apply_date->format('Y-m-d') }}</td>
<td class="tb-col">{!! $item->status_name !!}</td>
<td>
<div class="hstack flex-wrap gap-3">
<a href="javascript:void(0);" class="link-info fs-15 view-item-btn"
data-bs-toggle="modal" data-bs-target="#viewModal">
<i class="ri-eye-line"></i>
</a>
@can('jobApplication.edit')
<a href="{{ route('jobApplication.edit', $item->job_application_id) }}"
class="link-success fs-15 edit-item-btn"><i class="ri-edit-2-line"></i></a>
@endcan
@can('jobApplication.destroy')
<a href="javascript:void(0);"
data-link="{{ route('jobApplication.destroy', $item->job_application_id) }}"
data-id="{{ $item->job_application_id }}"
class="link-danger fs-15 remove-item-btn"><i
class="ri-delete-bin-line"></i></a>
@endcan
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
@endsection