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

105 lines
4.0 KiB
PHP
Raw Normal View History

@extends('adminlte::layouts.app')
@section('htmlheader_title')
2020-02-05 04:47:24 +00:00
{{ $o->sid }}
@endsection
@section('page_title')
{{ $o->sid }}
@endsection
@section('contentheader_title')
Service: {{ $o->sid }} <strong>{{ $o->product->name_detail }}</strong>
@endsection
@section('contentheader_description')
{{ $o->name }}
@endsection
@section('main-content')
2020-02-05 04:47:24 +00:00
<div class="row">
<!-- Service Details -->
<div class="col-12 col-md-5">
@includeIf('service.widget.'.$o->product->category.'.details',['o'=>$o->type])
@include('service.widget.information')
2020-02-05 04:47:24 +00:00
</div>
<div class="col-12 col-md-7">
2020-02-05 04:47:24 +00:00
<div class="card">
<div class="card-header bg-dark d-flex p-0">
<ul class="nav nav-pills w-100 p-2">
{{--
2020-02-05 04:47:24 +00:00
<li class="nav-item"><a class="nav-link active" href="#product" data-toggle="tab">Product</a></li>
<li class="nav-item"><a class="nav-link" href="#traffic" data-toggle="tab">Traffic</a></li>
--}}
2020-04-18 22:33:41 +00:00
@if (! $o->suspend_billing AND ! $o->external_billing)
<li class="nav-item"><a class="nav-link {{ (! session()->has('service_update')) ? 'active' : '' }}" href="#pending_items" data-toggle="tab">Pending Items</a></li>
2020-04-18 22:33:41 +00:00
@endif
@if ($o->hasUsage())
2021-07-13 07:07:47 +00:00
<li class="nav-item"><a class="nav-link {{ (! $o->isBilled() && (! session()->has('service_update'))) ? 'active' : '' }}" href="#traffic" data-toggle="tab">Traffic</a></li>
@endif
{{--
2020-02-05 04:47:24 +00:00
<li class="nav-item"><a class="nav-link" href="#invoices" data-toggle="tab">Invoices</a></li>
<li class="nav-item"><a class="nav-link" href="#emails" data-toggle="tab">Emails</a></li>
--}}
@can('wholesaler')
<li class="nav-item ml-auto"><a class="nav-link" href="#billing" data-toggle="tab">Billing History</a></li>
<li class="nav-item"><a class="nav-link" href="#internal" data-toggle="tab">Internal</a></li>
<li class="nav-item"><a class="nav-link {{ session()->has('service_update') ? 'active' : '' }}" href="#update" data-toggle="tab">Update</a></li>
@endcan
2020-02-05 04:47:24 +00:00
</ul>
2021-09-29 07:11:46 +00:00
@can('progress',$o)
<ul class="nav nav-pills ml-auto p-2">
<li class="nav-item dropdown">
2021-09-29 04:57:25 +00:00
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#">ACTION <span class="caret"></span></a>
<div class="dropdown-menu dropdown-menu-right">
2021-09-29 04:57:25 +00:00
@foreach($o->actions() as $stage => $title)
<a class="dropdown-item" tabindex="-1" href="{{ url('u/service',['id'=>$o->id,'action'=>'change','stage'=>$stage]) }}">{{ $title }}</a>
2020-04-18 22:33:41 +00:00
@endforeach
{{-- <div class="dropdown-divider"></div> --}}
</div>
</li>
</ul>
@endcan
2020-02-05 04:47:24 +00:00
</div><!-- /.card-header -->
2020-02-05 04:47:24 +00:00
<div class="card-body">
<div class="tab-content">
<div class="tab-pane fade" id="product" role="tabpanel">
2020-02-05 04:47:24 +00:00
Product.
</div>
2020-04-18 22:33:41 +00:00
@if (! $o->suspend_billing AND ! $o->external_billing)
<div class="tab-pane fade {{ (! session()->has('service_update')) ? 'active show' : '' }}" id="pending_items" role="tabpanel">
@include('service.widget.invoice')
2020-04-18 22:33:41 +00:00
</div>
@endif
@if ($o->hasUsage())
2021-07-13 07:07:47 +00:00
<div class="tab-pane fade {{ (! $o->isBilled() && (! session()->has('service_update'))) ? 'active show' : '' }}" id="traffic" role="tabpanel">
2021-03-12 10:08:40 +00:00
@if ($o->type->usage(30)->count())
@include('service.widget.'.$o->product->category.'.usagegraph',['o'=>$o->type])
2021-03-12 10:08:40 +00:00
@endif
</div>
@endif
2020-02-05 04:47:24 +00:00
<div class="tab-pane fade" id="invoices" role="tabpanel">
Invoices.
</div>
<div class="tab-pane fade" id="emails" role="tabpanel">
Email.
</div>
@can('wholesaler')
<div class="tab-pane fade" id="internal" role="tabpanel">
2023-05-05 12:05:42 +00:00
@include('service.widget.internal',['o'=>$o,'p'=>new \App\Models\Product()])
</div>
<div class="tab-pane fade {{ session()->pull('service_update') ? 'active show' : '' }}" id="update" role="tabpanel">
@include('service.widget.update')
</div>
@endcan
2020-02-05 04:47:24 +00:00
</div>
</div>
2020-02-05 04:47:24 +00:00
<!-- /.card -->
</div>
</div>
</div>
2021-12-20 03:25:43 +00:00
@endsection