@extends('layouts.master') @section('title', 'Schools') @section('pagetitle', 'List of Schools') @section('styles') @endsection @section('content')

Schools

All Schools

{{ $allSchoolsCnt }}

Active

{{ $activeSchoolsCnt }}

Inactive

{{ $inactiveSchoolsCnt }}
@if(count($schools) > 0) @foreach($schools as $school) @endforeach @else @endif
Name Contact email Admin name Admin email Status Date added Actions
{{ !empty(data_get($school, 'name')) ? data_get($school, 'name') : "-" }} {{ !empty(data_get($school, 'contact_email')) ? data_get($school, 'contact_email') : "-" }} {{ !empty(data_get($school, 'admin_name')) ? data_get($school, 'admin_name') : "-" }} {{ !empty(data_get($school, 'admin_email')) ? data_get($school, 'admin_email') : "-" }} {{ !empty(data_get($school, 'status')) ? 'Active' : 'Inactive' }} {{ !empty(show_date($school->created_at)) ? show_date($school->created_at) : "-" }}
No schools to show
@if(count($activeschools) > 0) @foreach($activeschools as $school) @endforeach @else @endif
Name Contact email Admin name Admin email Date added Actions
{{ !empty(data_get($school, 'name')) ? data_get($school, 'name') : "-" }} {{ !empty(data_get($school, 'contact_email')) ? data_get($school, 'contact_email') : "-" }} {{ !empty(data_get($school, 'admin_name')) ? data_get($school, 'admin_name') : "-" }} {{ !empty(data_get($school, 'admin_email')) ? data_get($school, 'admin_email') : "-" }} {{ !empty(show_date($school->created_at)) ? show_date($school->created_at) : "-" }}
No schools to show
@if($inactiveSchoolsCnt > 0) @foreach($inactiveschools as $school) @endforeach @else @endif
Name Contact email Admin name Admin email Date added Actions
{{ !empty(data_get($school, 'name')) ? data_get($school, 'name') : "-" }} {{ !empty(data_get($school, 'contact_email')) ? data_get($school, 'contact_email') : "-" }} {{ !empty(data_get($school, 'admin_name')) ? data_get($school, 'admin_name') : "-" }} {{ !empty(data_get($school, 'admin_email')) ? data_get($school, 'admin_email') : "-" }} {{ !empty(show_date($school->created_at)) ? show_date($school->created_at) : "-" }}
No schools to show
close
Close

Add New School

@include('layouts.partials.messages')
@csrf
{!! Form::checkbox('status', 1, '', ['class' => 'switch', 'id' => 'switch-status']) !!}
close
Close

Edit School

@include('layouts.partials.messages')
@method('PUT') @csrf
{!! Form::checkbox('status', 1, '', ['class' => 'switch', 'id' => 'schoolStatus_edit']) !!}
@endsection @section('scripts') @endsection