wyyl/resources/beike/admin/views/pages/rmas/index.blade.php

51 lines
1.6 KiB
PHP

@extends('admin::layouts.master')
@section('title', __('admin/rma.index'))
@section('content')
<div id="customer-app" class="card h-min-600">
<div class="card-body">
@if (count($rmas))
<table class="table">
<thead>
<tr>
<th>{{ __('admin/rma.customers_name') }}</th>
<th>{{ __('common.email') }}</th>
<th>{{ __('common.phone') }}</th>
<th>{{ __('admin/builder.modules_product') }}</th>
<th>{{ __('product.model') }}</th>
<th>{{ __('admin/rma.quantity') }}</th>
<th>{{ __('admin/rma.service_type') }}</th>
<th>{{ __('common.status') }}</th>
<th>{{ __('common.action') }}</th>
</tr>
</thead>
<tbody>
@foreach ($rmas_format as $rma)
<tr>
<td>{{ $rma['name'] }}</td>
<td>{{ $rma['email'] }}</td>
<td>{{ $rma['telephone'] }}</td>
<td>{{ $rma['product_name'] }}</td>
<td>{{ $rma['model'] }}</td>
<td>{{ $rma['quantity'] }}</td>
<td>{{ $rma['type'] }}</td>
<td>{{ $rma['status'] }}</td>
<td><a href="{{ admin_route('rmas.show', [$rma['id']]) }}" class="btn btn-outline-secondary btn-sm">{{ __('common.view') }}</a>
</td>
</tr>
@endforeach
</tbody>
</table>
{{ $rmas->links('admin::vendor/pagination/bootstrap-4') }}
@else
<x-admin-no-data/>
@endif
</div>
</div>
@endsection
@push('footer')
<script></script>
@endpush