2018-05-20 22:53:14 +10:00
|
|
|
@extends('adminlte::layouts.app')
|
2017-12-12 16:28:49 +11:00
|
|
|
|
|
|
|
@section('htmlheader_title')
|
2022-04-21 14:41:26 +10:00
|
|
|
{{ $o->role }} Home
|
2017-12-12 16:28:49 +11:00
|
|
|
@endsection
|
2020-02-05 13:47:24 +09:00
|
|
|
@section('page_title')
|
2024-07-07 10:21:27 +10:00
|
|
|
{{ $o->name_full }}
|
2017-12-12 16:28:49 +11:00
|
|
|
@endsection
|
2020-02-05 13:47:24 +09:00
|
|
|
|
|
|
|
@section('contentheader_title')
|
2024-07-07 10:21:27 +10:00
|
|
|
{{ $o->name_full }}
|
2019-06-02 15:35:48 +10:00
|
|
|
@endsection
|
2017-12-12 16:28:49 +11:00
|
|
|
@section('contentheader_description')
|
2022-08-12 14:53:06 +10:00
|
|
|
{{ $o->role }}
|
2017-12-12 16:28:49 +11:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('main-content')
|
2022-04-21 14:41:26 +10:00
|
|
|
<!-- Our Summary Home Page Boxes -->
|
2020-02-08 22:51:50 +11:00
|
|
|
<div class="row">
|
2024-07-05 16:38:31 +10:00
|
|
|
@include('theme.backend.adminlte.account.widget.summary_boxes')
|
2020-02-08 22:51:50 +11:00
|
|
|
</div>
|
2017-12-12 16:28:49 +11:00
|
|
|
|
2023-05-09 19:28:51 +09: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>
|
2024-07-05 22:56:02 +10:00
|
|
|
@foreach($o->accounts as $ao)
|
2023-05-09 19:28:51 +09:00
|
|
|
<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 14:41:26 +10:00
|
|
|
|
2023-05-09 19:28:51 +09: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 16:39:23 +10:00
|
|
|
|
2023-05-09 19:28:51 +09:00
|
|
|
<div class="card-body">
|
|
|
|
<div class="tab-content" id="accounts-tab-content">
|
2024-07-05 22:56:02 +10:00
|
|
|
@foreach($o->accounts as $ao)
|
2023-05-09 19:28:51 +09:00
|
|
|
<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 16:36:34 +10:00
|
|
|
<div class="row">
|
2023-05-09 19:28:51 +09: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>
|
|
|
|
<li class="nav-item"><a class="nav-link" href="#tab-futureinvoice" data-toggle="tab">Future Invoice</a></li>
|
2024-07-04 15:03:11 +10:00
|
|
|
@canany('reseller','wholesaler')
|
2023-05-09 19:28:51 +09:00
|
|
|
<li class="nav-item ml-auto">
|
|
|
|
<a class="nav-link {{ session()->has('supplier_update') ? 'active' : '' }}" href="#tab-supplier" data-toggle="tab">Supplier</a>
|
|
|
|
</li>
|
2024-07-04 15:03:11 +10:00
|
|
|
@endcanany
|
2023-05-09 19:28:51 +09:00
|
|
|
</ul>
|
|
|
|
</div>
|
2020-07-21 16:39:23 +10:00
|
|
|
|
2023-05-09 19:28:51 +09: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">
|
2024-07-05 16:38:31 +10:00
|
|
|
@include('theme.backend.adminlte.account.widget.service_active',['o'=>$ao])
|
2023-05-09 19:28:51 +09:00
|
|
|
</div>
|
2020-07-21 17:41:24 +10:00
|
|
|
|
2023-05-09 19:28:51 +09:00
|
|
|
<div class="col-12 col-xl-5">
|
2024-07-05 16:38:31 +10:00
|
|
|
@include('theme.backend.adminlte.account.widget.invoice_due',['o'=>$ao])
|
|
|
|
@include('theme.backend.adminlte.account.widget.invoice_past',['o'=>$ao])
|
2023-05-09 19:28:51 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tab-pane" id="tab-futureinvoice">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12 col-xl-9">
|
2024-07-04 15:03:11 +10:00
|
|
|
@include('theme.backend.adminlte.invoice.widget.next',['future'=>TRUE])
|
2023-05-09 19:28:51 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@canany('reseller','wholesaler')
|
|
|
|
<div class="tab-pane {{ session()->pull('supplier_update') ? 'active' : '' }}" id="tab-supplier" role="tabpanel">
|
2024-07-04 15:03:11 +10:00
|
|
|
@include('theme.backend.adminlte.user.widget.supplier')
|
2023-05-09 19:28:51 +09:00
|
|
|
</div>
|
|
|
|
@endcanany
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-02-08 22:51:50 +11:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-05-09 19:28:51 +09:00
|
|
|
@endforeach
|
2022-04-21 14:41:26 +10:00
|
|
|
|
2024-07-05 22:56:02 +10:00
|
|
|
@if($o==$user)
|
2022-08-07 12:17:20 +10:00
|
|
|
@canany('reseller','wholesaler')
|
2023-05-09 19:28:51 +09:00
|
|
|
<div class="tab-pane" id="tab-reseller" role="tabpanel">
|
2024-07-06 19:28:14 +10:00
|
|
|
@include('theme.backend.adminlte.widget.admin.reseller')
|
2022-08-07 12:17:20 +10:00
|
|
|
</div>
|
|
|
|
@endcanany
|
2023-05-09 19:28:51 +09:00
|
|
|
@endif
|
2017-12-12 16:28:49 +11:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-07-05 12:04:08 +10:00
|
|
|
@endsection
|