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

23 lines
1.2 KiB
PHP

@extends('portal::layouts.customer')
@section('title', __('portal::lang.my_equipment'))
@section('content')
<section class="content-header"><h1>@lang('portal::lang.my_equipment')</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('maintenance::lang.code')</th><th>@lang('maintenance::lang.name')</th><th>@lang('maintenance::lang.serial_number')</th><th>@lang('portal::lang.status')</th><th></th></tr></thead>
<tbody>
@forelse($equipment as $item)
<tr>
<td>{{ $item->code }}</td><td>{{ $item->name }}</td><td>{{ $item->serial_number }}</td><td>{{ $item->status }}</td>
<td><a href="{{ action([\Modules\Portal\Http\Controllers\Customer\EquipmentController::class, 'show'], [$item->id]) }}" class="btn btn-xs btn-info">@lang('portal::lang.view_details')</a></td>
</tr>
@empty
<tr><td colspan="5" class="text-center text-muted">@lang('portal::lang.no_records')</td></tr>
@endforelse
</tbody>
</table>
</div>{{ $equipment->links() }}</div>
</section>
@endsection