@extends("layouts.admin.app") @section("page-title") {{__("Dashboard")}} @endSection @section("page-nav-title")

{{__("maintenance-orders")}}

{{__("all-maintenance-orders")}}

@endsection @section("content") @include("includes.dialog")
@if(isPermissionsAllowed("create-maintenance-orders")) @endif
@if(isPermissionsAllowed("edit-maintenance-order","delete-maintenance-order")) @endif @foreach($orders as $order) @if(isPermissionsAllowed(" edit-maintenance-order","delete-maintenance-order")) @endif @endforeach
# {{__("date")}} {{__("sales-order-number")}} {{__("client-name")}} {{__("team-name")}} {{__("store")}} {{__("is-manual")}} {{__("status")}} {{__("Schedule")}} {{__("Notes")}} {{__("print")}} {{__("maintenance-details")}}{{__("control")}}
{{$order->number}} {{$order->date}} {{$order->sales_order_number}} @if(app()->getLocale() == 'ar') {{$order->customer_ar_name}} @else {{$order->customer_en_name}} @endif {{$order->maintenance_team}} {{$order->warehouse}} {{$order->is_manual}} {{$order->order_status}} @php $maintinanceOrder = \App\Models\MaintenanceSchedule::where("order_id",$order->id)->get(); @endphp id)}}" class="btn btn-primary">{{__("Show Notes")}} id)}}" target="_blank" class="btn btn-primary" style="color:white;"">{{__("Details Orders ")}} id)}}" target="_blank" class="btn btn-primary" style="color:white;"">{{__("maintenance-details")}} @if(isPermissionsAllowed("edit-maintenance-order")) id)}}" class="control-link edit"> @endif @if(isPermissionsAllowed("delete-maintenance-order")) @if($order->delete == 1)
id)}}" method="post" id="delete{{$order->id}}" style="display: none" data-swal-title="{{__("delete-maintenance-order")}}" data-swal-text="{{__("are-you-sure-to-delete-this-maintenance-order?")}}" data-yes="{{__("yes")}}" data-no="{{__("no")}}" data-success-msg="{{__("the-maintenance-order-has-been-deleted-successfully")}}">@csrf @method("delete")
@endif @endif
{{$orders->links("pagination::bootstrap-4")}}
@endsection @section("scripts") @endsection