@extends('header.header') @section("content")
{{__('Vendor Users')}}

{{__('Vendor table')}}


@foreach($users as $user) @php $userData = \App\Models\User::where('id',$user->vendor_id)->first(); $userBranch = \App\Models\Branches_store::where('id',$user->branch_id)->first(); @endphp @if($userData->Type == "vendor") @if($userBranch) @else @endif @endif @endforeach
#ID {{__('First name')}} {{__('Phone number')}} {{__('Branch Name')}} {{__('User Type')}} {{__('Control')}}
{{$user->vendor_id}} {{$userData->name}} {{$userData->phone_number}}{{$userBranch->lang->translate}}{{__("No Branch Data")}}
id)}}" method="post" id="delete{{$userData->id}}" style="display: none" data-swal-title="{{__('Delete Vendor')}}" data-swal-text="{{__('Are Your Sure To Delete This Vendor ?')}}" data-yes="{{__('Yes')}}" data-no="{{__('No')}}" data-success-msg="{{__('the Vendor has been deleted succssfully')}}">@csrf @method("delete")
{!! $users->links() !!}
@endsection @section("js-scripts") @endsection