@extends('layout.index') @section('title', 'Athletes List') @section('content')
@if ($message = Session::get('success'))
@endif @if ($message = Session::get('error'))
@endif
@if ($Athletes) @if(count($Athletes) != 0) @php $i = 1; $i = $Athletes->perPage() * ($Athletes->currentPage() - 1); @endphp @foreach ($Athletes as $val) @php $i++; @endphp @endforeach @else @endif @endif
Sr.No First Name Last Name Email Mobile Gender View
{{ $i }} {{ $val->firstname }} {{ $val->lastname }} @if (!empty($val->email)) {{ $val->email }} @else - @endif @if (!empty($val->mobile)) {{ $val->mobile }} @else - @endif @if (!empty($val->gender)) {{ $val->gender }} @else - @endif View
No Record Found.
{{ $Athletes->links() }}
@endsection