
<!-- Trigger the modal with a button -->
<button type="button" class="btn btn-info " data-toggle="modal" data-target="#WalletsList{{@$user->id}}">
<li class="icon ti-info"></li>
</button>


<!-- Modal -->
<div id="WalletsList{{@$user->id}}" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">@lang('home.user_wallet')</h4>
      </div>
      <div class="modal-body">
        <table class="table table-striped">
          <tr>
              <th>@lang('home.id')</th>
              <th>@lang('home.credit')</th>
              <th>@lang('home.content')</th>
              <th>@lang('home.status')</th>
              <td>@lang('home.since')</td>
          </tr>
             
          @if($user->wallets->count() > 0)
            @foreach($user->wallets as $wallet)
           
              <tr>
                <td>{{ @$wallet->id }}</td>
                <td>{{ @$wallet->amount.' '.@$wallet->currency }}</td>
                <td>{{ @$wallet->content }}</td>
                <td>
                  @if($wallet->status == 'admin_gift')
                  @lang('home.add_byAdmin')
                  @endif
                </td>
                <td>{{@Carbon\Carbon::parse($wallet->created_at)->diffForHumans() }}</td>
              </tr>
            @endforeach
          @endif
        </table>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">@lang('home.close')</button>
     

      </div>
    </div>

  </div>
</div>