@extends('apex-layouts.main') @section("title",($model->exists)? "{$model->name} {$model->phone}" :"Add A New Member") @section('header-right') @if($model->exists) @endif @endsection @section('content')

{{ ($model->exists)?'Edit Member':'New Member' }}

@if ($model->exists) @method('PUT') @endif @csrf

Member Info

@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
phone)?'disabled':'')}} required autofocus> Format: 01234567890 @if ($errors->has('phone')) {{ $errors->first('phone') }} @endif