@extends('admin.layouts.app')
@section('content')
<div class="row">
@include('admin.layouts.errors')

    <div class="col-lg-6">
        <div class="card">
            <div class="card-body">
                <h4 class="card-title">افزودن کاربر</h4>
                <div>
                    <form action="{{ route('users.store') }}" method="post">
                        @csrf
                        <div class="mb-4">
                            <input class="form-control" name="name" type="text" placeholder="نام">
                        </div>
                        <div class="mb-4">
                            <input class="form-control" name="email" type="email" placeholder="ایمیل">
                        </div>
                        <div class="mb-4">
                            <input class="form-control" name="mobile" type="text" placeholder="موبایل">
                        </div>
                        <div class="custom-control custom-switch mb-2" dir="ltr">
                            <input type="checkbox" class="custom-control-input" id="customSwitch1" name="is_admin" checked="">
                            <label class="custom-control-label" for="customSwitch1">ادمین</label>
                        </div>
                        <button class="btn btn-primary" type="submit">ثبت</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection