@extends('layouts.app') @section('title', __('Master Dashboard')) @section('content')
@if(Auth::user()->role == 'master') @include('layouts.master-left-menu') @elseif(Auth::user()->role == 'agent') @include('layouts.agent-left-menu') @endif
@if(Auth::user()->role == 'master') @lang('Agents') / @endif @lang('Schools')
@if (count($schools)>0) @foreach ($schools as $key=>$school) @if($school->country->code=='BD') @php($format = 'd-m-Y h:i A') @else @php($format = 'm-d-Y H:i') @endif @endforeach @else @endif
# @lang('Name') @lang('Email') @lang('Phone') @lang('Location') @lang('Created') @lang('Status')
{{ $key + 1 }} {{ $school->name.'('.$school->short_name.')' }} {{ $school->setting->email }} {{$school->setting->phone ?? $school->setting->telephone}} @if($school->country->code=='BD') {{ getDistrictName($school->district_id) }} @elseif($school->country->code=='US') {{getStateName($school->state_id)}} @else {{$school->city}} @endif {{ date($format,strtotime($school->created_at)) }} {!! $school->status == 1 ? ''.trans('Active: ').date($format,strtotime($school->activeTill)).'':'' .trans('Inactive').'' !!}
  @lang('No Related Data Found.')  
@endsection