@extends('Admin.master_page')



@section('title') <h5 class="m-0 font-weight-bold text-primary" style="float: left;">Domain Sales</h5> 

<a href="{{ route('DomainSale.index') }}" style="float: right;"><i class="fas fa-chevron-circle-left"></i></a>
@endsection

@section('content')

@if(Session::has('success_message'))
<div class="alert alert-success">{{ Session::get('success_message') }}</div>
@endif

<div class="table-responsive"> 

 	<br>
 	<table class="table">

 	  <tr>
 	    <th>Domain Name</th><td>{{ $domain->name }}</td>
 	  </tr>

     <tr>
      <th>Status</th>
      <td>
        @if($domain->status == 1)
        Available
        @else
        SOLD
        @endif
      </td>
    </tr>
      
      <tr>
        <th>Price</th><td>{{ $domain->price }} $</td>
      </tr> 

      <tr>
        <th>Registrar Name</th><td>{{ $domain->registrar }}</td>
      </tr>

      <tr>
        <th>Registrar Date</th><td>{{ $domain->registrar_date }}</td>
      </tr>
      
      <tr>
        <th>URL:</th><td>{{ $domain->url }}</td>
      </tr>

      <tr>
        <th>Old of Domain</th><td>{{ Carbon\Carbon::parse($domain->registrar_date)->age }}</td>
      </tr>


 	</table> 
 	  <br>
 	  <br>
 	  <br>

       <table class="table">
           <tr>
               <th>Short Description</th>
           </tr>
           <tr>
               <td>
                   {!! html_entity_decode($domain->short_description) !!}
               </td>
           </tr>
       </table>

       <br>
 

       <table class="table">
           <tr>
               <th>Full Description</th>
           </tr>
           <tr>
               <td>
                   {!! html_entity_decode($domain->full_description) !!}
               </td>
           </tr>
       </table>

</div> 



@endsection