@extends('admin.layout.app') {{-- makes everything from admin.app appear here --}} @section('heading', 'All Team Members') @section('rightside_button') Add New @endsection @section('main_content')
{{-- Each iteration prints one row () in the table. --}} @foreach ($team_data as $item) {{-- helps numbering 1,2,3 dynamically --}} @endforeach
SL Photo Name Position Status Actions
{{ $loop->iteration }} @if ($item->photo) Team Photo @endif {{ $item->name }} {{ $item->position }} {{ $item->status === 'show' ? 'active' : 'inactive' }} Edit Delete
@endsection