{{-- <form action="#" method="POST" enctype="multipart/form-data"> --}}
<form action="{{ route('admin.noteList.createUpdateaPdfList', $notelist->id) }}" method="POST" enctype="multipart/form-data">
    @csrf
    <div class="form-group">
        <label for="name">@lang('Title')</label>
        <input type="text" class="form-control" name="name"
            value="{{ old('name', $notelist->name) }}" required>

            {{-- <input type="text" class="form-control" name="social_media_link"
            value="{{ old('social_media_link', $SocialMedia->social_media_link) }}" required> --}}
    </div>
    <div class="form-group">
        <label for="Note Description'">@lang('Note Description')</label>
        <textarea class="form-control" name="desc" rows="3" value="">{{ old('desc', $notelist->desc) }}</textarea>
    </div>
    <div class="form-group">
        <label for="name">@lang('Pdf file')</label>
        <input type="file" class="form-control" name="file" value="" >
        @if ($notelist->id)
        <div class="my-1">
            <a href="/{{ getFilePath('withdrawMethod') . '/' . $notelist->file }}" target="_blank" ><i
                class="fa fa-file"></i>  {{ $notelist->file }} </a>
        </div>
        @endif
    </div>

    <div class="form-group">
        <label for="status">@lang('Status')</label>
        <select name="status" id="status" class="form-control">
            <option value="{{ Status::ENABLE }}" {{ $notelist->status == Status::ENABLE ? 'selected' : '' }}>
                @lang('Active')</option>
            <option value="{{ Status::DISABLE }}" {{ $notelist->status == Status::DISABLE ? 'selected' : '' }}>
                @lang('Deactive')</option>
        </select>
    </div>
    <div class="form-group">
        @if (!$notelist->id)
            <button type="submit" class="btn btn-primary">@lang('Create')</button>
        @else
            <button type="submit" class="btn btn-primary">@lang('Update')</button>
        @endif
    </div>
</form>



