@use(App\Models\Service) @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')
@foreach (Service::ServiceActive()->with(['account.taxes','type','product.type.supplied.supplier_detail.supplier','product.translate','type.traffic'])->get() as $o) @endforeach
ID Service Product Monthly Cost Usage Supplier
{{ $o->id }} {{ $o->name }} {{ $o->product->name }} {{ number_format($o->billing_charge_normalised,2) }} {{ number_format($o->product->cost_normalized(),2) }} {{ $o->product->hasUsage() ? number_format($o->type->usage_summary(0)->sum()/1000,1) : '-' }} {{ $o->product->supplier->name }}
@endsection @pa(datatables,rowgroup|conditionalpaging|select|searchpanes|searchpanes-left) @section('page-scripts') @append