@extends('layouts.app') @section('content')

{{old('fname', $user->fname)}} PROFILE

@include('flash::message')
@csrf
@if (Bouncer::is($user)->an('admin'))

Admin

@else

Member

@endif

{{old('title', $user->title)}}

{{old('fname', $user->fname)}}

{{old('mname', $user->mname)}}

{{old('sname', $user->sname)}}

{{old('province', $user->province)}}

{{old('country', $user->country)}}

{{old('city', $user->city)}}

{{old('stnumber', $user->stnumber)}}

{{old('stname', $user->stname)}}

{{old('pcode', $user->pcode)}}

{{ old('phone', $user->phone) }}

{{ old('mobile', $user->mobile) }}

{{old('email', $user->email)}}

@if($user->diving_member != null)

{{old('diving_member', ($user->diving_member)?'Non diving member':'Diving member' )}}

@else

-

@endif
@if($user->TrainingSession != null)

{{\Carbon\Carbon::parse($user->TrainingSession->start_date)->format('jS F').' - '. \Carbon\Carbon::parse($user->TrainingSession->end_date)->format('jS F') .' '.$user->TrainingSession->location}}

@else

-

@endif

{{ old('bio', $user->bio) }}

@if ($errors->has('bio'))
{{ $errors->first('bio') }}
@endif


Not Adopted


@if($user->une_consent)
@if($user->wreck_check_consent) Wreck Check Consent form @else @endif


@endif
@if (auth()->user() && auth()->user()->isAn('admin'))
@if ($errors->has('course_dates'))
{{ $errors->first('course_dates') }}
@endif
@if ($errors->has('course_location'))
{{ $errors->first('course_location') }}
@endif
@else
@endif






@endsection @section('scripts') @endsection