12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- @extends('seller.layouts.app')
- @section('panel_content')
- <div class="card">
- <div class="card-header">
- <h5 class="mb-0 h6">{{ translate('Product Queries') }}</h5>
- </div>
- <div class="card-body">
- <table class="table aiz-table mb-0" cellspacing="0" width="100%">
- <thead>
- <tr>
- <th data-breakpoints="lg">#</th>
- <th>{{ translate('User Name') }}</th>
- <th>{{ translate('Product Name') }}</th>
- <th data-breakpoints="lg">{{ translate('Question') }}</th>
- <th data-breakpoints="lg">{{ translate('Reply') }}</th>
- <th>{{ translate('status') }}</th>
- <th class="text-right">{{ translate('Options') }}</th>
- </tr>
- </thead>
- <tbody>
- @foreach ($queries as $key => $query)
- <tr>
- <td>{{ translate($key + 1) }}</td>
- <td>{{ translate($query->user->name) }}</td>
- <td>{{ translate($query->product->name) }}</td>
- <td>{{ translate(Str::limit($query->question, 100)) }}</td>
- <td>{{ translate(Str::limit($query->reply, 100)) }}</td>
- <td>
- <span
- class="badge badge-inline {{ $query->reply == null ? 'badge-warning' : 'badge-success' }}">
- {{ $query->reply == null ? translate('Not Replied') : translate('Replied') }}
- </span>
- </td>
- <td class="text-right">
- <a class="btn btn-soft-primary btn-icon btn-circle btn-sm"
- href="{{ route('seller.product_query.show', encrypt($query->id)) }}"
- title="{{ translate('View') }}">
- <i class="las la-eye"></i>
- </a>
- </td>
- </tr>
- @endforeach
- </tbody>
- </table>
- <div class="aiz-pagination">
- {{ $queries->appends(request()->input())->links() }}
- </div>
- </div>
- </div>
- @endsection
- @section('modal')
- @include('modals.delete_modal')
- @endsection
|