@extends('layouts.app')
@section('title', __('vrc::lang.low_stock'))
@section('content')
<section class="content-header"><h1>@lang('vrc::lang.low_stock')</h1></section>
<section class="content">
    @component('components.widget', ['class' => 'box-warning'])
        <table class="table table-bordered table-striped">
            <thead><tr><th>@lang('vrc::lang.part')</th><th>@lang('vrc::lang.qty')</th><th>@lang('vrc::lang.alert_qty')</th></tr></thead>
            <tbody>
            @forelse ($rows as $r)
                <tr><td>{{ $r['name'] }}</td><td>{{ $r['qty_available'] }}</td><td>{{ $r['alert_quantity'] }}</td></tr>
            @empty
                <tr><td colspan="3" class="text-muted text-center">@lang('vrc::lang.no_low_stock')</td></tr>
            @endforelse
            </tbody>
        </table>
    @endcomponent
</section>
@endsection
