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

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

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

@endsection @section("content")
@if(isPermissionsAllowed("view-maintenance-teams")) @endif
@csrf {{__("Export As Excel")}}
@if(isPermissionsAllowed("edit-maintenance-team","delete-maintenance-team")) @endif @foreach($teams as $team) @if(isPermissionsAllowed("edit-maintenance-team","delete-maintenance-team")) @endif @endforeach
# {{__("team-name")}} {{__("supervisor-name")}} {{__("Team Schedules")}}{{__("control")}}
{{$serial_number++}} {{$team->team_name}} {{$team->supervisor}} @php $teamOrders = \App\Models\Order::where("maintenance_team_id",$team->id)->get() @endphp @if(isPermissionsAllowed("edit-maintenance-team")) id)}}" class="control-link edit"> @endif @if($team->delete == 1) @if(isPermissionsAllowed("delete-maintenance-team"))
id)}}" method="post" id="delete{{$team->id}}" style="display: none" data-swal-title="{{__("delete-maintenance-team")}}" data-swal-text="{{__("are-you-sure-to-delete-this-maintenance-team?")}}" data-yes="{{__("yes")}}" data-no="{{__("no")}}" data-success-msg="{{__("the-maintenance-team-has-been-deleted-successfully")}}">@csrf @method("delete")
@endif @endif
@endsection