@can('view', $order) @lang('global.show') @endcan @can('update', $order) @if ($order->store_status->title === 'pending') @lang('global.accept_prepare') @endif @if ($order->store_status->title === 'preparing' || $order->store_status->title === 'ready') @if ($order->type === 'delivery' && $order->store_status->title !== 'ready') @lang('global.ready') @endif @lang('global.done') @endif @if (in_array($order->store_status->title, ['pending', 'preparing'])) @lang('global.rejected') @endif @endcan