logo-header-img logo-img
@php $template = \App\Models\ContractTemplate::first(); if (! $template) { $template = new \App\Models\ContractTemplate(); $template->school_watermark = \App\Models\ContractTemplate::$default_water_mark_path; $template->school_logo = \App\Models\ContractTemplate::$default_logo_path; $template->save(); } @endphp
{{-- logo-img--}} logo-img

{{ \App\Models\Corporate::whereHas('schools')->where('active',1)->first()?->corporate_name }}

    @if(Auth::check()) @php $notifications= \App\Models\Notification::select('notifications.*') ->join('notification_users','notification_users.notification_id','notifications.id') ->where('notification_users.user_id',Auth::user()->id) ->whereIn('notifications.channel',['internal','all']) ->where('notifications.internal_text','!=',null) ->where('notification_users.is_read','0')->get(); @endphp
  • @if(count($notifications) > 0){{count($notifications)}} @endif
    • الاشعارات

      {{count($notifications)}} اشعار
    • @foreach($notifications as $notification)

      {!! $notification->internal_text !!}

      @endforeach
    • @if(count($notifications) > 0)
      @csrf
    • @endif
  • @endif
  • @if (Auth::check() && Auth::user()->guardian ) الاب : @endif @if (Auth::check()) {{ Auth::user()->first_name }} @endif @if (Auth::check() && Auth::user()->guardian)
    logo-img
    @php $guardian= Auth::user()->guardian; if (!$guardian->hasWallet(CREDIT_WALLET_SLUG)) { # create wallet if don't have $guardian->createWallet([ 'name' => CREDIT_WALLET, 'slug' => CREDIT_WALLET_SLUG, 'description' => CREDIT_WALLET_DISC, 'meta' => ['color_class' => 'warning'] ]); } $wallets = $guardian->wallets; $balance=0; foreach ($wallets as $wallet){ $balance+=$wallet->balanceFloat; } @endphp {{$balance}} رس
    @endif
    avatar
    ادارة الحساب
    حسابي @if(Auth::check() && Auth::user()->guardian) حركة المحفظة @endif @if(Auth::check()) @if (!Session::has("userLogin")) تسجيل الخروج
    @csrf
    @else تسجيل الخروج
    @csrf
    @endif @else تسجيل الدخول @endif