Download core/resources/views/admin/review/index.blade.php from pnacorp/codeplus: direct link, hf CLI and curl.
- Browser
- Download file 3.94 kB
-
https://huggingface.co/pnacorp/codeplus/resolve/main/core/resources/views/admin/review/index.blade.php
- Command line
-
hf download hf://pnacorp/codeplus/core/resources/views/admin/review/index.blade.php
-
curl -L -o index.blade.php https://huggingface.co/pnacorp/codeplus/resolve/main/core/resources/views/admin/review/index.blade.php
3.94 kB
| @extends('admin.layouts.app') | |
| @section('panel') | |
| <div class="row"> | |
| <div class="col-lg-12"> | |
| <div class="card b-radius--10 "> | |
| <div class="card-body p-0"> | |
| <div class="table-responsive--md table-responsive"> | |
| <table class="table table--light style--two"> | |
| <thead> | |
| <tr> | |
| <th>@lang('Product')</th> | |
| <th>@lang('Rating')</th> | |
| <th>@lang('Created At')</th> | |
| <th>@lang('Action')</th> | |
| </tr> | |
| </thead> | |
| <tbody> | |
| @forelse($reviews as $review) | |
| <tr> | |
| <td>{{ __(@$review->product->title) }}</td> | |
| <td>{{ @$review->rating }}</td> | |
| <td>{{ showDateTime($review->created_at) }}</td> | |
| <td> | |
| <button class="btn btn-sm btn-outline--primary me-2 view-btn" data-review="{{ @$review->review }}"> | |
| <i class="las la-eye"></i> | |
| @lang('View') | |
| </button> | |
| <button class="btn btn-sm btn-outline--danger ms-1 confirmationBtn" data-question="@lang('Are you sure to delete this review?')" | |
| data-action="{{ route('admin.review.destroy', $review->id) }}"> | |
| <i class="la la-trash"></i> @lang('Delete') | |
| </button> | |
| </td> | |
| </tr> | |
| @empty | |
| <tr> | |
| <td class="text-muted text-center" colspan="100%">{{ __($emptyMessage) }}</td> | |
| </tr> | |
| @endforelse | |
| </tbody> | |
| </table><!-- table end --> | |
| </div> | |
| </div> | |
| @if ($reviews->hasPages()) | |
| <div class="card-footer py-4"> | |
| {{ paginateLinks($reviews) }} | |
| </div> | |
| @endif | |
| </div> | |
| </div> | |
| </div> | |
| <div id="viewModal" class="modal fade" tabindex="-1" role="dialog"> | |
| <div class="modal-dialog" role="document"> | |
| <div class="modal-content"> | |
| <div class="modal-header"> | |
| <h5 class="modal-title">@lang('Review')</h5> | |
| <button type="button" class="close" data-bs-dismiss="modal" aria-label="Close"> | |
| <i class="las la-times"></i> | |
| </button> | |
| </div> | |
| <form action="" method="POST"> | |
| @csrf | |
| <div class="modal-body"> | |
| <p class="review"></p> | |
| </div> | |
| </form> | |
| </div> | |
| </div> | |
| </div> | |
| <x-confirmation-modal /> | |
| @endsection | |
| @push('breadcrumb-plugins') | |
| <x-search-form placeholder="{{ __('Review Text') }}" /> | |
| @endpush | |
| @push('script') | |
| <script> | |
| 'use strict'; | |
| (function() { | |
| $('.view-btn').on('click', function() { | |
| const review = $(this).data('review'); | |
| const modal = $('#viewModal'); | |
| modal.find('p.review').text(review); | |
| modal.modal('show'); | |
| }); | |
| })(jQuery); | |
| </script> | |
| @endpush | |