<p>Please provide as much information as you can.</p>
<?php 
use Illuminate\Support\Facades\Session;
use talenthub\Repositories\SiteSessions;
use talenthub\Repositories\SportsRepository;
$dataMap = talenthub\TalentCareerStatisticsModels\SwimmingStatistics::$dataMap;
if (count($sportStatistics) == 0) {
    $sportStatistics[0] = new talenthub\TalentCareerStatisticsModels\SwimmingStatistics();
}
$event_type = ["0" => "-- Select Type --"];
foreach (SportsRepository::getSportPositions(Session::get(SiteSessions::USER_SPORT_TYPE)) as $key => $value) {
    $event_type[$value] = $value;
}
?>
<div class="duplicate_content_container form_container">
    <div class="duplicate_this_content carrer_statistics">

        <div class="row">
            <div class="col-xs-11 col-xs-offset-1">
                <table class="table">
                    <caption>Event Detail</caption>
                    <tr>
                        <th width="150px">Event Name</th>
                        <th>Distance</th>
                        <th >Type</th>
                        <th >min</th>
                        <th >sec</th>
                        <th>hun</th>
                        <th >date</th>
                    </tr>
                    <tbody class="form_container">
 /**
  * Mutating Most Played Position value to have index value after retrieving it from database
  * @param $school_type
  */
 public function getclubSchoolMostPlayedPositionAttribute($most_played_position)
 {
     if ($this->getMutatedData) {
         return array_search($most_played_position, SportsRepository::getSportPositions(Session::get(SiteSessions::USER_SPORT_TYPE)));
     }
     return $most_played_position;
 }
 /**
  * Mutating Preferred to index from text from the database
  * @param $position
  */
 public function getPreferredPositionAttribute($position)
 {
     if ($this->getMutatedData) {
         $sportPositions = SportsRepository::getSportPositions(Session::get(SiteSessions::USER_SPORT_TYPE));
         return array_search($position, $sportPositions);
     }
     return ucfirst($position);
 }
 /**
  * --------- Need to implement this logic ------- Logic is that Validate data, if errors then create a session's flash
  * and store all the user data in it and then make changes on the view to reflect it
  *
  * Validating data for CV
  * @param $request
  */
 public function validateCVData($request)
 {
     $rules = [];
     if ($request->has("positions")) {
         foreach ($request->get("positions") as $key => $value) {
             $rules['positions.' . $key] = "in:" . implode(",", array_keys(SportsRepository::getSportPositions(Session::get(SiteSessions::USER_SPORT_TYPE))));
         }
         $rules['preferred_position'] = 'in:' . implode(",", array_keys(SportsRepository::getSportPositions(Session::get(SiteSessions::USER_SPORT_TYPE))));
     }
     $validator = Validator::make($request->all(), $rules);
     if ($validator->fails()) {
         //dd($validator->errors());
     }
     //dd($validator);
 }