Service Movements

@if (($x=$user->client_service_movements())->count()) @foreach ($x as $o) @endforeach
ID Account Name Status Product
{{ $o->sid }} {{ $o->account->name }} {{ $o->name_short }} {{ $o->status }} @switch($o->status) @case ('ORDER-SENT')
(#{{ $o->order_info_reference }}) @break; @case ('PROVISION-PLANNED')
({{ ($xx=$o->date_start) ? $xx->format('Y-m-d') : 'No Date' }}) @break; @case ('CANCEL-PENDING')
({{ ($xx=$o->date_end) ? $xx->format('Y-m-d') : 'No Date' }}) @break; @endswitch
{{ $o->product->name }}
Count {{ $x->count() }}  
@else

No Service Movements

@endif
@section('page-scripts') @css('//cdn.datatables.net/1.10.25/css/dataTables.bootstrap4.min.css','jq-dt-css') @js('//cdn.datatables.net/1.10.25/js/jquery.dataTables.min.js','jq-dt-js') @js('//cdn.datatables.net/1.10.25/js/dataTables.bootstrap4.min.js','jq-dt-bs5-js','jq-dt-js') @js('//cdn.datatables.net/rowgroup/1.1.3/js/dataTables.rowGroup.min.js','jq-dt-rowgroup-js','jq-dt-js') @css('//cdn.datatables.net/rowgroup/1.1.3/css/rowGroup.bootstrap4.min.css','jq-dt-rowgroup-css','jq-dt-jss') @append