
<!-- /.box-header -->
<div class="box-body">

  <div class="table-responsive">
    <table id="example1" class="table table-bordered table-striped">
      <thead>
     
      <tr>
        <th>#</th>                  
        <th>{{ __('adminstaticword.User') }}</th>
        <th>{{ __('adminstaticword.Course') }}</th>
        <th>{{ __('adminstaticword.OrderId') }}</th>
        <th>{{ __('adminstaticword.PaymentMethod') }}</th>
        <th>{{ __('adminstaticword.Status') }}</th>
        <th>{{ __('adminstaticword.View') }}</th>
        <th>{{ __('adminstaticword.Delete') }}</th>
      </tr>
      </thead>
      <tbody>
      @foreach($refunds as $key=>$refund)

      @if($refund->status == 1)
      <tr>
        <td>{{ $key+1 }}</td>
        <td>{{ $refund->user['fname'] }}</td>
        <td>{{ $refund->courses->title }}</td>
        <td>{{ $refund->order->order_id }}</td>
        <td>{{ $refund->payment_method }}</td>
        <td>
           
            @if($refund->status ==1)
            {{ __('adminstaticword.Refunded') }}
            @else
            {{ __('adminstaticword.Pending') }}
            @endif
             
        </td>
        
        <td><a class="btn btn-success btn-sm" href="{{url('refundorder/'.$refund->id.'/edit')}}">
          view</a>
        </td>

        <td><form  method="post" action="{{url('refundorder/'.$refund->id)}}
              "data-parsley-validate class="form-horizontal form-label-left">
              {{ csrf_field() }}
              {{ method_field('DELETE') }}
            <button  type="submit" class="btn btn-danger"><i class="fa fa-fw fa-trash-o"></i></button>
          </form>
        </td>

        @endif

        @endforeach

      </tr>
      </tfoot>
    </table>
  </div>
</div>
<!-- /.box-body -->