@extends('layouts.portal.app') @section('content')
# | Name | Duration | Cost | @if($activeServicePlan->id == 1)Devices | @endifDownload/Upload Limit | Clients | @if(Auth::user()->hasRole('Administrator') || Auth::user()->hasRole('Client'))Actions | @endif
---|---|---|---|---|---|---|---|
{{ $companyServicePlan->ref_no }} | {{ $companyServicePlan->name }} | {{ $companyServicePlan->valid_for }} {{ $companyServicePlan->planValidityType? $companyServicePlan->planValidityType->name: '' }} | Tsh {{ number_format($companyServicePlan->cost, 2) }} | @if($activeServicePlan->id == 1){{ number_format($companyServicePlan->shared_users) }} | @endif@if($companyServicePlan->download_limit != "") {{ $companyServicePlan->download_limit.' '.$companyServicePlan->download_scale }}bps @else - @endif / @if($companyServicePlan->upload_limit != "") {{ $companyServicePlan->upload_limit.' '.$companyServicePlan->upload_scale }}bps @else - @endif | {{ number_format(count($companyServicePlan->companyCustomerServicePlans)) }} | @if(Auth::user()->hasRole('Administrator') || Auth::user()->hasRole('Client'))@if(Auth::user()->hasRole('Administrator') || Auth::user()->can('Administer Company') || Auth::user()->can('Internet-Plans.edit')) @endif @if($companyServicePlan->status == 0 && (Auth::user()->hasRole('Administrator') || Auth::user()->can('Administer Company') || Auth::user()->can('Internet-Plans.activate'))) @elseif($companyServicePlan->status == 1 && (Auth::user()->hasRole('Administrator') || Auth::user()->can('Administer Company') || Auth::user()->can('Internet-Plans.deactivate'))) @endif @if(Auth::user()->hasRole('Administrator') || Auth::user()->can('Administer Company') || Auth::user()->can('Internet-Plans.delete')) @endif | @endif