@extends('dashboard.layouts.master') @section('title', dbTrans('admin.Profile edit page title')) @section('body')
{{ $row->f_name }} {{ $row->l_name }}
{{ $row->job }}
@csrf @method('PATCH')
@php $adminId = $row->id; $currentAdminId = adminAuth('id'); $isOwner = canRole(owner()); $isSelfDelete = $adminId == $currentAdminId; @endphp @if (($isOwner && !$isSelfDelete) || (!$isOwner && $isSelfDelete))
@method('DELETE') @csrf @endif
@php $links = ''; foreach ($portfolio as $port) { if ($links == null && $port != null) { $links .= $port; } } @endphp @if ($links != null)
@method('PATCH') @csrf
@foreach (socialMedia() as $val) @if ($portfolio[$val['name_en']] != null)
{!! $val['icon'] !!}
@endif @endforeach
@endif
@csrf @method('PATCH')
@php $border = ''; if ($admin->email_verified == 0) { $border = 'border-danger'; } @endphp @if ($admin->email_verified == 0)
{{ dbTrans('admin.This Email Not Verified Yet') }} @if ($row->id == adminId()) @endif
@endif
@if (canRole(owner()) && $row->id != adminId())
@csrf @method('PATCH')
@else
@csrf @method('PATCH')
@endif
@csrf
empty
@foreach ($experiences as $exp)
@endforeach
@if ($row->id == adminId())
{{ dbTrans('admin.Security') }}:

{{ dbTrans('admin.Two-factor Authentication') }}

{{ dbTrans('admin.Delete This Account') }}:

{{ dbTrans('admin.Deleting your account completely from the site, this will delete your data as well') }}

@endif @if (canRole(owner()) && $row->id != adminId())
@csrf @method('PATCH')
@foreach ($roles as $role)
@endforeach
@csrf @method('DELETE')
{{ dbTrans('admin.Delete This Account') }} :

{{ dbTrans('admin.Deleting your account completely from the site, this will delete your data as well') }}

@endif
@endsection