@extends('layouts.default', [ 'sidebarLight' => true, 'headerMegaMenu' => true, 'sidebarMenu' => 'school.contract', ]) @section('title', Lang::get('school.word.school_management')) @include('includes.require.sweetalert') @include('includes.require.ui-ajax') @push('css') @endpush @push('scripts') @endpush @section('content') @include('template.school.contract.search')
@forelse ($contracts as $contract) @php $manager = $contractManager->where('emm_uid', $contract->manager)->first(); @endphp @empty @endforelse
{{ Lang::get('school.word.id.short') }} {{ Lang::get('school.word.contract_term.short') }} {{ Lang::get('school.word.country.short') }} {{ Lang::get('school.word.study_type.short') }} {{ Lang::get('school.word.contract_title.short') }} {{ Lang::get('school.word.contract_school.short') }} {{ Lang::get('school.word.commission.short') }} {{ Lang::get('school.word.contract_date.short') }} {{ Lang::get('school.word.manager.short') }}
{{ $contract->school_contract_uid }} @if ($contract->viewInfo) {{ $contract->viewInfo->contract_term_status_label }} @else {{ Lang::get('school.word.uncontracted') }} @endif @foreach ($contract->school_type as $school_type) @icon('schoolType', $school_type) @endforeach {{ $contract->title }} @if ($contract->school && $contract->school->count()) {{ $contract->school->first()->name or '' }} @endif @if ($contract->viewInfo && $contract->viewInfo->ec_commission !== null) {{ $contract->viewInfo->ec_commission }} % @endif @if ($contract->viewInfo && ($contract->viewInfo->start_date || $contract->viewInfo->end_date)) {{ $contract->viewInfo->start_date ? $contract->viewInfo->start_date->format('Y.m.d') : '' }}  ~  {{ $contract->viewInfo->end_date ? $contract->viewInfo->end_date->format('Y.m.d') : '' }} @endif {{ $manager ? $manager->emm_name : '' }} @if(_is('super') or $contract->manager==Auth::user()->emm_uid) @endif
{{ Lang::get('template_school.desc.no_data') }}
@include('template.table_pagination', ['resources' => $contracts])
@endsection