@php use Carbon\Carbon; @endphp
| {{ _mt($moduleId,'Epin.sl_no') }} | {{ _mt($moduleId,'Epin.Key') }} | {{ _mt($moduleId,'Epin.Amount') }} | {{ _mt($moduleId,'Epin.Balance') }} | {{ _mt($moduleId,'Epin.User') }} | {{ _mt($moduleId,'Epin.Valid_From') }} | {{ _mt($moduleId,'Epin.Valid_upto') }} | {{ _mt($moduleId,'Epin.Created') }} | {{ _mt($moduleId,'Epin.Usable') }} | {{ _mt($moduleId,'Epin.Action') }} |
|---|---|---|---|---|---|---|---|---|---|
| {{ ($epins->currentPage() * $epins->perPage()) - $epins->perPage() + $loop->iteration }} | {{ $epin->key }} | {{ currency($epin->amount) }} | {{ currency($epin->balance) }} | {{ $epin->user?$epin->user->member_id: _mt($moduleId,'Epin.Unassigned') }} | {{ $epin->valid_from? date('Y/m/d', strtotime($epin->valid_from)) : _mt($moduleId,'Epin.Unlimited') }} | {{ $epin->valid_upto? date('Y/m/d', strtotime($epin->valid_upto)) : _mt($moduleId,'Epin.Unlimited') }} | {{ date('Y/m/d', strtotime($epin->created_at)) }} | @if((int)$epin->balance == 0 || $epin->status == 0 || $epin->valid_upto < Carbon::now()->format('Y-m-d') ) {{ _mt($moduleId, 'Epin.no') }} @else {{ _mt($moduleId, 'Epin.yes') }} @endif | @if($epin->balance == $epin->amount ) @if($epin->status) @else @endif @endif |