@extends("WarehouseDashboard.layouts.dashboard.app") @section("page-nav-title")

{{__('show collection orders')}}

@endsection @section("content") @include("layouts.main-parts.page-message")
@foreach($colecction as $collect) @php $deliveryDoc = \App\Models\Documentaions::where([["collection_id",$collect->id],["document_type",2]])->exists(); @endphp @if(is_warehouse_manger() && $collect->type != 1) @continue @elseif(is_operator_manger() && $collect->type ==1) @continue @endif @endforeach
{{__("#")}} {{__('Type')}} {{__('Created at')}} {{__('Create Document')}} {{__('Show')}} {{__('export document')}} {{__('cancel-compilation')}}
{{$collect->id}} {{$collect->type == 1 ? __("Warehouse") :__("Operator")}} {{$collect->created_at}} @if(isset($collect->Documents)) @php $document_type=[]@endphp @foreach($collect->Documents as $key => $Document) @php $document_type[]=$Document->document_type; @endphp @endforeach @if(isset($document_type)) @if(!in_array(1,$document_type) ) $collect->id,"type"=>$collect->type,"document_type"=>1])}}"> @endif @endif @if(check_branch($collect->id)) $collect,"Type"=>$collect->type,"document_type"=>2])}}"> $collect, "Type" => $collect->type, "document_type" => 2]) }}"> @endif {{-- {{__("Done")}}--}} @endif $collect->id])}}" class="btn btn-primary" >{{__('Show')}} $collect->id])}}" class="btn btn-primary" target="_blank"> {{__('Pdf')}} $collect->id])}}" class="btn btn-primary">{{__("Export As Excel")}}
$collect->id])}}" id="new" method="post" data-swal-title="{{__('confirm')}}" data-swal-text="{{__('Are Your Sure To Cancel Compilation ?')}}" data-yes="{{__('Yes')}}" data-no="{{__('No')}}" data-success-msg="{{__('the-compilation-has-been-cancelled-successfully')}}"> @csrf
@endsection @section("scripts") @endsection