@extends('layouts.admin') @section('page-title','') @section('breadcrumb') @include('admin.partials.crumb',[ 'crumbs'=>[ route('admin.dashboard')=>__('default.dashboard'), route('admin.student.index')=>__lang('students'), '#'=>isset($pageTitle)?$pageTitle:'' ]]) @endsection @section('content')
{{ __lang('edit') }}   {{ $row->user->name }} {{ $row->user->last_name }}
@csrf
{{ formElement($form->get('name')) }}

{{ formElementErrors($form->get('name')) }}

{{ formElement($form->get('last_name')) }}

{{ formElementErrors($form->get('last_name')) }}

{{ formElement($form->get('email')) }}

{{ formElementErrors($form->get('email')) }}

{{ formElement($form->get('mobile_number')) }}

{{ formElementErrors($form->get('mobile_number')) }}

{{ formElement($form->get('status')) }}

{{ formElementErrors($form->get('status')) }}

@php if(!empty($row->user->picture) && isUrl($row->user->picture)): @endphp @php elseif(!empty($row->user->picture) && isImage($row->user->picture)): @endphp @php endif; @endphp
@php if(!empty($row->user->picture)): @endphp
{{ __lang('Remove image') }}

@php endif; @endphp {{ formElement($form->get('picture')) }}

{{ formElementErrors($form->get('picture')) }}

@php foreach($fields as $row): @endphp
@php if($row->type == 'checkbox'): @endphp
{{ formElement($form->get('custom_'.$row->id)) }}

{{ formElementErrors($form->get('custom_'.$row->id)) }}

@php elseif($row->type == 'radio'): @endphp
{{ $this->formRadio($form->get('custom_'.$row->id)) }}

{{ formElementErrors($form->get('custom_'.$row->id)) }}

@php else: @endphp
{{ formElement($form->get('custom_'.$row->id)) }}

{{ formElementErrors($form->get('custom_'.$row->id)) }}

@php endif; @endphp
@php endforeach; @endphp
@csrf
@endsection