Service Movements

@if (($x=$user->client_service_movements())->count()) @foreach ($x as $o) @endforeach
ID Account Name Status Product
{{ $o->id }} {{ $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.19/css/jquery.dataTables.min.css','jq-dt-css','jquery') @js('//cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js','jq-dt-js','jquery') @css('//cdn.datatables.net/responsive/2.2.1/css/responsive.dataTables.min.css','dt-responsive-css','jq-dt-css') @js('//cdn.datatables.net/responsive/2.2.1/js/dataTables.responsive.min.js','dt-responsive-js','jq-dt-js') @css('//cdn.datatables.net/rowgroup/1.0.2/css/rowGroup.dataTables.min.css','dt-rowgroup-css','jq-dt-css') @js('//cdn.datatables.net/rowgroup/1.0.2/js/dataTables.rowGroup.min.js','dt-rowgroup-js','jq-dt-js') @css('/plugin/dataTables/dataTables.bootstrap4.css','dt-bootstrap4-css','jq-dt-css') @js('/plugin/dataTables/dataTables.bootstrap4.js','dt-bootstrap4-js','jq-dt-js') @append