@extends('layouts.base')

@section('under-header')

<div class="page-wrapper">
    <!-- ============================================================== -->
    <!-- Bread crumb and right sidebar toggle -->
    <!-- ============================================================== -->
    <div class="page-breadcrumb border-bottom">
        <div class="row">
            <div class="col-lg-3 col-md-4 col-xs-12 align-self-center">
                <h5 class="font-medium text-uppercase mb-0">Equipe-name</h5>
            </div>
            <div class="col-lg-9 col-md-8 col-xs-12 align-self-center">
                <!--button class="btn btn-danger text-white float-right ml-3 d-none d-md-block">Buy Ample Admin</button-->
                <nav aria-label="breadcrumb" class="mt-2 float-md-right float-left">
                    <ol class="breadcrumb mb-0 justify-content-end p-0">
                        <li class="breadcrumb-item"><a href="#">Home</a></li>
                        <li class="breadcrumb-item active" aria-current="page">{{$project->name}}</li>
                    </ol>
                </nav>
            </div>
        </div>
    </div>
    <!-- ============================================================== -->
    <!-- End Container fluid  -->
    <!-- ============================================================== -->
    <!-- ============================================================== -->
    <!-- footer -->
    <!-- ============================================================== -->
@endsection

@section('content')
<div class="page-content container-fluid">
    <div class="row">
        <div class="col-sm-12">
            <div class="card">
                <div class="card-body">
                    <h4 class="card-title">Tâches</h4>
                    <div id="todo-lists-basic-demo"></div>
                </div>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-sm-12">
            <div class="card">
                <div class="card-body">
                    <h3 class="card-title" style="text-align:center;text-transform:uppercase;">Activités</h3>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-12">
            <a style="margin-bottom: 15px" class="btn btn-info float-right" href="{{route('list-activites-user', ['id'=>$project->id])}}">Voir les activités</a>
        </div>
    </div>
    <div class="row">
        @foreach($activities as $activity)
        <div class="col-md-4 single-note-item all-category">
            <div class="card card-body">
                <span class="side-stick"></span>
            <h5 class="note-title text-truncate w-75 mb-0" data-noteHeading="Book a Ticket for Movie">{{$activity->name}} <i class="point fas fa-circle ml-1 font-10"></i></h5>
                <p class="note-date font-12 text-muted">Ajouté le {{$activity->created_at->format('Y-m-d')}}</p>
                <div class="note-content">
                            <p class="note-inner-content text-muted" data-noteContent="Blandit tempus porttitor aasfs. Integer posuere erat a ante venenatis.">Description.</p>
                    </div>
                    <div class="d-flex align-items-center">
                        <!--span class="mr-1"><i class="far fa-star favourite-note"></i></span>
                        <span class="mr-1"><i class="far fa-trash-alt remove-note"></i></span-->
                        <div class="ml-auto">
                            <div class="category-selector btn-group">
                                        <!--a class="nav-link dropdown-toggle category-dropdown label-group p-0" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="true">
                                            <div class="category">
                                                <div class="category-business"></div>
                                                <div class="category-social"></div>
                                                <div class="category-important"></div>
                                                <span class="more-options text-dark"><i class="icon-options-vertical"></i></span>
                                            </div>
                                        </a>
                                        <!--div class="dropdown-menu dropdown-menu-right category-menu">
                                            <a class="note-business badge-group-item badge-business dropdown-item position-relative category-business text-success" href="javascript:void(0);"><i class="mdi mdi-checkbox-blank-circle-outline mr-1"></i>Terminées</a>
                                            <a class="note-social badge-group-item badge-social dropdown-item position-relative category-social text-info" href="javascript:void(0);"><i class="mdi mdi-checkbox-blank-circle-outline mr-1"></i> En cours</a>
                                            <a class="note-important badge-group-item badge-important dropdown-item position-relative category-important text-danger" href="javascript:void(0);"><i class="mdi mdi-checkbox-blank-circle-outline mr-1"></i> Important</a>
                                        </div-->
                            </div>
                        </div>
                    </div>
            </div>
        </div>
        @endforeach

    </div>
</div>
<!-- ============================================================== -->
<!-- End Container fluid  -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- footer -->
<!-- ============================================================== -->

@endsection
