@extends('admin.layouts.index') @section('css') @endsection @section('title') Admin - Profile | CS-Design @endsection @section('content')

@lang('profile')

@if(session()->has('error'))
{{session()->get('error')}}
@endif @if(session()->has('success'))
{{session()->get('success')}}
@endif

@lang('profile')

@if (isset($my_profile))
@if($my_profile->avatar)

{{$my_profile->name}}

image
@else @if (Auth::user()->id=='1')

Nothing here

@else Upload Image Here @endif @endif

@lang('name'):

{{$my_profile->name}}

@lang('about-me'):

{{$my_profile->about_me}}

@lang('phone'):

{{$my_profile->phone_number}}

@lang('email'):

{{$my_profile->email}}

@lang('change-pass')

@if(Auth::user()->id==$my_profile->id) @endif
@endif @if (isset($my_profile_edit)) @if($my_profile_edit->avatar)

{{$my_profile_edit->name}}

image
@else
Upload Image To See It
@endif
@csrf

{{$my_profile_edit->email}}

@endif @if(isset($edit_password))
@if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if(session()->has('success'))
{{session()->get('success')}}
@endif

{{$edit_password->name}}

image
@csrf
@if ($errors->has('current-password')) {{ $errors->first('current-password') }} @endif
@if ($errors->has('new-password')) {{ $errors->first('new-password') }} @endif
@endif
@endsection @section('js') @endsection