@extends('backend.layout') @section('content') @if(Session::has('success'))
{{ Session::get('success') }} @php Session::forget('success'); @endphp
@endif @if(Session::has('errors'))
{{ 'Có lỗi xảy ra (' . implode(', ', $errors->all(':message')) . ')'}} @php Session::forget('errors'); @endphp
@endif

{{$title ?? ''}}

Trở về danh sách
{{ csrf_field() }}
@php $name = $data->name ?? ''; if (old('name') != '') { $name = old('name'); } @endphp @if ($errors->has('name')) {{ $errors->first('name') }} @endif
@php $email = $data->email ?? ''; if (old('email') != '') { $email = old('email'); } @endphp id != '' ? 'readonly' : ''}} /> @if ($errors->has('email')) {{ $errors->first('email') }} @endif
@if ($errors->has('password')) {{ $errors->first('password') }} @endif

@endsection