@extends('layouts.app')
@section('title', __('vrc::lang.jobs'))
@section('content')
<section class="content-header"><h1>{{ $tech->name }} — @lang('vrc::lang.jobs')</h1></section>
<section class="content">
    @component('components.widget', ['class' => 'box-primary'])
        <table class="table table-bordered table-striped">
            <thead><tr><th>@lang('vrc::lang.repair_order')</th><th>@lang('vrc::lang.service')</th><th>@lang('vrc::lang.status')</th><th>@lang('vrc::lang.labor_hours')</th></tr></thead>
            <tbody>
            @forelse ($lines as $l)
                <tr><td><a href="{{ route('vrc.repair-orders.show', $l->repair_order_id) }}">{{ $l->ro_number ?: ('#'.$l->repair_order_id) }}</a></td><td>{{ $l->description }}</td><td>{{ __('vrc::lang.svc_'.$l->status) }}</td><td>{{ $l->labor_hours }}</td></tr>
            @empty
                <tr><td colspan="4" class="text-muted text-center">@lang('vrc::lang.no_jobs')</td></tr>
            @endforelse
            </tbody>
        </table>
    @endcomponent
</section>
@endsection
