@extends('template_backend.home') @section('heading', 'Profile') @section('page') @endsection @section('content')
@if (Auth::user()->role == 'Guru')   Ubah Foto'> User profile picture @elseif (Auth::user()->role == 'Siswa')   Ubah Foto'> User profile picture @else User profile picture @endif

{{ Auth::user()->name }}

{{ Auth::user()->role }}

@if (Auth::user()->role == 'Guru') @elseif (Auth::user()->role == 'Siswa') @else @endif Edit Profile

Pengaturan Akun

Ubah Email Edit
Ubah Password Edit

About Me

Email

{{ Auth::user()->email }}


@if (Auth::user()->role == 'Guru') Guru Mapel

{{ Auth::user()->guru(Auth::user()->id_card)->mapel->nama_mapel }}


Kode Jadwal

{{ Auth::user()->guru(Auth::user()->id_card)->kode }}


@elseif (Auth::user()->role == 'Siswa') Tempat Lahir

{{ Auth::user()->siswa(Auth::user()->no_induk)->kelas->nama_kelas }}


@else @endif @if (Auth::user()->role == 'Guru') Tempat Lahir

{{ Auth::user()->guru(Auth::user()->id_card)->tmp_lahir }}


@elseif (Auth::user()->role == 'Siswa') Tempat Lahir

{{ Auth::user()->siswa(Auth::user()->no_induk)->tmp_lahir }}


@else @endif @if (Auth::user()->role == 'Guru') Tanggal Lahir

{{ date('l, d F Y', strtotime(Auth::user()->guru(Auth::user()->id_card)->tgl_lahir)) }}


@elseif (Auth::user()->role == 'Siswa') Tanggal Lahir

{{ date('l, d F Y', strtotime(Auth::user()->siswa(Auth::user()->no_induk)->tgl_lahir)) }}


@else @endif @if (Auth::user()->role == 'Guru') No Telepon

{{ Auth::user()->guru(Auth::user()->id_card)->telp }}

@elseif (Auth::user()->role == 'Siswa') No Telepon

{{ Auth::user()->siswa(Auth::user()->no_induk)->telp }}

@else @endif
@endsection