@extends('layouts.app') @section('title') {{ __('messages.tasks') }} @endsection @section('page_css') @endsection @section('css') @livewireStyles @endsection @section('content') @include('flash::message') {{ __('messages.tasks') }} {{__('messages.task.reset')}} × @if(getLoggedInUser()->can('manage_projects')) {{ __('messages.task.assign_to') }} @if (auth::user()->roles->pluck( 'name' )->contains( 'Admin' )) {{ Form::select('drp_users',$assignees, null, ['id'=>'filter_user', 'class'=>'form-control min-width-150', 'placeholder' => 'All']) }} @else {{ Form::select('drp_users',$assignees, Auth::id(), ['id'=>'filter_user', 'class'=>'form-control min-width-150', 'placeholder' => 'All']) }} @endif @endif {{ __('messages.task.project') }} {{Form::select('drp_project',$projects,null,['id'=>'project_filter', 'class'=>'form-control min-width-150', 'placeholder' => 'Select Project']) }} {{ __('messages.task.due_date') }} {{ Form::text('due_date_filter', null, ['id'=>'dueDateFilter', 'class' => 'form-control min-width-150', 'placeholder' => 'Enter Date', 'autocomplete'=>'off']) }} {{ __('messages.task.status') }} {{Form::select('drp_status',$status,'',['id'=>'filter_status', 'class'=>'form-control min-width-150', 'placeholder' => 'All']) }} {{ __('messages.common.page_size') }} {{ Form::select('per_page', $perPageOption, '10', ['id'=>'filter_per_page', 'class'=>'form-control perPage tasks-w-150']) }} {{ __('messages.common.sort_by') }} {{ Form::select('tasks_filter', $tasksFilterOptions, \App\Models\Task::CREATED_AT_DESC, ['id'=>'filter_task', 'class'=>'form-control tasksFilter tasks-w-150 mr-3', 'placeholder' => 'All']) }} {{ __('messages.common.action') }} @if(auth::user()->roles[0]->id!=3) {{ __('messages.task.new_task') }} @endif {{ __('messages.task.add_time_entry') }} {{ __('messages.time_entry.copy_today_activity') }} @livewire('tasks', ['userId' => $userId, 'projects' => $projects, 'tags' => $tags]) @include('tasks.modal') @include('tasks.edit_modal') @include('tasks.edit_assignee_modal') @include('tasks.task_details') @include('time_entries.modal') @include('time_entries.edit_modal') @endsection @section('page_js') @endsection @section('scripts') @livewireScripts @if(auth::user()->roles[0]->id==3) @endif @endsection