2018-05-20 12:53:14 +00:00
|
|
|
@extends('adminlte::layouts.app')
|
2017-12-12 05:28:49 +00:00
|
|
|
|
|
|
|
@section('htmlheader_title')
|
2019-06-02 05:35:48 +00:00
|
|
|
Client Home
|
2017-12-12 05:28:49 +00:00
|
|
|
@endsection
|
2020-02-05 04:47:24 +00:00
|
|
|
@section('page_title')
|
2018-07-17 04:10:40 +00:00
|
|
|
{{ $o->full_name }}
|
2017-12-12 05:28:49 +00:00
|
|
|
@endsection
|
2020-02-05 04:47:24 +00:00
|
|
|
|
|
|
|
@section('contentheader_title')
|
2019-06-02 05:35:48 +00:00
|
|
|
{{ $o->full_name }}
|
|
|
|
@endsection
|
2017-12-12 05:28:49 +00:00
|
|
|
@section('contentheader_description')
|
2019-06-02 05:35:48 +00:00
|
|
|
Client Home
|
2017-12-12 05:28:49 +00:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('main-content')
|
2020-02-08 11:51:50 +00:00
|
|
|
<div class="row">
|
|
|
|
@include('common.account.widget.summary')
|
|
|
|
</div>
|
2017-12-12 05:28:49 +00:00
|
|
|
|
2020-02-08 11:51:50 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header p-2">
|
|
|
|
<ul class="nav nav-pills">
|
|
|
|
<li class="nav-item"><a class="nav-link active" href="#tab-services" data-toggle="tab">Services</a></li>
|
|
|
|
<li class="nav-item"><a class="nav-link" href="#tab-nextinvoice" data-toggle="tab">Next Invoice</a></li>
|
|
|
|
<li class="nav-item"><a class="nav-link" href="#tab-futureinvoice" data-toggle="tab">Future Invoice</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-body">
|
|
|
|
<div class="tab-content">
|
|
|
|
<div class="active tab-pane" id="tab-services">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-7">
|
|
|
|
@include('common.service.widget.active')
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-5">
|
2020-07-21 06:39:23 +00:00
|
|
|
<!-- Show outstanding invoices -->
|
|
|
|
<div class="card card-warning card-outline">
|
|
|
|
<div class="card-header">
|
|
|
|
<h4 class="card-title">Outstanding Invoices</h4>
|
|
|
|
|
|
|
|
<div class="card-tools">
|
|
|
|
<button type="button" class="btn btn-tool" data-widget="collapse"><i class="fas fa-minus"></i></button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-body">
|
|
|
|
@include('widgets.invoice',[
|
|
|
|
'o'=>$o->query_invoice_summary()->whereIN('account_id',$o->accounts()->pluck('id')->toArray())->having('balance','>',0),
|
|
|
|
'widget_invoice_name'=>'widget-invoice'
|
|
|
|
])
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Show last 10 invoices -->
|
|
|
|
<div class="card card-warning card-outline">
|
|
|
|
<div class="card-header">
|
|
|
|
<h4 class="card-title">Invoices - Last 12 Months</h4>
|
|
|
|
|
|
|
|
<div class="card-tools">
|
|
|
|
<button type="button" class="btn btn-tool" data-widget="collapse"><i class="fas fa-minus"></i></button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-body">
|
|
|
|
@include('widgets.invoice',[
|
2020-07-21 07:41:24 +00:00
|
|
|
'o'=>$o->query_invoice_summary()->whereIN('account_id',$o->accounts()->pluck('id')->toArray())->where('due_date','>',now()->subYear()->timestamp)->having('balance','=',0),
|
2020-07-21 06:39:23 +00:00
|
|
|
'widget_invoice_name'=>'widget-invoice-last'
|
|
|
|
])
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-07-21 07:41:24 +00:00
|
|
|
<!-- Show last 10 invoices -->
|
|
|
|
<div class="card card-warning card-outline">
|
|
|
|
<div class="card-header">
|
|
|
|
<h4 class="card-title">Payments - Last 12 Months</h4>
|
|
|
|
|
|
|
|
<div class="card-tools">
|
|
|
|
<button type="button" class="btn btn-tool" data-widget="collapse"><i class="fas fa-minus"></i></button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-body">
|
|
|
|
@include('widgets.payment',[
|
|
|
|
'o'=>$o->query_payment_summary()->where('date_payment','>',now()->subYear()->timestamp)->with(['items']),
|
|
|
|
'widget_payment_name'=>'widget-payment-last'
|
|
|
|
])
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-02-08 11:51:50 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tab-pane" id="tab-nextinvoice">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
@include('r.invoice.widget.next',['future'=>FALSE])
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-06-02 05:35:48 +00:00
|
|
|
|
2020-02-08 11:51:50 +00:00
|
|
|
<div class="tab-pane" id="tab-futureinvoice">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
@include('r.invoice.widget.next',['future'=>TRUE])
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-12-12 05:28:49 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|