index.blade.php 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. @extends('seller.layouts.app')
  2. @section('panel_content')
  3. <div class="card">
  4. <div class="card-header">
  5. <h5 class="mb-0 h6">{{ translate('Product Queries') }}</h5>
  6. </div>
  7. <div class="card-body">
  8. <table class="table aiz-table mb-0" cellspacing="0" width="100%">
  9. <thead>
  10. <tr>
  11. <th data-breakpoints="lg">#</th>
  12. <th>{{ translate('User Name') }}</th>
  13. <th>{{ translate('Product Name') }}</th>
  14. <th data-breakpoints="lg">{{ translate('Question') }}</th>
  15. <th data-breakpoints="lg">{{ translate('Reply') }}</th>
  16. <th>{{ translate('status') }}</th>
  17. <th class="text-right">{{ translate('Options') }}</th>
  18. </tr>
  19. </thead>
  20. <tbody>
  21. @foreach ($queries as $key => $query)
  22. <tr>
  23. <td>{{ translate($key + 1) }}</td>
  24. <td>{{ translate($query->user->name) }}</td>
  25. <td>{{ translate($query->product->name) }}</td>
  26. <td>{{ translate(Str::limit($query->question, 100)) }}</td>
  27. <td>{{ translate(Str::limit($query->reply, 100)) }}</td>
  28. <td>
  29. <span
  30. class="badge badge-inline {{ $query->reply == null ? 'badge-warning' : 'badge-success' }}">
  31. {{ $query->reply == null ? translate('Not Replied') : translate('Replied') }}
  32. </span>
  33. </td>
  34. <td class="text-right">
  35. <a class="btn btn-soft-primary btn-icon btn-circle btn-sm"
  36. href="{{ route('seller.product_query.show', encrypt($query->id)) }}"
  37. title="{{ translate('View') }}">
  38. <i class="las la-eye"></i>
  39. </a>
  40. </td>
  41. </tr>
  42. @endforeach
  43. </tbody>
  44. </table>
  45. <div class="aiz-pagination">
  46. {{ $queries->appends(request()->input())->links() }}
  47. </div>
  48. </div>
  49. </div>
  50. @endsection
  51. @section('modal')
  52. @include('modals.delete_modal')
  53. @endsection