@extends('layouts.master') @section('title') {{ trans_choice('general.savings',1) }} {{ trans_choice('general.detail',2) }} @endsection @section('content')
{{$savings->savings_product->name}}(#{{$savings->id}})
@if($savings->status=="pending")
@if(Sentinel::hasAccess('savings.approve'))  {{trans_choice('general.approve',1)}}  {{trans_choice('general.decline',1)}} @endif @if(Sentinel::hasAccess('savings.update'))  {{trans_choice('general.edit',1)}} @endif
@if($savings->client_type=="client") @endif @if($savings->client_type=="group") @endif
{{trans_choice('general.client',1)}} @if(!empty($savings->client)) @if($savings->client->client_type=="individual") {{$savings->client->first_name}} {{$savings->client->middle_name}} {{$savings->client->last_name}} ({{trans_choice('general.individual',1)}}) @else {{$savings->client->full_name}} ({{trans_choice('general.business',1)}}) @endif @endif
{{trans_choice('general.group',1)}} @if(!empty($savings->group)) {{$savings->group->name}} @endif
{{trans_choice('general.currency',1)}} @if(!empty($savings->currency)) {{$savings->currency->name}} @endif
{{trans_choice('general.field',1)}} {{trans_choice('general.officer',1)}} @if(!empty($savings->field_officer)) {{$savings->field_officer->first_name}} {{$savings->field_officer->last_name}} @endif
{{trans_choice('general.external_id',1)}} {{ $savings->external_id }}
{{trans_choice('general.created',1)}} {{trans_choice('general.date',1)}} {{ $savings->created_date }}
{{trans_choice('general.interest',1)}} {{trans_choice('general.rate',1)}} {{ $savings->interest_rate }}
@endif @if($savings->status=="approved")
@if(Sentinel::hasAccess('savings.transactions.deposit'))  {{trans_choice('general.deposit',1)}} @endif @if(Sentinel::hasAccess('savings.transactions.withdrawal'))  {{trans_choice('general.withdraw',1)}} @endif @if(Sentinel::hasAccess('savings.charge.create'))  {{trans_choice('general.add',1)}} {{trans_choice('general.charge',1)}} @endif @if(Sentinel::hasAccess('savings.update'))   {{ trans_choice('general.change',1) }} {{ trans_choice('general.field',1) }} {{ trans_choice('general.officer',1) }} @endif @if(Sentinel::hasAccess('savings.undo_approval'))  {{trans_choice('general.undo',1)}}  {{trans_choice('general.approval',1)}} @endif