@extends('layouts.app')

@section('content')
<div class="page-header"><h2> {{ $pageTitle }} <small> {{ $pageNote }} </small></h2></div>

<div class="toolbar-nav">
	<div class="row">
		<div class="col-md-6 ">
			@if($access['is_add'] ==1)
	   		<a href="{{ url('sinistersat/'.$id.'/edit?return='.$return) }}" class="tips btn btn-sm  " title="{{ __('core.btn_edit') }}"><i class="fa  fa-pencil"></i></a>
			@endif
			<a href="{{ url('sinistersat?return='.$return) }}" class="tips btn btn-sm  " title="{{ __('core.btn_back') }}"><i class="fa  fa-times"></i></a>		
		</div>
		<div class="col-md-6 text-right">			
	   		<a href="{{ ($prevnext['prev'] != '' ? url('sinistersat/'.$prevnext['prev'].'?return='.$return ) : '#') }}" class="tips btn btn-sm"><i class="fa fa-arrow-left"></i>  </a>	
			<a href="{{ ($prevnext['next'] != '' ? url('sinistersat/'.$prevnext['next'].'?return='.$return ) : '#') }}" class="tips btn btn-sm "> <i class="fa fa-arrow-right"></i>  </a>					
		</div>	

		
		
	</div>
</div>
<div class="p-5">		

	<div class="table-responsive">
		<table class="table table-striped table-bordered " >
			<tbody>	
		
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Account Id', (isset($fields['account_id']['language'])? $fields['account_id']['language'] : array())) }}</td>
						<td>{{ SiteHelpers::formatLookUp($row->account_id,'account_id','1:sc_accounts:id:name') }} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Finassure Id', (isset($fields['finassure_id']['language'])? $fields['finassure_id']['language'] : array())) }}</td>
						<td>{{ $row->finassure_id}} </td>
						
					</tr>
				
			<?php 
			$limited = isset($fields['cie_id']['limited']) ? $fields['cie_id']['limited'] :'';
			if(SiteHelpers::filterColumn($limited )) { ?>
						
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Cie Id', (isset($fields['cie_id']['language'])? $fields['cie_id']['language'] : array())) }}</td>
						<td>{{ $row->cie_id}} </td>
						
					</tr>
				
			<?php } ?>
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Police', (isset($fields['police']['language'])? $fields['police']['language'] : array())) }}</td>
						<td>{{ $row->police}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Sinister Date', (isset($fields['sinister_date']['language'])? $fields['sinister_date']['language'] : array())) }}</td>
						<td>{{ $row->sinister_date}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Victim', (isset($fields['victim']['language'])? $fields['victim']['language'] : array())) }}</td>
						<td>{{ $row->victim}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Advanced Amount', (isset($fields['advanced_amount']['language'])? $fields['advanced_amount']['language'] : array())) }}</td>
						<td>{{ $row->advanced_amount}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Ipp Rate', (isset($fields['ipp_rate']['language'])? $fields['ipp_rate']['language'] : array())) }}</td>
						<td>{{ $row->ipp_rate}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Num Days', (isset($fields['num_days']['language'])? $fields['num_days']['language'] : array())) }}</td>
						<td>{{ $row->num_days}} </td>
						
					</tr>
				
			<?php 
			$limited = isset($fields['note']['limited']) ? $fields['note']['limited'] :'';
			if(SiteHelpers::filterColumn($limited )) { ?>
						
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Note', (isset($fields['note']['language'])? $fields['note']['language'] : array())) }}</td>
						<td>{{ $row->note}} </td>
						
					</tr>
				
			<?php } ?>
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Comment', (isset($fields['comment']['language'])? $fields['comment']['language'] : array())) }}</td>
						<td>{{ $row->comment}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Affectation', (isset($fields['affectation']['language'])? $fields['affectation']['language'] : array())) }}</td>
						<td>{{ $row->affectation}} </td>
						
					</tr>
				
			<?php 
			$limited = isset($fields['responsible_name']['limited']) ? $fields['responsible_name']['limited'] :'';
			if(SiteHelpers::filterColumn($limited )) { ?>
						
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Responsible Name', (isset($fields['responsible_name']['language'])? $fields['responsible_name']['language'] : array())) }}</td>
						<td>{{ $row->responsible_name}} </td>
						
					</tr>
				
			<?php } ?>
			<?php 
			$limited = isset($fields['responsible_phone']['limited']) ? $fields['responsible_phone']['limited'] :'';
			if(SiteHelpers::filterColumn($limited )) { ?>
						
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Responsible Phone', (isset($fields['responsible_phone']['language'])? $fields['responsible_phone']['language'] : array())) }}</td>
						<td>{{ $row->responsible_phone}} </td>
						
					</tr>
				
			<?php } ?>
			<?php 
			$limited = isset($fields['responsible_email']['limited']) ? $fields['responsible_email']['limited'] :'';
			if(SiteHelpers::filterColumn($limited )) { ?>
						
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Responsible Email', (isset($fields['responsible_email']['language'])? $fields['responsible_email']['language'] : array())) }}</td>
						<td>{{ $row->responsible_email}} </td>
						
					</tr>
				
			<?php } ?>
			</tbody>	
		</table>   

	 	

	</div>

</div>
@stop
