@extends("layouts.app")
@section("title", __("vrc::lang.report_revenue_by_service"))
@section("content")
<section class="content-header"><h1>@lang("vrc::lang.report_revenue_by_service")</h1></section>
<section class="content">
    @component("components.widget", ["class" => "box-primary"])
        @include("vrc::reports._filter")
        <table class="table table-bordered table-striped">
            <thead><tr><th>@lang("vrc::lang.service")</th><th>@lang("vrc::lang.jobs")</th><th>@lang("vrc::lang.revenue")</th></tr></thead>
            <tbody>
            @forelse ($rows as $r)
                <tr><td>{{ $r->description }}</td><td>{{ $r->jobs }}</td><td>{{ number_format($r->revenue,2) }}</td></tr>
            @empty
                <tr><td colspan="3" class="text-muted text-center">@lang("messages.no_records_found")</td></tr>
            @endforelse
            </tbody>
        </table>
    @endcomponent
</section>
@endsection
