@extends('layouts.main')





@section('content')

<section class="content-header">
    <h1>Show User</h1>
    <ol class="breadcrumb">
        <li><a href="/home"><i class="fa fa-dashboard"></i>Home</a></li>
        <li><a href="#">Management</a></li>
        <li><a href="/users">Users</a></li>
        <li class="active"><a href="#">create</a.</li>
    </ol>
</section>
<hr style="border: 3px groove #3c8dbc;">




<section  class="content" >
    <div class="row"> 
        <div class="col-md-6">
            <div class="box box-primary">
                <div class="box-body">
                    
                    <div class="form-group">
                        <label for="exampleInputEmail1">Name:</label>
                           <b><u> {{ $user->name }}</u></b>
                    </div>

                    <div class="form-group">
                        <label for="exampleInputEmail1">Email:</label>
                           <b><u> {{ $user->email }}</u></b>
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">Role:</label>
                            @if(!empty($user->getRoleNames()))
                                @foreach($user->getRoleNames() as $v)
                                    <strong><b><u>{{ $v }}</u></b></storng>
                                @endforeach
                            @endif
                    </div>

                    <div class="box-footer">
                        <a class="btn btn-primary" href="{{ route('users.index') }}"> Back</a>
                    </div>
            </div>
        </div>
    </div>
</section>




    
    

    


@endsection