119 lines
6.0 KiB
PHP
119 lines
6.0 KiB
PHP
|
@extends('layouts.app')
|
||
|
@inject('employeeRepository', 'Modules\Employee\Repositories\EmployeeRepository')
|
||
|
@push('css')
|
||
|
<link rel="stylesheet" type="text/css" href="{{ asset('assets/libs/dragula/dragula.min.css') }}" />
|
||
|
@endpush
|
||
|
@section('content')
|
||
|
<div class="page-content">
|
||
|
<div class="container-fluid">
|
||
|
@include('layouts.partials.breadcrumb', ['title' => $title])
|
||
|
|
||
|
@include('pms::task.partials.menu')
|
||
|
|
||
|
<div class="row">
|
||
|
<div class="col-lg-12">
|
||
|
<div class="tasks-board mb-3" id="kanbanboard">
|
||
|
@foreach ($statusList as $statuskey => $statusItem)
|
||
|
<div class="tasks-list" data-status-key="{{ $statuskey }}">
|
||
|
<div class="d-flex mb-3">
|
||
|
<div class="flex-grow-1">
|
||
|
<h6 class="fs-14 text-uppercase fw-semibold mb-0">{{ $statusItem }} <small
|
||
|
class="badge bg-info totaltask-badge ms-1 align-bottom">{{ array_key_exists($statuskey, $tasks->toArray()) ? count($tasks[$statuskey]) : 0 }}</small>
|
||
|
</h6>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
<div data-simplebar class="tasks-wrapper mx-n3 px-3">
|
||
|
<div id="{{ strtolower(str_replace(' ', '-', $statusItem)) }}-task" class="tasks">
|
||
|
@if (array_key_exists($statuskey, $tasks->toArray()))
|
||
|
@foreach ($tasks[$statuskey] as $task)
|
||
|
<div class="card tasks-box" data-id="{{ $task->id }}">
|
||
|
<div class="card-body">
|
||
|
<div class="d-flex mb-2">
|
||
|
<div class="flex-grow-1">
|
||
|
<h6 class="fs-15 text-truncate task-title mb-0"><a
|
||
|
href="{{ route('task.show', $task->id) }}" class="d-block">{{ $task->title }}</a>
|
||
|
</h6>
|
||
|
</div>
|
||
|
<div class="flex-shrink-0">
|
||
|
<a href="javascript:void(0);" class="text-muted" id="dropdownMenuLink12"
|
||
|
data-bs-toggle="dropdown" aria-expanded="false"><i class="ri-more-fill"></i></a>
|
||
|
<ul class="dropdown-menu" aria-labelledby="dropdownMenuLink12">
|
||
|
<li><a class="dropdown-item" href="{{ route('task.show', $task->id) }}"><i
|
||
|
class="ri-eye-fill text-muted me-2 align-bottom"></i> View</a></li>
|
||
|
<li><a class="dropdown-item" href="{{ route('task.edit', $task->id) }}"><i
|
||
|
class="ri-edit-2-line text-muted me-2 align-bottom"></i> Edit</a></li>
|
||
|
<li><a class="dropdown-item" data-bs-toggle="modal" href="#deleteRecordModal"><i
|
||
|
class="ri-delete-bin-5-line text-muted me-2 align-bottom"></i> Delete</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
<p class="text-muted">{{ $task->desc }}</p>
|
||
|
<div class="d-flex align-items-center">
|
||
|
<div class="flex-grow-1">
|
||
|
<span class="badge text-bg-light">{{ $task->taskCategory() }}</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="flex-shrink-0">
|
||
|
<div class="avatar-group">
|
||
|
@isset($task->assigned_id)
|
||
|
@foreach ($task->assigned_id as $assignedId)
|
||
|
<a href="javascript: void(0);" class="avatar-group-item" data-bs-toggle="tooltip"
|
||
|
data-bs-trigger="hover" data-bs-placement="top"
|
||
|
title="{{ optional($employeeRepository->getEmployeeById($assignedId))->full_name }}">
|
||
|
<img
|
||
|
src="{{ asset(optional($employeeRepository->getEmployeeById($assignedId))->profile_pic) }}"
|
||
|
alt="" class="rounded-circle avatar-xxs">
|
||
|
</a>
|
||
|
@endforeach
|
||
|
@endisset
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!--end card-body-->
|
||
|
<div class="card-footer border-top-dashed">
|
||
|
<div class="d-flex">
|
||
|
<div class="flex-grow-1">
|
||
|
<span class="text-muted text-info"><i class="ri-time-line align-bottom"></i>
|
||
|
{{ date('d M, Y', strtotime($task->start_date)) }}</span>
|
||
|
</div>
|
||
|
<div class="flex-shrink-0">
|
||
|
{!! $task->priority_status !!}
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="progress progress-sm">
|
||
|
<div class="progress-bar bg-{{ $task->status_name['color'] }}" role="progressbar"
|
||
|
style="width: 100%" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
@endforeach
|
||
|
@endif
|
||
|
|
||
|
|
||
|
<!--end card-->
|
||
|
</div>
|
||
|
<!--end tasks-->
|
||
|
</div>
|
||
|
</div>
|
||
|
@endforeach
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<!--end row-->
|
||
|
</div>
|
||
|
</div>
|
||
|
@endsection
|
||
|
|
||
|
@push('js')
|
||
|
<script src="{{ asset('assets/libs/dragula/dragula.min.js') }}"></script>
|
||
|
<script src="{{ asset('assets/libs/dom-autoscroller/dom-autoscroller.min.js') }}"></script>
|
||
|
<script src="{{ asset('assets/js/pages/tasks-kanban.init.js') }}"></script>
|
||
|
@endpush
|