@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/affiliatenetwork/'.$prevnext['prev'].'?return='.$return ) : '#') }}" class="tips btn btn-sm"><i class="fa fa-arrow-left"></i>  </a>	
				<a href="{{ ($prevnext['next'] != '' ? url('/manage/affiliatenetwork/'.$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/affiliatenetwork/'.$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/affiliatenetwork?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('Affiliate Network Name', (isset($fields['name']['language'])? $fields['name']['language'] : array())) }}</td>
						<td>{{ $row['name']}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Controller', (isset($fields['controller']['language'])? $fields['controller']['language'] : array())) }}</td>
						<td>{{ $row['controller']}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Affiliate ID', (isset($fields['affiliate_id']['language'])? $fields['affiliate_id']['language'] : array())) }}</td>
						<td>{{ $row['affiliate_id']}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Campaign Statuses', (isset($fields['campaign_statuses']['language'])? $fields['campaign_statuses']['language'] : array())) }}</td>
						<td>{{ $row['campaign_statuses']}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Sale Statuses', (isset($fields['sale_statuses']['language'])? $fields['sale_statuses']['language'] : array())) }}</td>
						<td>{{ $row['sale_statuses']}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Confirm Days', (isset($fields['confirm_days']['language'])? $fields['confirm_days']['language'] : array())) }}</td>
						<td>{{ $row['confirm_days']}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Website Id', (isset($fields['website_id']['language'])? $fields['website_id']['language'] : array())) }}</td>
						<td>{{ $row['website_id']}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('API Key', (isset($fields['api_key']['language'])? $fields['api_key']['language'] : array())) }}</td>
						<td>{{ $row['api_key']}} </td>
						
					</tr>

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

					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Private Key', (isset($fields['private_key']['language'])? $fields['private_key']['language'] : array())) }}</td>
						<td>{{ $row['private_key']}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Short Name', (isset($fields['short_name']['language'])? $fields['short_name']['language'] : array())) }}</td>
						<td>{{ $row['short_name']}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Enabled', (isset($fields['enabled']['language'])? $fields['enabled']['language'] : array())) }}</td>
						<td>{{ $row['enabled']}} </td>
						
					</tr>
				
					</tbody>	
				</table>   

			 	

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