@extends('admin.layouts.app')

@section('content')
@if (session('profile_action_msg'))
<div class="alert alert-success">
    {{ session('profile_action_msg') }}
</div>
@endif

<h2 class="mb-3"> {{awtTrans('Profile')}}</h2>
<form action="{{ route('admin.post.bluck-delete') }}" method="post">
    @csrf
    <div class="card shadow mb-4">
        <div class="card-body">
            <div class="table-responsive">

                <b>{{ awtTrans('Email') }}</b> : {{ auth()->user()->email }} <br>
                <b>{{ awtTrans('Image') }}</b> : <img src="{{ auth()->user()->photo }}" width="50px" alt="">

            </div>
            <br>

            <a href="{{ route('admin.edit.profile') }}" class="btn btn-info btn-block">{{ awtTrans('Edit') }} <i class="fa fa-edit"></i></a>
        </div>
    </div>
</form>
@endsection


@section('scripts')
<script>
    $(document).ready(function() {
        $('#dataTablePosts').DataTable({
            order: [0, 'desc'],
            'language': {
                'url': "{{ app()->getLocale() == 'ar' ? 'https://cdn.datatables.net/plug-ins/1.10.12/i18n/Arabic.json' : 'https://cdn.datatables.net/plug-ins/1.10.12/i18n/English.json' }}",
            },
        });
    });
</script>
@endsection