@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('actsinisters/'.$id.'/edit?return='.$return) }}" class="tips btn btn-sm  " title="{{ __('core.btn_edit') }}"><i class="fa  fa-pencil"></i></a>
			@endif
			<a href="{{ url('actsinisters?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('actsinisters/'.$prevnext['prev'].'?return='.$return ) : '#') }}" class="tips btn btn-sm"><i class="fa fa-arrow-left"></i>  </a>	
			<a href="{{ ($prevnext['next'] != '' ? url('actsinisters/'.$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('Compte', (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('Sinistre', (isset($fields['sinister_id']['language'])? $fields['sinister_id']['language'] : array())) }}</td>
						<td>{{ $row->sinister_id}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Cie', (isset($fields['cie']['language'])? $fields['cie']['language'] : array())) }}</td>
						<td>{{ $row->cie}} </td>
						
					</tr>
				
					<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('Assuré', (isset($fields['insured']['language'])? $fields['insured']['language'] : array())) }}</td>
						<td>{{ $row->insured}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Date sinistre', (isset($fields['sinister_date']['language'])? $fields['sinister_date']['language'] : array())) }}</td>
						<td>{{ date('d/m/Y',strtotime($row->sinister_date)) }} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Date déclaration', (isset($fields['declaration_date']['language'])? $fields['declaration_date']['language'] : array())) }}</td>
						<td>{{ date('d/m/Y',strtotime($row->declaration_date)) }} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Vicitime', (isset($fields['vicitim']['language'])? $fields['vicitim']['language'] : array())) }}</td>
						<td>{{ $row->vicitim}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Date naissance', (isset($fields['birthday']['language'])? $fields['birthday']['language'] : array())) }}</td>
						<td>{{ date('d/m/Y',strtotime($row->birthday)) }} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Age', (isset($fields['age']['language'])? $fields['age']['language'] : array())) }}</td>
						<td>{{ $row->age}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Lieu', (isset($fields['place']['language'])? $fields['place']['language'] : array())) }}</td>
						<td>{{ $row->place}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Circonstances', (isset($fields['circumstances']['language'])? $fields['circumstances']['language'] : array())) }}</td>
						<td>{{ $row->circumstances}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Nature lesion', (isset($fields['lesion_nature']['language'])? $fields['lesion_nature']['language'] : array())) }}</td>
						<td>{{ $row->lesion_nature}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Salaire', (isset($fields['periodic_salary']['language'])? $fields['periodic_salary']['language'] : array())) }}</td>
						<td>{{ $row->periodic_salary}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Salaire journalier', (isset($fields['daily_salary']['language'])? $fields['daily_salary']['language'] : array())) }}</td>
						<td>{{ $row->daily_salary}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Frais médicaux', (isset($fields['medical_fees']['language'])? $fields['medical_fees']['language'] : array())) }}</td>
						<td>{{ $row->medical_fees}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Jours arrêt de travail', (isset($fields['days']['language'])? $fields['days']['language'] : array())) }}</td>
						<td>{{ $row->days}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Indémnités journalières', (isset($fields['daily_allowances']['language'])? $fields['daily_allowances']['language'] : array())) }}</td>
						<td>{{ $row->daily_allowances}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Montant Reg Client', (isset($fields['payment_customer_amont']['language'])? $fields['payment_customer_amont']['language'] : array())) }}</td>
						<td>{{ $row->payment_customer_amont}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Taux IPP', (isset($fields['IPPRate']['language'])? $fields['IPPRate']['language'] : array())) }}</td>
						<td>{{ $row->IPPRate}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Réserve', (isset($fields['reserve']['language'])? $fields['reserve']['language'] : array())) }}</td>
						<td>{{ $row->reserve}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Montant rachat', (isset($fields['purchase_amount']['language'])? $fields['purchase_amount']['language'] : array())) }}</td>
						<td>{{ $row->purchase_amount}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Décès', (isset($fields['death']['language'])? $fields['death']['language'] : array())) }}</td>
						<td>{{ $row->death}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Sort du sinitre', (isset($fields['sinister_fate']['language'])? $fields['sinister_fate']['language'] : array())) }}</td>
						<td>{{ $row->sinister_fate}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Evenements', (isset($fields['sinister_events']['language'])? $fields['sinister_events']['language'] : array())) }}</td>
						<td>{{ $row->sinister_events}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Observations', (isset($fields['observations']['language'])? $fields['observations']['language'] : array())) }}</td>
						<td>{{ $row->observations}} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Date de reprise', (isset($fields['recovery_date']['language'])? $fields['recovery_date']['language'] : array())) }}</td>
						<td>{{ date('d/m/Y',strtotime($row->recovery_date)) }} </td>
						
					</tr>
				
					<tr>
						<td width='30%' class='label-view text-right'>{{ SiteHelpers::activeLang('Date de mise à jour', (isset($fields['SSISDate']['language'])? $fields['SSISDate']['language'] : array())) }}</td>
						<td>{{ $row->SSISDate}} </td>
						
					</tr>
				
			</tbody>	
		</table>   

	 	

	</div>

</div>
@stop
