@extends('backend.layouts_backend.master2')
@section('title')
All Project Task Categories
@endsection
@section('content')
{{-- header --}}
All Project Task Categories
@if (Auth::user()->can('project-task-category-create'))
Add Task Category
@endif
@if (Auth::user()->can('project-task-category-list'))
View Task Categories
@endif
{{-- end header --}}
{{-- alert add item --}}
@if (session('messagesave'))
{{--
{{ session('message')}}
--}}
{{ session('messagesave') }}
@endif
{{-- alert delete item --}}
@if (session('messagedelete'))
{{ session('messagedelete') }}
{{--
{{ session('messagedelete')}}
--}}
@endif
{{-- alert update item --}}
@if (session('messageupdate'))
{{ session('messageupdate') }}
@endif
#Id
Name
Status
Use Status
Created By
Updated By
Action
@foreach ($project_task_categories as $key => $project_task_category)
{{ $key + 1 ?? '' }}
{{ $project_task_category->project_task_category_name ?? '' }}
{!! get_status_message_badge($project_task_category->status) ?? '' !!}
@php
$projectTaskCategoryInUse = $project_task_category
->project_tasks()
->exists();
@endphp
@if ($projectTaskCategoryInUse)
In Use
@else
Not In Use
@endif
{{ $users_array[$project_task_category->created_by]['first_name'] ?? '' }}
{{ $users_array[$project_task_category->created_by]['last_name'] ?? '' }}
{{ $users_array[$project_task_category->updated_by]['first_name'] ?? '' }}
{{ $users_array[$project_task_category->updated_by]['last_name'] ?? '' }}
@if (Auth::user()->can('project-task-category-edit'))
@endif
@if (Auth::user()->can('project-task-category-delete'))
@if (!$projectTaskCategoryInUse)
@endif
@endif
@endforeach
@endsection