@extends('core::layouts.master') @section('title') {{ trans_choice('share::general.share',1) }} {{ trans_choice('core::general.detail',2) }} @endsection @section('styles') @stop @section('content')
{{$share->share_product->name}}(#{{$share->id}})
@if($share->status=='submitted' ||$share->status=='pending') @can('share.shares.approve_shares') {{ trans_choice('share::general.approve',1) }} {{ trans_choice('share::general.reject',1) }} {{ trans_choice('share::general.withdraw',1) }} @endcan @can('share.shares.edit') {{ trans_choice('core::general.edit',1) }} @endcan @can('share.shares.approve_shares') @endcan @endif @if($share->status=='active') @can('share.shares.transactions.create') {{ trans_choice('share::general.redeem',1) }} {{ trans_choice('share::general.share',2) }} {{ trans_choice('share::general.purchase',1) }} {{ trans_choice('share::general.share',2) }} @endcan @can('share.share.edit') {{ trans_choice('share::general.change',1) }} {{ trans_choice('share::general.share',1) }} {{ trans_choice('share::general.officer',1) }} @endcan @can('share.shares.charges.create') {{ trans_choice('core::general.add',1) }} {{ trans_choice('share::general.charge',1) }} @endcan @can('share.shares.close_shares') {{ trans_choice('core::general.close',1) }} {{ trans_choice('share::general.share',1) }} @endcan @can('share.shares.activate_shares') {{ trans_choice('share::general.undo',1) }} {{ trans_choice('share::general.activation',1) }} @endcan @can('share.shares.edit') @endcan @can('share.shares.close_shares') @endcan @endif @if($share->status=='closed') @can('share.share.close_share') {{ trans_choice('share::general.activate',1) }} {{ trans_choice('share::general.share',1) }} @endcan @endif @if($share->status=='inactive') @can('share.share.inactive_share') {{ trans_choice('share::general.activate',1) }} {{ trans_choice('share::general.share',1) }} @endcan @endif @if($share->status=='dormant') @can('share.share.dormant_share') {{ trans_choice('share::general.activate',1) }} {{ trans_choice('share::general.share',1) }} @endcan @endif @if($share->status=='approved') @can('share.shares.activate_shares') {{ trans_choice('share::general.activate',1) }} @endcan @can('share.shares.edit') {{ trans_choice('share::general.change',1) }} {{ trans_choice('share::general.share',1) }} {{ trans_choice('share::general.officer',1) }} @endcan @can('share.shares.approve_shares') {{ trans_choice('share::general.undo',1) }} {{ trans_choice('share::general.approval',1) }} @endcan @can('share.shares.edit') @endcan @can('share.shares.activate_shares') @endcan @endif @if($share->status=='rejected') @can('share.shares.approve_shares') {{ trans_choice('share::general.undo',1) }} {{ trans_choice('share::general.rejection',1) }} @endcan @endif @if($share->status=='withdrawn') @can('share.shares.approve_shares') {{ trans_choice('share::general.undo',1) }} {{ trans_choice('share::general.withdrawn',1) }} @endcan @endif
@if($share->status=='submitted' ||$share->status=='pending'||$share->status=='withdrawn'||$share->status=='approved'||$share->status=='rejected') @if($share->status=='submitted') {{ trans_choice('share::general.pending_approval',1) }} @endif @if($share->status=='approved') {{ trans_choice('share::general.awaiting_activation',1) }} @endif @if($share->status=='withdrawn') {{ trans_choice('share::general.withdrawn',1) }} @endif @if($share->status=='rejected') {{ trans_choice('share::general.rejected',1) }} @endif @endif @if($share->status=='active' ||$share->status=='closed'||$share->status=='dormant'||$share->status=='inactive')
{{ trans_choice('share::general.current',1) }} {{ trans_choice('share::general.value',1) }} {{number_format($share->total_shares*$share->share_product->nominal_price,$share->decimals)}}
{{ trans_choice('core::general.total',1) }} {{ trans_choice('share::general.charge',2) }} {{number_format($share->transactions->where('reversed',0)->where('share_transaction_type_id',4)->sum('amount'),$share->decimals)}}
@endif
@if($share->status=='active' ||$share->status=='closed'||$share->status=='dormant'||$share->status=='inactive') @endif
{{ trans_choice('share::general.status',1) }} @if($share->status=='submitted') {{ trans_choice('share::general.pending_approval',1) }} @endif @if($share->status=='approved') {{ trans_choice('share::general.awaiting_activation',1) }} @endif @if($share->status=='active') {{ trans_choice('share::general.active',1) }} @endif @if($share->status=='withdrawn') {{ trans_choice('share::general.withdrawn',1) }} @endif @if($share->status=='rejected') {{ trans_choice('share::general.rejected',1) }} @endif @if($share->status=='closed') {{ trans_choice('share::general.closed',1) }} @endif @if($share->status=='dormant') {{ trans_choice('share::general.dormant',1) }} @endif @if($share->status=='inactive') {{ trans_choice('share::general.inactive',1) }} @endif
{{ trans_choice('client::general.client',1) }} @if(!empty($share->client)) {{$share->client->first_name}} {{$share->client->middle_name}} {{$share->client->last_name}} @endif
{{ trans_choice('core::general.currency',1) }} @if(!empty($share->currency)) {{$share->currency->name}} @endif
{{ trans_choice('savings::general.savings',1) }} @if(!empty($share->savings)) #{{$share->savings->id}} @endif
{{ trans_choice('share::general.total_shares',1) }} {{number_format($share->total_shares,2)}}
{{trans_choice('share::general.activated',1)}} {{trans_choice('core::general.on',1)}} {{$share->activated_on_date}}
@foreach($custom_fields as $custom_field)
{{trans_choice('core::general.submitted_on',1)}} {{$share->submitted_on_date}} {{trans_choice('core::general.by',1)}} @if(!empty($share->submitted_by)) {{$share->submitted_by->first_name}} {{$share->submitted_by->last_name}} @endif
{{trans_choice('share::general.approved',1)}} {{trans_choice('core::general.on',1)}} {{$share->approved_on_date}} @if(!empty($share->approved_by)) {{trans_choice('core::general.by',1)}} {{$share->approved_by->first_name}} {{$share->approved_by->last_name}} @endif
{{trans_choice('share::general.activated',1)}} {{trans_choice('core::general.on',1)}} {{$share->activated_on_date}} @if(!empty($share->activated_by)) {{trans_choice('core::general.by',1)}} {{$share->activated_by->first_name}} {{$share->activated_by->last_name}} @endif