74 lines
2.9 KiB
PHP
74 lines
2.9 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('content')
|
|
<div class="page-content">
|
|
<div class="container-fluid">
|
|
@include('layouts.partials.breadcrumb', ['title' => $title])
|
|
|
|
|
|
<div class="mb-2 text-end">
|
|
<a href="{{ route('task.create') }}" class="btn btn-success btn-md waves-effect waves-light"><i
|
|
class="ri-add-fill me-1 align-bottom"></i> Add</a>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<div class="table-responsive">
|
|
<table id="buttons-datatables" class="display table-sm table-bordered table" style="width:100%">
|
|
<thead>
|
|
<tr>
|
|
<th>S.N</th>
|
|
<th>Title</th>
|
|
<th>Category</th>
|
|
<th>Project</th>
|
|
<th>Start Date</th>
|
|
<th>Deadline</th>
|
|
<th>Assigned</th>
|
|
<th>Priority</th>
|
|
<th>Status</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@forelse ($tasks as $key => $task)
|
|
<tr>
|
|
<td>{{ $key + 1 }}</td>
|
|
<td>{{ $task->title }}</td>
|
|
<td>{{ $task->task_category_id }}</td>
|
|
<td>{{ optional($task->project)->project_name }}</td>
|
|
<td>{{ $task->start_date }}</td>
|
|
<td class="text-danger">{{ $task->due_date }}</td>
|
|
<td>{{ optional($task->assigned)->full_name }}</td>
|
|
<td>{!! $task->priority_status !!}</td>
|
|
<td>{!! $task->status_name !!}</td>
|
|
<td>
|
|
<div class="hstack flex-wrap gap-3">
|
|
<a href="{{ route('task.show', $task->id) }}" class="link-info fs-15">
|
|
<i class="ri-eye-line"></i>
|
|
</a>
|
|
<a href="{{ route('task.edit', $task->id) }}" class="link-success fs-15 edit-item-btn"><i
|
|
class="ri-edit-2-line"></i></a>
|
|
|
|
<a href="javascript:void(0);" data-link="{{ route('task.destroy', $task->id) }}"
|
|
data-id="{{ $task->id }}" class="link-danger fs-15 remove-item-btn"><i
|
|
class="ri-delete-bin-line"></i></a>
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
@empty
|
|
@endforelse
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--end row-->
|
|
</div>
|
|
</div>
|
|
@endsection
|