osb/resources/views/theme/backend/adminlte/home.blade.php

106 lines
3.5 KiB
PHP
Raw Normal View History

2018-05-20 12:53:14 +00:00
@extends('adminlte::layouts.app')
@section('htmlheader_title')
{{ $o->role }} Home
@endsection
2020-02-05 04:47:24 +00:00
@section('page_title')
{{ $o->name_full }}
@endsection
2020-02-05 04:47:24 +00:00
@section('contentheader_title')
{{ $o->name_full }}
2019-06-02 05:35:48 +00:00
@endsection
@section('contentheader_description')
{{ $o->role }}
@endsection
@section('main-content')
<!-- Our Summary Home Page Boxes -->
2020-02-08 11:51:50 +00:00
<div class="row">
2024-07-05 06:38:31 +00:00
@include('theme.backend.adminlte.account.widget.summary_boxes')
2020-02-08 11:51:50 +00:00
</div>
<div class="card card-light card-tabs">
<div class="card-header p-0 pt-1">
<ul class="nav nav-tabs" id="accounts-tab">
<li class="pt-2 px-3"><h3 class="card-title">Accounts</h3></li>
2024-07-05 12:56:02 +00:00
@foreach($o->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
@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
<div class="card-body">
<div class="tab-content" id="accounts-tab-content">
2024-07-05 12:56:02 +00:00
@foreach($o->accounts as $ao)
<div class="tab-pane fade @if(! $loop->index)show active @endif" id="account_{{ $ao->id }}" aria-labelledby="account_{{ $ao->id }}">
2021-06-29 06:36:34 +00:00
<div class="row">
<div class="col-12">
<div class="card-header bg-white">
<ul class="nav nav-pills">
<li class="nav-item"><a @class(['nav-link','active'=>! session()->has('supplier_update')]) 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>
@canany('reseller','wholesaler')
<li class="nav-item ml-auto">
<a @class(['nav-link','active'=>session()->has('supplier_update')]) href="#tab-supplier" data-toggle="tab">Supplier</a>
</li>
@endcanany
</ul>
</div>
2020-07-21 06:39:23 +00:00
<div class="card-body pl-0 pr-0">
<div class="tab-content">
<div @class(['tab-pane','active'=>! session()->has('supplier_update')]) id="tab-services">
<div class="row">
<div class="col-12 col-xl-7">
2024-07-05 06:38:31 +00:00
@include('theme.backend.adminlte.account.widget.service_active',['o'=>$ao])
</div>
<div class="col-12 col-xl-5">
2024-07-05 06:38:31 +00:00
@include('theme.backend.adminlte.account.widget.invoice_due',['o'=>$ao])
@include('theme.backend.adminlte.account.widget.invoice_past',['o'=>$ao])
</div>
</div>
</div>
<div class="tab-pane" id="tab-futureinvoice">
<div class="row">
<div class="col-12 col-xl-9">
@include('theme.backend.adminlte.invoice.widget.next',['future'=>TRUE])
</div>
</div>
</div>
@canany('reseller','wholesaler')
<div @class(['tab-pane','active'=>session()->pull('supplier_update')]) id="tab-supplier">
@include('theme.backend.adminlte.account.widget.supplier',['o'=>$ao])
</div>
@endcanany
</div>
</div>
2020-02-08 11:51:50 +00:00
</div>
</div>
</div>
@endforeach
2024-07-05 12:56:02 +00:00
@if($o==$user)
2022-08-07 02:17:20 +00:00
@canany('reseller','wholesaler')
<div class="tab-pane" id="tab-reseller">
@include('theme.backend.adminlte.widget.admin.reseller')
2022-08-07 02:17:20 +00:00
</div>
@endcanany
@endif
</div>
</div>
</div>
@endsection