@extends('layouts.config_dashboard.app')
@section('style')
@endsection
@section('content')
    <div class="container-fluid ">
        <div class="page-title-left ">
            <a href="{{ route('Dossier.show', $dossier->id) }}" class="mt-2 btn btn-outline-dark">Dossier</a>
        </div>
        <div class="row">
            <div class="col-12">
                <div class="page-title-box">
                    <h4 class="page-title">Detail Dossier :</h4>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="col-12">
                <div class="card">
                    <div class="card-body">
                        <div class="table-responsive">
                            <table class="table" id="myTable">
                                <thead>
                                    <tr>
                                        <th>Dossier Ref</th>
                                        <th>Actionneur</th>
                                        <th>Action</th>
                                        <th>Date Action</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    @forelse ($dossier->notification as $notification)
                                        <tr>
                                            <td>{{ $dossier->ref }}</td>
                                            <td> <span class="fs-5 badge bg-primary">{{ $notification->user->name }}</span>
                                            </td>
                                            <td>{{ $notification->body }}</td>
                                            <td>{{ $notification->created_at->format('Y:m:d') }}</td>

                                        </tr>
                                    @empty
                                        <h3>Tableau Vide</h3>
                                    @endforelse
                                </tbody>
                            </table>
                            $
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>
@endsection

