@extends('adminlte::layouts.app') @section('htmlheader_title') Service List @endsection @section('page_title') Service List @endsection @section('contentheader_title') Service List @endsection @section('contentheader_description') @endsection @section('main-content')
{{-- @todo This query is expensive still --}} @foreach (\App\Models\Service::active()->with(['type','product.type.supplied.supplier_detail.supplier','product.translate'])->get() as $o) @endforeach
ID Service Product Monthly Cost Traffic (GB) Supplier
{{ $o->id }} {{ $o->name }} {{ $o->product->name }} {{ number_format($o->billing_monthly_price,2) }} {{ number_format($o->product->cost_normalized(),2) }} {{ $o->category == 'broadband' ? number_format($o->type->usage_summary(0)->sum()/1000,1) : '-' }} {{ $o->product->supplier->name }}
@endsection @section('page-scripts') @css(datatables,bootstrap4|fixedheader|responsive|rowgroup|buttons) @js(datatables,bootstrap4|fixedheader|responsive|rowgroup|buttons) @append