Orders @can('order:create') @endcan
@if(!$hideFilters)
@error('search') {{ $message }} @enderror
@endif
@if (Session::get('message')) @endif @if($errors->all()) @endif
@if($columns['Order Date']) @endif @if($columns['Season']) @endif @if($columns['PO']) @endif @if($columns['Customer']) @endif @if($columns['Style']) @endif @if($columns['Colourway']) @endif @if($columns['Qty']) @endif @if($columns['Total Qty']) @endif @foreach($orders as $order) @if($order->styles->isEmpty()) @if($columns['Order Date']) @endif @if($columns['Season']) @endif @if($columns['PO']) @endif @if($columns['Customer']) @endif @if($columns['Style']) @endif @if($columns['Colourway']) @endif @if($columns['Qty']) @endif @if($columns['Total Qty']) @endif @endif @foreach($order->styles as $style) @if($columns['Order Date'] && $loop->first) @endif @if($columns['Season'] && $loop->first) @endif @if($columns['PO'] && $loop->first) @endif @if($columns['Customer'] && $loop->first) @endif @if($columns['Style']) @endif @if($columns['Colourway']) @endif @if($columns['Qty']) @endif @if($columns['Total Qty'] && $loop->first) @endif @if($loop->first) @endif @endforeach @endforeach
Order DateSeasonPOCustomerStyleColourwayQtyTotal Qty
{{date("d-M-Y", strtotime($order->order_date))}}{{$order->season}}{{$order->po}}{{$order->customer}}
@can("order:delete") @endcan
{{date("d-M-Y", strtotime($order->order_date))}}{{$order->season}}{{$order->po}}{{$order->customer}}deleted) class="text-danger" style="text-decoration: line-through;" @endif>{{$style->design}} | {{$style->style}} | {{$style->description}} ({{$style->version_name}})deleted) class="text-danger" style="text-decoration: line-through;" @can('order:update') wire:click="restore({{$style->id}})" onclick="confirm('Are you sure you want to restore this line?') || event.stopImmediatePropagation()" @endcan @endif>{{Str::title($style->colourway)}}deleted) class="text-danger" style="text-decoration: line-through;" @endif>{{$style->qty}}{{$order->total_qty}}
{{-- @can('asd') @endcan --}}
{{ $orders->links() }}