ultimatepos/Modules/Portal/Resources/views/customer/repairs/index.blade.php

25 lines
1.2 KiB
PHP

@extends('portal::layouts.customer')
@section('title', __('repair::lang.repair'))
@section('content')
<section class="content-header"><h1>@lang('repair::lang.repair')</h1></section>
<section class="content">
<div class="box box-primary"><div class="table-responsive">
<table class="table table-bordered table-striped">
<thead><tr><th>@lang('repair::lang.job_sheet_no')</th><th>@lang('portal::lang.status')</th><th>@lang('repair::lang.device')</th><th></th></tr></thead>
<tbody>
@forelse($jobSheets as $js)
<tr>
<td>{{ $js->job_sheet_no }}</td>
<td>{{ $js->status->name ?? $js->status_id }}</td>
<td>{{ $js->Brand->name ?? '' }} {{ $js->DeviceModel->name ?? '' }}</td>
<td><a href="{{ action([\Modules\Portal\Http\Controllers\Customer\RepairController::class, 'show'], [$js->id]) }}" class="btn btn-xs btn-info">@lang('portal::lang.view_details')</a></td>
</tr>
@empty
<tr><td colspan="4" class="text-center text-muted">@lang('portal::lang.no_records')</td></tr>
@endforelse
</tbody>
</table>
</div>{{ $jobSheets->links() }}</div>
</section>
@endsection