@extends('admin.layouts.master') @section('title', 'Employee') @section('content')
@include('admin.includes.msg')
@if(!empty($alldata) && $alldata->count()>0) @foreach($alldata as $key=>$val) @endforeach @endif
Sl.No Image Name Email Phone City Visible Action
{{$key+1}} No Image {{ $val->name}} {{ $val->email}} {{ $val->phone}} @if($val->cityId) @php $cityIds = is_array(json_decode($val->cityId)) ? json_decode($val->cityId) : [json_decode($val->cityId)]; $cityNames = []; foreach($cityIds as $cid) { $cityModel = \App\Models\City::find($cid); if($cityModel) $cityNames[] = $cityModel->cityName; } echo implode(', ', $cityNames); @endphp @endif
status==1) checked @endif>
{{ method_field('delete') }} {{----}} {{ csrf_field() }}
@endsection