@extends('layouts.app') @section('content') {{--
--}} {{csrf_field()}}
@php $quota = \DB::table('m_tahun_ajaran') ->selectraw(" max(tahun_ajaran_id) tahun_ajaran_id, (tahun_ajaran_quota - (select count(*) ttl_psb from t_psb where tahun_ajaran_id = (select max(tahun_ajaran_id) from m_tahun_ajaran ) ) ) sisa_quota ")->groupby('tahun_ajaran_id', 'tahun_ajaran_quota')->get(); @endphp
Formulir Pendaftaran

Sisa Kuota : {{$quota[0]->sisa_quota}}



@endsection @section('js') @endsection