@extends('layouts.header') @section('content')

Imei Services

Service Group
Service Type
Status
Supplier
Currency

@foreach($userGroup as $u) @endforeach @if(CUtil::apAdmin()) @endif @foreach($group->where('imeigroup','<>','') as $g) @foreach($userGroup as $u) @endforeach @foreach($imeiService as $v) @if($v->imei_service_group_id == $g->id ) @if($v->api_id ==! null) @else @endif @foreach($userGroup as $u) @endforeach @if(!CUtil::apStaff() ) @endif @endif @endforeach @endforeach
Service Name Supplier PC PC (Net) Default{{$u->group_name}}Action
{{$g->group_name}}
{{$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->apiserverservices ==! null){{number_format($v->apiserverservices->credits, 2)}}@endif {{ number_format($v->imeipricing->purchasecost, 2)}} {{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($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
@if($v->status == 'active')@endif
@endsection