2019-01-24 09:12:00 +00:00
|
|
|
@extends('adminlte::layouts.app')
|
|
|
|
|
|
|
|
@section('htmlheader_title')
|
2020-02-05 04:47:24 +00:00
|
|
|
{{ $o->sid }}
|
|
|
|
@endsection
|
|
|
|
@section('page_title')
|
|
|
|
{{ $o->sid }}
|
2019-01-24 09:12:00 +00:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('contentheader_title')
|
2023-05-09 08:08:31 +00:00
|
|
|
Service: {{ $o->sid }} <strong>{{ $o->product->name }}</strong>
|
2019-01-24 09:12:00 +00:00
|
|
|
@endsection
|
|
|
|
@section('contentheader_description')
|
2022-04-22 00:36:41 +00:00
|
|
|
{{ $o->name }}
|
2019-01-24 09:12:00 +00:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('main-content')
|
2020-02-05 04:47:24 +00:00
|
|
|
<div class="row">
|
|
|
|
<!-- Service Details -->
|
2022-08-01 10:34:10 +00:00
|
|
|
<div class="col-12 col-md-5">
|
2024-07-04 05:03:11 +00:00
|
|
|
@includeIf('theme.backend.adminlte.service.widget.'.$o->product->category.'.details',['o'=>$o->type])
|
|
|
|
@include('theme.backend.adminlte.service.widget.information')
|
2020-02-05 04:47:24 +00:00
|
|
|
</div>
|
|
|
|
|
2022-08-01 10:34:10 +00:00
|
|
|
<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">
|
2021-07-13 02:31:56 +00:00
|
|
|
<ul class="nav nav-pills w-100 p-2">
|
2020-02-06 22:11:02 +00:00
|
|
|
{{--
|
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-02-06 22:11:02 +00:00
|
|
|
--}}
|
2020-04-18 22:33:41 +00:00
|
|
|
@if (! $o->suspend_billing AND ! $o->external_billing)
|
2021-07-13 02:31:56 +00:00
|
|
|
<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
|
2024-07-07 05:02:02 +00:00
|
|
|
@if ($o->product->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>
|
2021-02-17 13:22:50 +00:00
|
|
|
@endif
|
|
|
|
|
2020-02-06 22:11:02 +00:00
|
|
|
{{--
|
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>
|
2020-02-06 22:11:02 +00:00
|
|
|
--}}
|
2020-02-18 11:35:20 +00:00
|
|
|
@can('wholesaler')
|
2022-04-02 07:06:34 +00:00
|
|
|
<li class="nav-item ml-auto"><a class="nav-link" href="#billing" data-toggle="tab">Billing History</a></li>
|
2021-12-24 01:14:01 +00:00
|
|
|
<li class="nav-item"><a class="nav-link" href="#internal" data-toggle="tab">Internal</a></li>
|
2021-07-13 02:31:56 +00:00
|
|
|
<li class="nav-item"><a class="nav-link {{ session()->has('service_update') ? 'active' : '' }}" href="#update" data-toggle="tab">Update</a></li>
|
2020-02-18 11:35:20 +00:00
|
|
|
@endcan
|
2020-02-05 04:47:24 +00:00
|
|
|
</ul>
|
|
|
|
|
2021-09-29 07:11:46 +00:00
|
|
|
@can('progress',$o)
|
2020-02-06 09:31:43 +00:00
|
|
|
<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>
|
|
|
|
|
2020-02-06 09:31:43 +00:00
|
|
|
<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> --}}
|
2020-02-06 09:31:43 +00:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
@endcan
|
2020-02-05 04:47:24 +00:00
|
|
|
</div><!-- /.card-header -->
|
2019-01-24 09:12:00 +00:00
|
|
|
|
2020-02-05 04:47:24 +00:00
|
|
|
<div class="card-body">
|
|
|
|
<div class="tab-content">
|
2020-02-06 22:11:02 +00:00
|
|
|
<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)
|
2021-07-13 02:31:56 +00:00
|
|
|
<div class="tab-pane fade {{ (! session()->has('service_update')) ? 'active show' : '' }}" id="pending_items" role="tabpanel">
|
2024-07-04 05:03:11 +00:00
|
|
|
@include('theme.backend.adminlte.service.widget.invoice')
|
2020-04-18 22:33:41 +00:00
|
|
|
</div>
|
|
|
|
@endif
|
2024-07-07 05:02:02 +00:00
|
|
|
@if ($o->product->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())
|
2024-07-04 05:03:11 +00:00
|
|
|
@include('theme.backend.adminlte.service.widget.'.$o->product->category.'.usagegraph',['o'=>$o->type])
|
2021-03-12 10:08:40 +00:00
|
|
|
@endif
|
2021-02-17 13:22:50 +00:00
|
|
|
</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>
|
2020-02-18 11:35:20 +00:00
|
|
|
@can('wholesaler')
|
2024-07-04 05:03:11 +00:00
|
|
|
<div class="tab-pane fade" id="billing" role="tabpanel">
|
|
|
|
@include('theme.backend.adminlte.service.widget.billinghistory',['o'=>$o])
|
|
|
|
</div>
|
2020-02-18 11:35:20 +00:00
|
|
|
<div class="tab-pane fade" id="internal" role="tabpanel">
|
2023-05-06 03:53:14 +00:00
|
|
|
@if(($x=$o->changes()->where('service__change.active',TRUE)->where('complete',FALSE)->get()->pop()))
|
2024-07-04 05:03:11 +00:00
|
|
|
@include('theme.backend.adminlte.service.widget.internal',['o'=>$o,'p'=>$x])
|
2023-05-06 03:53:14 +00:00
|
|
|
@else
|
2024-07-04 05:03:11 +00:00
|
|
|
@include('theme.backend.adminlte.service.widget.internal',['o'=>$o,'p'=>new \App\Models\Product()])
|
2023-05-06 03:53:14 +00:00
|
|
|
@endif
|
2020-02-18 11:35:20 +00:00
|
|
|
</div>
|
2021-07-13 02:31:56 +00:00
|
|
|
|
2022-08-03 05:28:27 +00:00
|
|
|
<div class="tab-pane fade {{ session()->pull('service_update') ? 'active show' : '' }}" id="update" role="tabpanel">
|
2024-07-04 05:03:11 +00:00
|
|
|
@include('theme.backend.adminlte.service.widget.update')
|
2021-07-13 02:31:56 +00:00
|
|
|
</div>
|
2020-02-18 11:35:20 +00:00
|
|
|
@endcan
|
2020-02-05 04:47:24 +00:00
|
|
|
</div>
|
2019-01-24 09:12:00 +00:00
|
|
|
</div>
|
2020-02-05 04:47:24 +00:00
|
|
|
<!-- /.card -->
|
2019-01-24 09:12:00 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-12-20 03:25:43 +00:00
|
|
|
@endsection
|