@extends('admin.admin_dashboard') @section('admin')
@foreach ($allvendor as $key=> $item) @endforeach
Sl Image Firstname Surname Email Phone Status Action
{{ $key+1 }} {{ $item->firstname }} {{ $item->surname }} {{ $item->email }} {{ $item->phone_number }} @if($item->status == 1 ) Active @else Deactivated @endif @if (Auth::user()->can('vendor.edit')) Edit @endif @if($item->status == 1 ) @if (Auth::user()->can('vendor.deactivate')) @endif @else @if (Auth::user()->can('vendor.activate')) @endif @endif @if (Auth::user()->can('vendor.delete')) Delete @endif
@endsection