@extends('adminlte::layouts.app') @section('htmlheader_title') Reseller Home @endsection @section('page_title') {{ $o->full_name }} @endsection @section('contentheader_title') {{ $o->full_name }} @endsection @section('contentheader_description') Reseller Home @endsection @section('main-content')
@include('common.account.widget.summary')
@include('common.service.widget.active')

Outstanding Invoices

@include('widgets.invoice',[ 'o'=>$o->query_invoice_summary()->whereIN('account_id',$o->accounts()->pluck('id')->toArray())->having('balance','>',0), 'widget_invoice_name'=>'widget-invoice-outstanding' ])

Invoices - Last 12 Months

@include('widgets.invoice',[ 'o'=>$o->query_invoice_summary()->whereIN('account_id',$o->accounts()->pluck('id')->toArray())->where('due_date','>',now()->subYear()->timestamp)->having('balance','=',0), 'widget_invoice_name'=>'widget-invoice-last' ])

Payments - Last 12 Months

@include('widgets.payment',[ 'o'=>$o->query_payment_summary()->whereIN('account_id',$o->accounts()->pluck('id')->toArray())->where('date_payment','>',now()->subYear()->timestamp)->with(['items']), 'widget_payment_name'=>'widget-payment-last' ])
@include('r.account.widget.list')
@include('r.service.widget.movement')

Outstanding Invoices

@include('widgets.invoice',[ 'o'=>$o->query_invoice_summary()->having('balance','>',0), 'widget_invoice_name'=>'widget-invoice-outstanding-client' ])
{{--
@include('r.agents')
@include('r.clients')
--}}
@endsection