@extends('layouts.dashboard') @php if (Request::is('tasks-all')) { $current_view = 'All Tasks'; } elseif (Request::is('tasks-incomplete')) { $current_view = 'Incomplete Tasks'; } elseif (Request::is('tasks-complete')) { $current_view = 'Completed Tasks'; } else { $current_view = 'No Tasks'; } @endphp @if (count($tasks) > 0) @php $task_view_title = $current_view; @endphp @else @php $task_view_title = $current_view . ' (None)'; @endphp @endif @section('template_title') {{ $current_view }} @endsection @section('template_fastload_css') @if (!count($tasks) > 0) .mdl-textfield.search-white, div.material-table table tr { display: none; } @endif @endsection @section('header') {{ $current_view }} @endsection @section('breadcrumbs')
  • {{ trans('titles.app') }} chevron_right
  • My Tasks chevron_right
  • {{ $current_view }}
  • @endsection @section('content')
    All Incomplete Complete
    @include('tasks/partials/task-tab', array('tab' => '', 'tasks' => $tasks, 'title' => $task_view_title, 'status' => 'is-active'))
    @if (count($tasks) > 0) @include('dialogs.dialog-delete', ['dialogTitle' => 'Confirm Task Deletion', 'dialogSaveBtnText' => 'Delete']) @endif @endsection @section('footer_scripts') @if (count($tasks) > 0) @include('scripts.mdl-datatables') @endif @endsection