2024-07-24 04:14:11 +00:00
|
|
|
@use(App\Models\Product)
|
|
|
|
|
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">
|
2024-07-24 05:31:57 +00:00
|
|
|
@if($x=! ($o->suspend_billing || $o->external_billing))
|
2024-07-24 04:14:11 +00:00
|
|
|
<li class="nav-item"><a @class(['nav-link','active'=>! session()->has('service_update')]) href="#pending_items" data-toggle="tab">Pending Items</a></li>
|
2020-04-18 22:33:41 +00:00
|
|
|
@endif
|
2024-07-24 04:14:11 +00:00
|
|
|
|
2024-07-24 05:31:57 +00:00
|
|
|
@if($o->product->hasUsage())
|
2024-07-24 04:14:11 +00:00
|
|
|
<li class="nav-item"><a @class(['nav-link','active'=>! ($x || session()->has('service_update'))]) href="#traffic" data-toggle="tab">Traffic</a></li>
|
2021-02-17 13:22:50 +00:00
|
|
|
@endif
|
|
|
|
|
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>
|
2024-07-24 04:14:11 +00:00
|
|
|
<li class="nav-item"><a @class(['nav-link','active'=>session()->has('service_update')]) 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">
|
2024-07-24 04:14:11 +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>
|
|
|
|
@endforeach
|
|
|
|
{{-- <div class="dropdown-divider"></div> --}}
|
2020-02-06 09:31:43 +00:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
@endcan
|
2024-07-24 04:14:11 +00:00
|
|
|
</div>
|
2019-01-24 09:12:00 +00:00
|
|
|
|
2020-02-05 04:47:24 +00:00
|
|
|
<div class="card-body">
|
|
|
|
<div class="tab-content">
|
2024-07-24 05:31:57 +00:00
|
|
|
@if($x=! ($o->suspend_billing || $o->external_billing))
|
2024-07-24 04:14:11 +00:00
|
|
|
<div @class(['tab-pane','fade','show active'=>! session()->has('service_update')]) id="pending_items">
|
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-24 04:14:11 +00:00
|
|
|
|
2024-07-24 05:31:57 +00:00
|
|
|
@if($o->product->hasUsage())
|
2024-07-24 04:14:11 +00:00
|
|
|
<div @class(['tab-pane','fade','show active'=>! ($x || session()->has('service_update'))]) id="traffic">
|
2024-07-24 05:31:57 +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
|
2024-07-24 04:14:11 +00:00
|
|
|
|
2020-02-18 11:35:20 +00:00
|
|
|
@can('wholesaler')
|
2024-07-24 04:14:11 +00:00
|
|
|
<div class="tab-pane fade" id="billing">
|
2024-07-04 05:03:11 +00:00
|
|
|
@include('theme.backend.adminlte.service.widget.billinghistory',['o'=>$o])
|
|
|
|
</div>
|
2024-07-24 04:14:11 +00:00
|
|
|
|
|
|
|
<div class="tab-pane fade" id="internal">
|
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-24 04:14:11 +00:00
|
|
|
@include('theme.backend.adminlte.service.widget.internal',['o'=>$o,'p'=>new 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
|
|
|
|
2024-07-24 04:14:11 +00:00
|
|
|
<div @class(['tab-pane','fade','show active'=>session()->has('service_update')]) id="update">
|
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>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-12-20 03:25:43 +00:00
|
|
|
@endsection
|