@if($view == 'grid')
@forelse($epins->chunk(3) as $row)
@foreach($row as $epin)

{{ $epin->key }}

{{ currency($epin->balance) }}
{{ _mt($moduleId,'Epin.Assigned_to') }} : {{ $epin->user?$epin->user->username: _mt($moduleId,'Epin.No_body') }}
{{ _mt($moduleId,'Epin.Valid_from') }} : {{ $epin->valid_from?: _mt($moduleId,'Epin.Not_set') }}
{{ _mt($moduleId,'Epin.Valid_upto') }} : {{ $epin->valid_upto?: _mt($moduleId,'Epin.Not_set') }}
{{--
--}} {{-- --}} {{-- {{ _mt($moduleId,'Epin.Max_use') }} :--}} {{-- {{ $epin->max_use?: _mt($moduleId,'Epin.Unlimited') }}--}} {{--
--}}
@endforeach
@empty
{{ _mt($moduleId,'Epin.No_E-pins_found') }}
@endforelse
@else
@if($epins->count())
@foreach($epins as $key => $epin) @endforeach
{{ _mt($moduleId,'Epin.sl_no') }} {{ _mt($moduleId,'Epin.Date_of_Purchase') }} {{ _mt($moduleId,'Epin.Amount') }} {{ _mt($moduleId,'Epin.Key') }} {{ _mt($moduleId,'Epin.User') }} {{ _mt($moduleId,'Epin.Payment_Type') }}
{{ $key + 1 }} {{ $epin->created_at }} {{ currency($epin->amount) }} {{ $epin->key }} {{ $epin->user?$epin->user->member_id: _mt($moduleId,'Epin.Unassigned') }} {{ $epin->transaction ? getModule($epin->transaction->gateway)->registry['name'] : '' }}
@else
{{ _mt($moduleId,'Epin.No_E-pins_found') }}
@endif
@endif
{{ $epins->links() }}