@extends('backend.layouts.app')
@section('content')
<div class="row page-titles">
   <div class="col-md-5 align-self-center">
      <h4 class="text-themecolor">View Service Provider </h4>
   </div>
   <div class="col-md-7 align-self-center text-right">
      <div class="d-flex justify-content-end align-items-center">
         <ol class="breadcrumb">
         <li class="breadcrumb-item"><a href="{{ route('dashboard')}}">Dashboard</a></li>
         <li class="breadcrumb-item "><a href="{{ route('serviceProvider')}}">Service Provider </a></li>


            <li class="breadcrumb-item active">View Service Provider</li>
         </ol>
         @can('ServiceProvider-edit')
         <a href="{{ route('serviceProvider.edit',['id' => $user->id] + request()->query()) }}"> <button type="button" class="btn btn-info d-none d-lg-block m-l-15"><i class="fa fa-edit"></i> Edit</button></a>
         @endcan
      </div>
   </div>
</div>

<div class="container-fluid">

    <div class="content-wrapper">


        <section class="content">

                <div class="row">
                    <div class="col-12">
                        <div class="card">

                            <!-- /.card-header -->
                            <div class="card-body">
                                <table id="user" class="table table-bordered table-striped">
                                <div class="card-title" style="width:100%;display: inline-block;">
                                   <span class="caption-subject font-green bold uppercase">View Service Provider</span>
                                   <a href="{{ route('serviceProvider') }}">
                                        <button type="button" class="btn btn-primary btn-sm float-right">
                                            <i class="fa fa-arrow-left"></i> Back
                                        </button>
                                    </a>


                                </div>
                                    <tbody>
                                        <tr>
                                          <th style="width:230px">First Name</th>
                                            <td>{{ $user->first_name ?? '-' }}</td>
                                        </tr>
                                        <tr>
                                          <th style="width:230px">Last Name</th>
                                            <td>{{ $user->last_name ?? '-' }}</td>
                                        </tr>
                                        <tr>
                                            <th>Email</th>
                                            <td>{{ $user->email ?? '-' }}</td>
                                        </tr>
                                        <tr>
                                            <th>Mobile Number</th>
                                            <td>{{ $user->mobile ?? '-'  }}</td>
                                        </tr>
                                        <tr>
                                            <th>Date of Birth</th>
                                            <td>{{ $user->userInformations->dob ?? '-' }}</td>
                                        </tr>
                                        <tr>
                                            <th>Address</th>
                                            <td>{{ $user->userInformations->address ?? '-' }}</td>
                                        </tr>
                                        <tr>
                                            <th>City</th>
                                            <td>{{ $user->userInformations->city->name ?? '-' }}</td>
                                        </tr>
                                        <tr>
                                            <th>State</th>
                                            <td>{{ $user->userInformations->state->name ?? '-' }}</td>
                                        </tr>
                                        <tr>
                                            <th>Country</th>
                                            <td>{{ $user->userInformations->country->name ?? '-' }}</td>
                                        </tr>
                                        <tr>
                                            <th>Created At</th>
                                            <td>{{ $user->created_at->format(config('GET.admin_date_time_format')) ?? '-'  }}</td>
                                        </tr>
                                        <tr>
                                            <th>Updated At</th>
                                            <td>{{ $user->updated_at->format(config('GET.admin_date_time_format')) ?? '-' }}</td>
                                        </tr>
                                        <tr>
                                            <th>Status</th>
                                            <td>
                                                @if ($user->status == 1)
                                                    <span class="label label-success label-rounded" style="color: white;">Active</span>
                                                @else
                                                    <span class="label label-danger label-rounded">Inactive</span>
                                                @endif
                                            </td>
                                        </tr>
                                     </div>
                                   </div>
                                </div>
                            </tbody>
                         </table>
                       </div>
                    </div>
                 </div>
               </div>
            </div>
       </section>
     </div>


@stop
