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