{{ $index+1 }}
|
{!! $orderModal->order_number !!}
|
{{ $orderModal->created_at->format('Y-m-d') }} |
{!! @$orderModal->user->name !!} |
{!! @$orderModal->user->mobile !!} |
@if (empty($orderModal->publish))
@if (@$orderModal->check)
@if (auth()->user()->ability('Root,Administrator','order-casher'))
@endif
@else
{!! __('X') !!}
@endif
@if (auth()->user()->ability('Root,Administrator','order-casher'))
@endif
@else
@if ($orderModal->publish == 1 )
@elseif ($orderModal->status == 1 && $orderModal->publish == -1)
{!! __('Canceled') !!}
@elseif ($orderModal->status > 1 && $orderModal->publish == -1)
@else
{!! __('Canceled') !!}
@endif
@endif
|
@php
$loop_status = 4;
@endphp
@for ($i=1; $i < $orderModal->status; $i++)
@if ($orderModal->publish == 1 )
|
@elseif ($orderModal->status == $i+1 && $orderModal->publish == -1)
{!! __('Canceled') !!}
|
@else
|
@endif
@endfor
@for ($i=0; $i < 4 - $orderModal->status; $i++)
@if ($i == 0)
@if ($orderModal->publish == 1)
@if (@$orderModal->check)
@if (auth()->user()->ability('Root,Administrator','order-casher'))
@endif
@else
{!! __('X') !!}
@endif
@if (auth()->user()->ability('Root,Administrator','order-casher'))
@endif
@endif
|
@else
|
@endif
@endfor
@if ($orderModal->status > 0)
|
@endif
@endforeach