@extends('layouts.admin.app')
@section('title', __('trans.teacher.specialties.title') . ' - ' . $teacher->name)
@section('content')
@php
$actions = [
['type' => 'edit', 'url' => url('admin/teachers/' . $teacher->id . '/specialties')],
['type' => 'delete', 'url' => url('admin/teachers/' . $teacher->id . '/specialties')],
];
$extra = [
[
'targets' => 2,
'render' => 'function(data){
if(data == "active") return \'\' + \'' . __('trans.teacher.specialties.status_active') . '\' + \'\';
else if(data == "pending") return \'\' + \'' . __('trans.teacher.specialties.status_pending') . '\' + \'\';
else if(data == "rejected") return \'\' + \'' . __('trans.teacher.specialties.status_rejected') . '\' + \'\';
else return \'\' + \'' . __('trans.teacher.specialties.status_inactive') . '\' + \'\';
}'
],
];
@endphp
@endsection