@extends('organizer.layout') @section('content')
{{ __('Edit Profile') }}
    @csrf

    @if (Auth::guard('organizer')->user()->photo != null) ... @else ... @endif
    {{ __('Choose Photo') }}
    @if ($errors->has('photo'))

    {{ $errors->first('photo') }}

    @endif

    {{ __('Image Size 300x300') }}

    @if ($errors->has('email'))

    {{ $errors->first('email') }}

    @endif
    @if ($errors->has('phone'))

    {{ $errors->first('phone') }}

    @endif
    @if ($errors->has('username'))

    {{ $errors->first('username') }}

    @endif
    @if ($errors->has('facebook'))

    {{ $errors->first('facebook') }}

    @endif
    @if ($errors->has('twitter'))

    {{ $errors->first('twitter') }}

    @endif
    @if ($errors->has('linkedin'))

    {{ $errors->first('linkedin') }}

    @endif
    @foreach ($languages as $language)
    @php $organizer_info = App\Models\OrganizerInfo::where('organizer_id', Auth::guard('organizer')->user()->id) ->where('language_id', $language->id) ->first(); @endphp
    @if ($errors->has("$language->code" . '_name'))

    {{ $errors->first("$language->code" . '_name') }}

    @endif
    @php $currLang = $language; @endphp @foreach ($languages as $language) @continue($language->id == $currLang->id)
    @endforeach
    @endforeach
    @endsection