30 lines
1.3 KiB
PHP
30 lines
1.3 KiB
PHP
@extends('portal::layouts.customer')
|
|
@section('title', __('portal::lang.service_requests'))
|
|
@section('content')
|
|
<section class="portal-page-header">
|
|
<h1>@lang('portal::lang.service_requests')</h1>
|
|
<p><a href="{{ action([\Modules\Portal\Http\Controllers\Customer\ServiceRequestController::class, 'create']) }}" class="btn btn-primary btn-sm"><i class="fas fa-plus"></i> @lang('portal::lang.new_service_request')</a></p>
|
|
</section>
|
|
<section class="content">
|
|
<div class="box box-primary">
|
|
<div class="table-responsive">
|
|
<table class="table table-bordered table-striped">
|
|
<thead><tr><th>@lang('portal::lang.linked_equipment')</th><th>@lang('portal::lang.problem_description')</th><th>@lang('messages.date')</th></tr></thead>
|
|
<tbody>
|
|
@forelse($requests as $req)
|
|
<tr>
|
|
<td>{{ $req->equipment->name ?? '-' }}</td>
|
|
<td>{{ $req->root_cause }}</td>
|
|
<td>@format_datetime($req->reported_at)</td>
|
|
</tr>
|
|
@empty
|
|
<tr><td colspan="3" class="text-center text-muted">@lang('portal::lang.no_records')</td></tr>
|
|
@endforelse
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{{ $requests->links() }}
|
|
</div>
|
|
</section>
|
|
@endsection
|