+
+ @include('lego::models._includes.indexes.headers')
+ Edit
-
-
- Zip
- Name
- Eligibility
- Last updated
- Edit
-
-
- @foreach($zipCodes as $zipCode)
-
+ @include('lego::models._includes.indexes.header-filters')
+
+
+ @foreach($models as $zipCode)
+
+ @if($this->shouldShowColumn('zip'))
{{ $zipCode->zip }}
+ @endif
+
+ @if($this->shouldShowColumn('name'))
{{ $zipCode->name }}
+ @endif
+
+ @if($this->shouldShowColumn('is_eligible'))
{{ $zipCode->isEligible() ? 'Eligible' : 'Ineligible' }}
+ @endif
+
+ @if($this->shouldShowColumn('updated_at'))
{{ $zipCode->updated_at->toFormattedDateString() }}
-
- Edit
+ align="right">{{ $zipCode->updated_at->toFormattedDateString() }}
-
- @endforeach
-
-
-
- {{ $zipCodes->links() }}
-
-