@extends('Admin.master_page')
@section('small_title')
{{__("dashboard.menu.sample_activity")}}
@endsection
@section('content')
                <div class="page-content">
                    <div class="container-fluid">

                        <!-- start page title -->
                        <div class="row">
                            <div class="col-12">
                                <div class="page-title-box d-sm-flex align-items-center justify-content-between">
                                    <h4 class="mb-sm-0 font-size-18"> {{__('lable.add')}} </h4>

                                    <div class="page-title-right">
                                        <ol class="breadcrumb m-0">
                                            <li class="breadcrumb-item"><a href="{{route('dashboard.index')}}">Dashboard</a></li>
                                            <li class="breadcrumb-item active"> {{__("dashboard.menu.sample_activity")}} </li>
                                        </ol>
                                    </div>

                                </div>
                            </div>
                            @if(Session::has('message'))
<div class="alert alert-info">{{ Session::get('message') }}</div>

@endif
                        </div>
                        <!-- end page title -->

<div>
	<form method="post" action="{{ route('activities.store') }}" enctype="multipart/form-data">
		@csrf

		<div class="col-lg-12">



		<h6 class="m-0 font-weight-bold text-primary pull-left" >  {{__('lable.video_url')}}</h6>
		<hr>
		<div class="input-group" style="margin-top: 15px;">
			<input type="text"  value="{!! old('url')!!}" name="url" class="form-control" >
			@error('url')
			<span class="alert-danger">{{ $message }}</span>
			@enderror
		</div>
		<br>
        <h6 class="m-0 font-weight-bold text-primary pull-left" >{{__('lable.description')}}</h6>
		<hr>
		<div class="input-group" style="margin-top: 15px;">
            <textarea name="description" style="text-align: right!important" id="summary-ckeditor" cols="20" rows="10" class="form-control">
               {{old('description')}}
            </textarea>
			@error('description')
			<span class="alert-danger">{{ $message }}</span>
			@enderror
		</div>
		<br>
        <h6 class="m-0 font-weight-bold text-primary pull-left" >  {{__('lable.image')}}</h6>
		<hr>
        <div class="fileinput fileinput-new"data-provides="fileinput">
            <div class="fileinput-new img-thumbnail" style="width: 150px; height: 150px;">
                <img src="{{old('image')}} http://via.placeholder.com/"  alt="...">
            </div>
            <div class="fileinput-preview fileinput-exists img-thumbnail" style="max-width: 150px; max-height: 150px;"></div>
            <div class="mt-2">
                <span class="btn btn-outline-secondary btn-file"><span class="fileinput-new">Select Image  </span><span class="fileinput-exists">Edit</span><input type="file" name="image"></span>
                <a href="#" class="btn btn-outline-secondary fileinput-exists"  data-dismiss="fileinput">Delete</a>
            </div>
            @error('image')
			<span class="alert-danger">{{ $message }}</span>
			@enderror
        </div>
		<br>
	</div>
		<input type="submit" value="Save" class=" btn btn-secondary">
	</form>
</div>

</div>
<!-- container-fluid -->
</div>
<!-- End Page-content -->
@endsection




