@use(App\Models\Service)

Service Movements

@if(($x=Service::movements($user))->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->start_at) ? $xx->format('Y-m-d') : 'No Date' }}) @break; @case ('CANCEL-PENDING')
({{ ($xx=$o->stop_at) ? $xx->format('Y-m-d') : 'No Date' }}) @break; @endswitch
{{ $o->product->name }}
Count {{ $x->count() }}  
@else

No Service Movements

@endif
@section('page-styles') @css(datatables,bootstrap4|rowgroup) @append @section('page-scripts') @js(datatables,bootstrap4|rowgroup) @append