@extends('layouts.landing')

@section('title',"show")

@section('content')

<div class="container-fluid">
    <div class="card shadow mb-4">
        <div class="card-header py-3">
            <div class="d-sm-flex align-items-center justify-content-between">
                <h6 class="m-0 font-weight-bold text-primary">Datos usuario</h6>
                <a href="{{route('user.index')}}" class="d-sm-inline-block btn btn-sm btn-primary shadow-sm"><i class="fas fa-download fa-sm text-white-50"></i> Regresar</a>
            </div>
        </div>

        <div class="card-body">
            <h1>{{$user->name}}</h1>
            <p>{{$user->email}}</p>

            {{-- <p>Nota: {{$user->note->title}}</p>
            <p>Descripción: {{$user->note->description}}</p> --}}

            @forelse ($user->notes as $note)
            <p>Nota: {{$note->title}}</p>
            <p>Descripción: {{$note->description}}</p>
            <br>
            @empty

            @endforelse
        </div>


    </div>
</div>

@endsection
