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

{{__("Branches")}}

@endsection @section("content") @include("includes.dialog")
@if(isPermissionsAllowed("control-branches")) @endif
@if(isPermissionsAllowed("control-branches")) @endif @foreach($branches as $key => $branch) @if(isPermissionsAllowed("control-branches")) @endif @endforeach
{{__("ID")}} {{__("Image")}} {{__("Name")}} {{__("Region")}} {{__("Phone Number")}} {{__("Super Branch")}} {{__("Address")}} {{__("Location")}} {{__("Activation")}} {{__("Items")}}{{__("Control")}}
{{$branch->id}} @if($branch->getFirstMediaFile()) @endif {{$branch->getNameAttribute()}} {{$branch->category->getNameAttribute()}} {{$branch->phone_number}}
{{$branch->address}} {{$branch->status ?__("Active") : __("Not Active")}} id)}}" class="btn btn-primary">{{__("Show")}} id)}}" class="control-link edit">
id)}}" method="post" id="delete{{$branch->id}}" style="display: none" data-swal-title="{{__("Delete Branch")}}" data-swal-text="{{__("Are You Sure To Delete This Branch?")}}" data-yes="{{__("Yes")}}" data-no="{{__("No")}}" data-success-msg="{{__("the Branch has been deleted successfully")}}">@csrf @method("delete")
@endsection @section("scripts") {{-- --}} {{-- --}} @endsection