@extends('adminlte::layouts.app') @section('htmlheader_title') Client Home @endsection @section('page_title') {{ $o->full_name }} @endsection @section('contentheader_title') {{ $o->full_name }} @endsection @section('contentheader_description') Client 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' ])

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()->where('date_payment','>',now()->subYear()->timestamp)->with(['items']), 'widget_payment_name'=>'widget-payment-last' ])
@include('r.invoice.widget.next',['future'=>FALSE])
@include('r.invoice.widget.next',['future'=>TRUE])
@endsection