payment.blade.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. @extends('backend.layouts.app')
  2. @section('content')
  3. <div class="card">
  4. <div class="card-header">
  5. <h5 class="mb-0 h6">{{ $user->name }} ({{ $user->shop->name }})</h5>
  6. </div>
  7. <div class="card-body">
  8. <table class="table aiz-table">
  9. <thead>
  10. <tr>
  11. <th data-breakpoints="lg">#</th>
  12. <th>{{translate('Date')}}</th>
  13. <th>{{translate('Amount')}}</th>
  14. <th data-breakpoints="lg">{{ translate('Payment Details') }}</th>
  15. </tr>
  16. </thead>
  17. <tbody>
  18. @foreach($payments as $key => $payment)
  19. <tr>
  20. <td>{{ $key+1 }}</td>
  21. <td>{{ $payment->created_at }}</td>
  22. <td>
  23. {{ single_price($payment->amount) }}
  24. </td>
  25. <td>{{ ucfirst(str_replace('_', ' ', $payment->payment_method)) }} @if ($payment->txn_code != null) ({{ translate('TRX ID') }} : {{ $payment->txn_code }}) @endif</td>
  26. </tr>
  27. @endforeach
  28. </tbody>
  29. </table>
  30. </div>
  31. </div>
  32. @endsection