<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Models\tbl_Member;


class MembersController extends Controller
{
    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        //
    }

    /**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function create()
    {
        //
    }

    /**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    // public function store(Request $request)
    // {
    //     // dd($request);
    //     $request->validate([
    //         'first_name' => 'required',
    //         'middle_name' => 'required',
    //         'last_name' => 'required',
    //         'date_of_birth' => 'required',
    //         'upload_member_photo'  => 'required',
    //         'highest_qualification'  => 'required',
    //         'speciality'  => 'required',
    //         'medical_council_registraion_number'  => 'required',
    //         'address'  => 'required',
    //         'city'  => 'required',
    //         'state'  => 'required',
    //         'postal_code'  => 'required',
    //         'country'  => 'required',
    //         'upload_resident_photo'  => 'required',
    //         'mobile_no'  => 'required',
    //         'alt_mobile_no'  => 'required',
    //         'email'  => 'required'
    //     ]);

    //     $member = new tbl_Member;
    //     $member->first_name = $request->first_name;
    //     $member->middle_name = $request->middle_name;
    //     $member->last_name = $request->last_name;
    //     $member->date_of_birth = $request->date_of_birth;
    //     $member->upload_member_photo = $request->upload_member_photo;
    //     $member->highest_qualification = $request->highest_qualification;
    //     $member->speciality = $request->speciality;
    //     $member->medical_council_registraion_number = $request->medical_council_registraion_number;
    //     $member->address = $request->address;
    //     $member->city = $request->city;
    //     $member->state = $request->state;
    //     $member->postal_code = $request->postal_code;
    //     $member->country = $request->country;
    //     $member->upload_resident_photo = $request->upload_resident_photo;
    //     $member->mobile_no = $request->mobile_no;
    //     $member->alt_mobile_no = $request->alt_mobile_no;
    //     $member->email = $request->email;
    //     $member->save();
    //     return redirect()
    //     ->with('success','Member has been created successfully.');

        
     
        
    // }

    /**
     * Display the specified resource.
     *
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
    public function show($id)
    {
        //
    }

    /**
     * Show the form for editing the specified resource.
     *
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
    public function edit($id)
    {
        //
    }

    /**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
    public function update(Request $request, $id)
    {
        //
    }

    /**
     * Remove the specified resource from storage.
     *
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
    public function destroy($id)
    {
        //
    }
}
