@extends('user.layout') @section('content')
{{ __('Push Notification Settings') }}
@csrf
@php $user_id = Auth::user()->id; $filename = 'push_icon_' . $user_id . '.png'; $userIcon = 'assets/front/img/user/' . $filename; $iconUrl = file_exists(public_path($userIcon)) ? asset($userIcon) : asset('assets/front/img/pushnotification_icon.png'); @endphp
...

{{ __('Choose Image') }}
@if ($errors->has('file'))

{{ $errors->first('file') }}

@endif
@endsection