File: D:/HostingSpaces/SBogers10/topswtw.komma.pro/app/views/partials/maintenance/type.blade.php
{{--Loop maintenances--}}
{{ $errors->first('maintenance_type','<span class="message error">:message</span>') }}
@foreach($maintenances as $key => $maintenance )
@if($key % 2 == 0)
<div class="maintenance-choices-group">
@endif
<div class="maintenance-choices line-{{$key % 2}} {{ (getFormData('maintenance_type') == $maintenance->id ? 'chosen' : (getFormData('maintenance_type') == ''?'':'inactive')) }}">
<div class="title-box">
{{Form::radio('maintenance_type', $maintenance->id,getFormData('maintenance_type'),['id'=>"maintenance-type-".$maintenance->id])}}
<h3 class="title">{{$maintenance->name}}</h3>
</div>
<div class="price info">
<span class="icon"> </span>
{{ Format::asPrice($maintenance->price) }} {{Lang::get('pages/maintenance.per_unit')}}
</div>
<div class="duration info">
<span class="icon"> </span>
+/- {{$maintenance->duration_time}} @lang('pages/maintenance.minutes')
</div>
<div class="clear-box"></div>
<label for="maintenance-type-{{$maintenance->id}}" >
<div class="decription-decription">
{{$maintenance->description}}
</div>
</label>
</div>
@if($key % 2 == 1)
</div>
@endif
@endforeach