@extends('layouts.master') @section('content')

{{$status}} Schools

Add School
@foreach($school as $schools) @php $isActive = $schools->status == 1; $isVerified = $schools->expirydate != null; $expired = $schools->expirydate && \Carbon\Carbon::parse($schools->expirydate)->isPast(); @endphp
{{-- Header --}}
{{ $schools->name }} @if($schools->promo) {{ $schools->promo->discount }}% OFF @endif
CEO: {{ $schools->ceo_name }}
{{-- Status --}} @if($status=='active') {{ $isActive ? 'Active' : 'Blocked' }} @endif
{{-- Body --}}
{{-- Contact --}}
{{ $schools->email ?? 'N/A' }}
{{ $schools->cntctnum }}
{{-- Images --}}
Watermark
CEO
{{-- Dates --}}
Buying: {{ \Carbon\Carbon::parse($schools->buyingdate)->format('d M Y') }} Expiry: {{ $schools->expirydate ? \Carbon\Carbon::parse($schools->expirydate)->format('d M Y') : 'Pending' }}
{{-- Verification --}}
{{ $isVerified ? 'Verified' : 'Not Verified' }}
{{-- Promo --}} {{--@if($schools->promo)--}} {{--
--}} {{----}} {{--{{ $schools->promo->name }}--}} {{----}} {{--({{ $schools->promo->discount }}% OFF)--}} {{----}} {{--
--}} {{--@endif--}}
{{-- Footer --}}
@endforeach
{{--Renew modal--}} @endsection