@extends('dashboard.layouts.master')

@section('title')
Opet   dashboard
@endsection
<!-- ======= Header ======= -->

<!-- End Header -->
@section('content')
<div class="wrapper">
    @include('dashboard.layouts.nav')
    @include('dashboard.layouts.aside')
   
    <main role="main" class="main-content">
        <div class="container-fluid">
          <div class="row justify-content-center">
            <div class="col-12">
            <form action="{{route('achievements_update')}}" method="post">
            @csrf
                <div class="row">
                    <div class="col-6">
                        <h2 class="page-title">Achievements </h2>
                    </div>
                    <div class="col-6 text-right">
                        <button type="submit" class="fe fe-24 fe-save"></button>
                    </div>
                </div>
              <div class="card shadow mb-4">
              
                <div class="card-body">
                  <div class="row">
                    <div class="col-md-12 row">
                      <div class="form-group  mb-3  col-6">
                        <label for="simpleinput">Title </label>
                        <textarea name="title" id="title" rows="4" type="text" class="form-control" require> {{$info->title}}</textarea>
                      </div>
                      <div class="form-group mb-3 col-6">
                        <label for="simpleinput">Title Ar</label>
                        <textarea name="title_ar" id="title_ar" rows="4" type="text" class="form-control text-right" require> {{$info->title_ar}}</textarea>
                      </div>
                      <div class="row">
                        
                        <div class="form-group mb-3 col-3">
                            <label for="who-are-we"> Happy Client</label>
                            <input type="number" name="happy_client" value="{{$info->happy_client}}" class="form-control" >
                        </div>
                        
                        <div class="form-group mb-3 col-3">
                            <label for="who-are-we">Finished Projects</label>
                            <input type="number" name="finished_projects" value="{{$info->finished_projects}}" class="form-control" >
                        </div>
                        <div class="form-group mb-3 col-3">
                            <label for="who-are-we">Planned Events</label>
                            <input type="number" name="planned_events" value="{{$info->planned_events}}" class="form-control" >
                        </div>
                        <div class="form-group mb-3 col-3">
                            <label for="who-are-we">Rendared Ads </label>
                            <input type="number" name="rendared_ads" value="{{$info->rendared_ads}}" class="form-control" >
                        </div>
                        </div>
                      </div>


                        </div>
                    </div> <!-- /.col -->
                    @if (count($errors) > 0)
                    <ul>
                        @foreach ($errors->all() as $error)
                        <li class="mb-3">
                            <div class="alert alert-danger outline">{{ $error }}</div>
                        </li>
                        @endforeach
                    </ul>
                    @endif

                    @if(Session::has('success'))
                    <div class="alert alert-success outline form-control">{{Session::get('success')}}</div>
                    @endif
                </div>
                  </div>
                </div>
              </div> <!-- / .card -->
               
            </div> <!-- .col-12 -->
          </div> <!-- .row -->
        </div> <!-- .container-fluid -->
       
    </main> <!-- main -->


</div>
@endsection