2018-05-20 12:53:14 +00:00
|
|
|
@extends('adminlte::layouts.app')
|
2017-12-12 05:28:49 +00:00
|
|
|
|
|
|
|
@section('htmlheader_title')
|
2022-04-21 04:41:26 +00:00
|
|
|
{{ $o->role }} 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')
|
2022-08-12 04:53:06 +00:00
|
|
|
{{ $o->role }}
|
2017-12-12 05:28:49 +00:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('main-content')
|
2022-04-21 04:41:26 +00:00
|
|
|
<!-- Our Summary Home Page Boxes -->
|
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
|
|
|
|
2023-05-09 10:28:51 +00:00
|
|
|
<div class="card card-light card-tabs">
|
|
|
|
<div class="card-header p-0 pt-1">
|
|
|
|
<ul class="nav nav-tabs" id="accounts-tab" role="tablist">
|
|
|
|
<li class="pt-2 px-3"><h3 class="card-title">Accounts</h3></li>
|
|
|
|
@foreach($o->my_accounts as $ao)
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link @if(! $loop->index)active @endif" href="#account_{{ $ao->id }}" data-toggle="tab" aria-controls="account_{{ $ao->id }}" aria-selected="true">{{ $ao->name }}</a>
|
|
|
|
</li>
|
|
|
|
@endforeach
|
2022-04-21 04:41:26 +00:00
|
|
|
|
2023-05-09 10:28:51 +00:00
|
|
|
@canany('reseller','wholesaler')
|
|
|
|
@if ($o === $user)
|
|
|
|
<li class="nav-item ml-auto">
|
|
|
|
<a class="nav-link" href="#tab-reseller" data-toggle="tab">Reseller</a>
|
|
|
|
</li>
|
|
|
|
@endif
|
|
|
|
@endcanany
|
|
|
|
</ul>
|
|
|
|
</div>
|
2020-07-21 06:39:23 +00:00
|
|
|
|
2023-05-09 10:28:51 +00:00
|
|
|
<div class="card-body">
|
|
|
|
<div class="tab-content" id="accounts-tab-content">
|
|
|
|
@foreach($o->my_accounts as $ao)
|
|
|
|
<div class="tab-pane fade @if(! $loop->index)show active @endif" id="account_{{ $ao->id }}" role="tabpanel" aria-labelledby="account_{{ $ao->id }}">
|
2021-06-29 06:36:34 +00:00
|
|
|
<div class="row">
|
2023-05-09 10:28:51 +00:00
|
|
|
<div class="col-12">
|
|
|
|
<div class="card-header bg-white">
|
|
|
|
<ul class="nav nav-pills">
|
|
|
|
<li class="nav-item"><a class="nav-link {{ (! session()->has('supplier_update')) ? 'active' : '' }}" href="#tab-services" data-toggle="tab">Services</a></li>
|
|
|
|
{{--
|
|
|
|
<!-- @todo this is not working -->
|
|
|
|
<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>
|
|
|
|
<li class="nav-item ml-auto">
|
|
|
|
<a class="nav-link {{ session()->has('supplier_update') ? 'active' : '' }}" href="#tab-supplier" data-toggle="tab">Supplier</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2020-07-21 06:39:23 +00:00
|
|
|
|
2023-05-09 10:28:51 +00:00
|
|
|
<div class="card-body pl-0 pr-0">
|
|
|
|
<div class="tab-content">
|
|
|
|
<div class="tab-pane {{ (! session()->has('supplier_update')) ? 'active' : '' }}" id="tab-services">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12 col-xl-7">
|
|
|
|
@include('service.widget.active',['o'=>$ao])
|
|
|
|
</div>
|
2020-07-21 07:41:24 +00:00
|
|
|
|
2023-05-09 10:28:51 +00:00
|
|
|
<div class="col-12 col-xl-5">
|
|
|
|
@include('invoice.widget.due',['o'=>$ao])
|
2020-07-21 07:41:24 +00:00
|
|
|
|
2023-05-09 10:28:51 +00:00
|
|
|
@include('invoice.widget.list',['o'=>$ao])
|
2020-02-08 11:51:50 +00:00
|
|
|
|
2023-05-09 10:28:51 +00:00
|
|
|
@include('payment.widget.list',['o'=>$ao])
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-06-02 05:35:48 +00:00
|
|
|
|
2023-05-09 10:28:51 +00:00
|
|
|
{{--
|
|
|
|
<!-- @todo this is not working -->
|
|
|
|
<div class="tab-pane" id="tab-nextinvoice">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
@include('u.invoice.widgets.next',['future'=>FALSE])
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
--}}
|
|
|
|
|
|
|
|
<div class="tab-pane" id="tab-futureinvoice">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12 col-xl-9">
|
|
|
|
@include('invoice.widget.next',['future'=>TRUE])
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@canany('reseller','wholesaler')
|
|
|
|
<div class="tab-pane {{ session()->pull('supplier_update') ? 'active' : '' }}" id="tab-supplier" role="tabpanel">
|
|
|
|
@include('user.widget.supplier')
|
|
|
|
</div>
|
|
|
|
@endcanany
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-02-08 11:51:50 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-05-09 10:28:51 +00:00
|
|
|
@endforeach
|
2022-04-21 04:41:26 +00:00
|
|
|
|
2023-05-09 10:28:51 +00:00
|
|
|
@if ($o == $user)
|
2022-08-07 02:17:20 +00:00
|
|
|
@canany('reseller','wholesaler')
|
2023-05-09 10:28:51 +00:00
|
|
|
<div class="tab-pane" id="tab-reseller" role="tabpanel">
|
|
|
|
@include('r.home.widgets.home')
|
2022-08-07 02:17:20 +00:00
|
|
|
</div>
|
|
|
|
@endcanany
|
2023-05-09 10:28:51 +00:00
|
|
|
@endif
|
2017-12-12 05:28:49 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-04-21 04:41:26 +00:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('page-scripts')
|
|
|
|
<script>
|
|
|
|
$(document).ready(function() {
|
|
|
|
$('body')
|
|
|
|
.addClass('sidebar-collapse')
|
|
|
|
.delay(500)
|
|
|
|
.queue(function () {
|
|
|
|
window.dispatchEvent(new Event('resize'));
|
|
|
|
$(this).dequeue();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
@append
|