@extends('layouts.header') @section('content')
| Service Name | Supplier | PC | PC (Net) | Default | @foreach($userGroup as $u){{$u->group_name}} | @endforeach @if(CUtil::apAdmin())Action | @endif @foreach($group->where('imeigroup','<>','') as $g)||||
|---|---|---|---|---|---|---|---|---|---|---|
| {{$g->group_name}} | @foreach($userGroup as $u)@endforeach | |||||||||
| {{$v->id}} @if($v->api_id ==! null)API @elseManual @endif |
status == 'soft_deleted' )style="text-decoration: line-through;" @endif @if(!CUtil::apStaff())contenteditable="true" @endif onBlur="saveToDatabase(this,'service_name','services','{{$v->id}}')" onClick="showEdit(this);"> imeipricing->sale >0) data-badge="{{$v->imeipricing->sale}}" @endif target="_blank">{{$v->service_name}} | @if($v->imeipricing->nhacungcap ==! null) @if (CUtil::issuperadmin()) {{$v->imeipricing->nhacungcap->name}} @else Supplier #{{$v->imeipricing->nhacungcap->id}} @endif @else New @endif | @if($v->api_id ==! null)@if($v->apiserverservices ==! null){{number_format($v->apiserverservices->credits, 2)}}@endif | @else{{ number_format($v->imeipricing->purchasecost, 2)}} | @endif{{number_format($v->purchase_cost, 2)}} | @if($v->purchase_cost == $v->credit) {{number_format($v->credit, 2)}} @elseif($v->purchase_cost > $v->credit) {{number_format($v->credit, 2)}} @else {{ number_format($v->credit, 2) }} @endif | @foreach($userGroup as $u)@foreach($v->clientgroupprice->where('currency',$currenciesSite->config_value)->where('service_type','imei')->where('group_id',$u->id) as $cl) @if(round($v->purchase_cost,2) == round($v->credit + $cl->discount,2)) @if($cachesearch->currency == $exchangeRate->currency_code) {{number_format(($v->credit + $cl->discount)*$exchangeRate->exchange_rate_static)}} @else{{round($v->credit + $cl->discount,2)}}@endif @elseif(round($v->purchase_cost,4) > round($v->credit + $cl->discount,4)) @if($cachesearch->currency == $exchangeRate->currency_code) {{number_format(($v->credit + $cl->discount)*$exchangeRate->exchange_rate_static)}} @else{{round($v->credit + $cl->discount,2)}}@endif @else @if($cachesearch->currency == $exchangeRate->currency_code) {{number_format(($v->credit + $cl->discount)*$exchangeRate->exchange_rate_static)}} @else{{round($v->credit + $cl->discount,2)}}@endif @endif @endforeach | @endforeach @if(!CUtil::apStaff() )@if($v->status == 'active')@endif | @endif | |