@extends('layouts.admin.app') @section('title', __('trans.teacher.title')) @section('content')

{{ __('trans.teacher.title') }}

@php $actions = [ ['type' => 'custom', 'html' => '
  • ' . __('trans.teacher.wallet') . '
  • '], ['type' => 'custom', 'html' => '
  • ' . __('trans.teacher.manage_specialties') . '
  • '], ['type' => 'edit', 'url' => url('admin/teachers')], ['type' => 'delete', 'url' => url('admin/teachers')], ]; $nationalityOptions = array_combine($nationalities, $nationalities); $specialtyOptions = $specialties->pluck('name', 'name')->toArray(); $statusOptions = [ '0' => __('trans.teacher.active'), '1' => __('trans.teacher.suspended'), ]; $extra = [ [ 'targets' => 2, 'createdCell' => 'function (td) { $(td).css("direction", "ltr").css("text-align", "start"); }' ], [ 'targets' => 7, 'render' => 'function(data){ return data == 0 ? \'\' + \'' . __('trans.teacher.active') . '\' + \'\' : \'\' + \'' . __('trans.teacher.suspended') . '\' + \'\'; }' ], ]; @endphp
    @endsection