@extends('layouts.app')

@section('content')
    <section class="page-header row">
        <h2> {{ $pageTitle }} <small> {{ $pageNote }} </small></h2>
        <ol class="breadcrumb">
            <li><a href="{{ url('') }}"> Dashboard </a></li>
            <li><a href="{{ url('/manage/'.$pageModule) }}"> {{ $pageTitle }} </a></li>
            <li class="active"> View</li>
        </ol>
    </section>
    <div class="page-content row">
        <div class="page-content-wrapper no-margin">

            <div class="sbox">
                <div class="sbox-title clearfix">
                    <div class="sbox-tools pull-left">
                        <a href="{{ ($prevnext['prev'] != '' ? url('/manage/tophomeslide/'.$prevnext['prev'].'?return='.$return ) : '#') }}"
                           class="tips btn btn-sm"><i class="fa fa-arrow-left"></i> </a>
                        <a href="{{ ($prevnext['next'] != '' ? url('/manage/tophomeslide/'.$prevnext['next'].'?return='.$return ) : '#') }}"
                           class="tips btn btn-sm "> <i class="fa fa-arrow-right"></i> </a>
                    </div>

                    <div class="sbox-tools">
                        @if($access['is_add'] ==1)
                            <a href="{{ url('/manage/tophomeslide/'.$id.'/edit?return='.$return) }}"
                               class="tips btn btn-sm  " title="{{ __('core.btn_edit') }}"><i class="fa  fa-pencil"></i></a>
                        @endif
                        <a href="{{ url('/manage/tophomeslide?return='.$return) }}" class="tips btn btn-sm  "
                           title="{{ __('core.btn_back') }}"><i class="fa  fa-times"></i></a>
                    </div>
                </div>
                <div class="sbox-content">
                    <div class="table-responsive">
                        <table class="table table-striped ">
                            <tbody>

                            <tr>
                                <td width='30%'
                                    class='label-view text-right'>{{ SiteHelpers::activeLang('Id', (isset($fields['id']['language'])? $fields['id']['language'] : array())) }}</td>
                                <td>{{ $row['id']}} </td>

                            </tr>
							<tr>
								<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Region Code', (isset($fields['region_code']['language'])? $fields['region_code']['language'] : array())) }}</td>
								<td>{{ $row['region_code']}} </td>

							</tr>

                            <tr>
                                <td width='30%'
                                    class='label-view text-right'>{{ SiteHelpers::activeLang('Description', (isset($fields['description']['language'])? $fields['description']['language'] : array())) }}</td>
                                <td>{{ $row['description']}} </td>

                            </tr>
							<tr>
								<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Created At', (isset($fields['created_at']['language'])? $fields['created_at']['language'] : array())) }}</td>
								<td>{{ $row['created_at']}} </td>

							</tr>

							<tr>
								<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Updated At', (isset($fields['updated_at']['language'])? $fields['updated_at']['language'] : array())) }}</td>
								<td>{{ $row['updated_at']}} </td>

							</tr>


                            <tr>
                                <td width='30%'
                                    class='label-view text-right'>{{ SiteHelpers::activeLang('Status', (isset($fields['status']['language'])? $fields['status']['language'] : array())) }}</td>
                                <td>{{ $row['status']}} </td>

                            </tr>

							<tr>
								<td width='30%'
									class='label-view text-right'>{{ SiteHelpers::activeLang('Image En', (isset($fields['image_en']['language'])? $fields['image_en']['language'] : array())) }}</td>
								<td>
									<div class='second_image_arPreview'>
										<div class='img-preview'>{!! SiteHelpers::showUploadedFile( (isset($row['image_en']))?$row['image_en']:null,'/uploads/images/top_home_slide',120,'img-thumbnail') !!}</div>
									</div>
								</td>

							</tr>
							<tr>
								<td width='30%'
									class='label-view text-right'>{{ SiteHelpers::activeLang('Image Ar', (isset($fields['image_ar']['language'])? $fields['image_ar']['language'] : array())) }}</td>
								<td>
									<div class='second_image_arPreview'>
										<div class='img-preview'>{!! SiteHelpers::showUploadedFile( (isset($row['image_ar']))?$row['image_ar']:null,'/uploads/images/top_home_slide',120,'img-thumbnail') !!}</div>
									</div>
								</td>

							</tr>
							<tr>
								<td width='30%'
									class='label-view text-right'>{{ SiteHelpers::activeLang('Image En', (isset($fields['image_web_en']['language'])? $fields['image_web_en']['language'] : array())) }}</td>
								<td>
									<div class='second_image_arPreview'>
										<div class='img-preview'>{!! SiteHelpers::showUploadedFile( (isset($row['image_web_en']))?$row['image_web_en']:null,'/uploads/images/top_home_slide',250,'img-thumbnail') !!}</div>
									</div>
								</td>

							</tr>
							<tr>
								<td width='30%'
									class='label-view text-right'>{{ SiteHelpers::activeLang('Image Ar', (isset($fields['image_web_ar']['language'])? $fields['image_web_ar']['language'] : array())) }}</td>
								<td>
									<div class='second_image_arPreview'>
										<div class='img-preview'>{!! SiteHelpers::showUploadedFile( (isset($row['image_web_ar']))?$row['image_web_ar']:null,'/uploads/images/top_home_slide',250,'img-thumbnail') !!}</div>
									</div>
								</td>

							</tr>
                            </tbody>
                        </table>


                    </div>
                </div>
            </div>
        </div>
    </div>
@stop
