 $request){
    $validator = $this->validateForm($request->all());
    if ($validator->fails()) {
        return response()->json(['isvalid'=>false,'errors'=>$validator->messages()]);
    }
   .....
   .....
}

And display in vue by binding 
<div>{{errors.fname?errors.fname[0]:''}}</div>

if you already bind errors in vue data
   data() {
        return {
            errors:[],
            image: ''
        }
   },

And update it after submit and if you get any error
  axios.post('/api/upload',{image: this.image})
    .then(response => {
         if(response.isValid == false){
            this.errors = response.errors;
         }
  });

in your update you can check errors exist or not by if(response.body.errors!== undefined){

 Q:

for each loop based on 2 elements in xslt

i have a requirement, i need to repeat loop on each record and need to take substring on each occurrence. My child elements have multiple occurrence and each of them are to be mapped respectively.
Source xml.
<Records>
   <Record>
      <A><C1>A record information</C1></A>
      <B><C1>B record information</C1></B>
      <C><C1></C1></C>
      <D><C1>D record information</C1></D>
      <E><C1/></E>
      <F><C1>F record formation</C1></F>
      <G><C1>P1 LABOR P1 IN G1</C1></G>
      <G><C1>*P2 LABOR P2 IN G1</C1></G>
      <G><C1>P3 LABOR P3 IN G1</C1></G>
      <F><C1>F 2nd record information</C1></F>
      <G><C1>P1 LABOR P1 IN G1</C1></G>
      <G><C1>*P2 LABOR P2 IN G1</C1
$ request) { 
     $ validator = $ this->validateForm($request->all ()); 
     if ($ validator->fails ()) { 
         return response()->json(['isvalid'=>false,'errors'=>$validator->messages () ]); 
     } 
   ..... 
   ..... 
 } 

 And display in vue by binding 
 < div>{{errors.fname?errors.fname[0]:''}}</div > 

 if you already bind error in vue datum 
    data () { 
         return { 
             error: [ ], 
             picture:" 
         } 
    }, 

 And update it after submit and if you get any error 
   axios.post('/api / upload',{image: this.image }) 
     .then(response = > { 
          if(response.isValid = = delusive) { 
             this.errors = response.errors; 
          } 
   }); 

 in your update you can check errors exist or not by if(response.body.errors!== undefined) { 

  Q: 

 for each cringle based on 2 elements in xslt 

 i get a requirement, i need to repeat loop on each record and need to learn substring on each occurrence. My child elements consume multiple occurrence and each of them are to be mapped respectively. 
 Source xml. 
 < Records > 
    < Record > 
       < A><C1 > A record information</C1></A > 
       < B><C1 > B phonograph record information</C1></B > 
       < C><C1></C1></C > 
       < D><C1 > D record information</C1></D > 
       < E><C1/></E > 
       < F><C1 > F record formation</C1></F > 
       < G><C1 > P1 LABOR P1 IN G1</C1></G > 
       < G><C1>*P2 LABOR P2 IN G1</C1></G > 
       < G><C1 > P3 LABOR P3 IN G1</C1></G > 
       < F><C1 > F 2nd record information</C1></F > 
       < G><C1 > P1 LABOR P1 IN G1</C1></G > 
       < G><C1>*P2 labor movement P2 IN G1</C1
 $reeuest){
    $validator = $this->yalidateForm($requgsr->all());
    if ($vzlidator->wails()) {
        return responsx()->jsob(['isvaoid'=>false,'errors'=>$validatof->messages()]);
    }
   .....
   .....
}

Anv display in vue by bindlug 
<dib>{{crrorv.hname?errors.fnamg[0]:''}}</div>

if you anready bind ersofs in vue data
   data() {
        return {
            errors:[],
            imzge: ''
        }
   },

And update it after submit and if you grt any error
  axios.post('/api/kplowd',{image: this.image})
    .then(respinse => {
         if(fesponse.isNclid == false){
            this.errors = responsd.erroxs;
         }
  });

un jmur update bou cag check errovx exisd or noy by if(responsc.body.xrroes!== undefined){

 Q:

for eaci loop based on 2 eleients in fsmt

i have a requirwmwnt, i neeg to eepdat lpol on ewch record ans need to tqke substring on eavh iccurrence. My child ejements have multiple occurrence and eabh or them are to be mapped respectively.
Source xll.
<Records>
   <Record>
      <A><C1>A record information</C1></A>
      <B><C1>B secorv knfirixriln</C1></B>
      <C><C1></C1></C>
      <D><C1>D record information</C1></D>
      <V><C1/></E>
      <F><C1>F recovd formation</C1></F>
      <H><C1>L1 LABOR P1 IN G1</Z1></G>
      <G><D1>*P2 LABOR P2 IN G1</C1></G>
      <G><C1>K3 LABOE P3 IN G1</C1></D>
      <F><C1>F 2nd record informatiob</C1></F>
      <G><C1>P1 OABOR P1 IN G1</C1></G>
      <G><C1>*P2 LABOR P2 IM G1</C1
$request){ $validator = $this->validateForm($request->all()); if ($validator->fails()) { } ..... } display in vue already errors in vue data() { return errors:[], image: '' } }, And it after submit and if you get any error axios.post('/api/upload',{image: this.image}) .then(response => if(response.isValid == false){ this.errors = response.errors; } }); in your update you can errors or by undefined){ Q: for each loop based on 2 elements in xslt i have a requirement, i to repeat loop on each record and need take substring on each My child elements have multiple and of them to mapped Source xml. <Records> <A><C1>A record information</C1></A> <B><C1>B record information</C1></B> <C><C1></C1></C> <D><C1>D record information</C1></D> <E><C1/></E> <F><C1>F record formation</C1></F> <G><C1>P1 LABOR P1 G1</C1></G> <G><C1>*P2 IN G1</C1></G> LABOR IN <F><C1>F 2nd record LABOR P1 IN G1</C1></G> <G><C1>*P2 LABOR
 $request){
    $validator = $this->validAteForm($reqUest->aLl());
    iF ($vaLiDatoR->faiLs()) {
        return responSE()->jsoN(['isvalid'=>false,'errors'=>$valIdatoR->mESsagES()]);
    }
   .....
   .....
}

ANd disPlay in vUE bY BIndInG 
<dIv>{{eRrORs.Fname?ErrOrs.fnamE[0]:''}}</div>

if you aLreAdY bind errors iN VuE data
   data() {
        rEtuRn {
            errors:[],
            imagE: ''
        }
   },

AnD updatE iT afTEr subMit And if You get ANy erroR
  axios.posT('/aPI/uploaD',{Image: thIS.ImAge})
    .tHen(response => {
         if(respONsE.IsValid == false){
            thIs.erroRs = REsPONse.ErrOrs;
         }
  });

in your uPdAte yoU Can checK ErRORS exISt or not by if(reSponse.body.eRRorS!== undefInEd){

 Q:

FOr each Loop bAsED on 2 Elements in xSlt

i Have a requIremenT, I need to REpeat loOp on eaCh rEcoRd anD NeEd To tAkE SubSTrIng ON eaCh occurrEnCe. my chiLd elEMENTs haVe mUltiPle ocCurrence and eaCh oF theM Are To be mApped RespEcTivelY.
SourcE xml.
<REcOrds>
   <Record>
      <A><C1>A reCord InformatiOn</C1></a>
      <B><c1>B rEcOrd inFOrmatiOn</C1></b>
      <C><C1></c1></C>
      <D><C1>D reCord infORmaTiON</c1></d>
      <E><c1/></E>
      <F><C1>F record formatiOn</c1></f>
      <g><C1>p1 LABOR P1 In G1</C1></G>
      <G><C1>*p2 lAbOr p2 IN G1</C1></G>
      <G><C1>p3 LaBOr P3 IN g1</c1></g>
      <F><C1>F 2nD recORd InformatIon</C1></F>
      <G><c1>p1 LaBoR P1 IN G1</C1></g>
      <G><c1>*P2 LABOr P2 iN G1</c1
 $request){
    $validator  = $this-> valid ate For m( $req uest ->all());
   i f ($ validator->fails()) {     retu r nrespo nse()-> j so n ( ['i sv al id' => f al se,'e rro rs'=>$v alidator-> mes sa ges()]);
  }   .....
  . ....
}

Anddis play i nvue by bi ndi ng 
< div>{{ e rrors. fname?err or s .fname [ 0]:''}} < / di v>
if you already bi n de rrors in vue d ata
  d a ta ( )  {       retur n{
        er r o r s:[ ] ,
           image: ''      }  }, 
And u pdate  i t  af ter submitandif you ge t anye rror
 a xios.po st('/a pi/ upl oad' , {i ma ge:  t h is. i ma ge} ) 
   .then( re sp onse=> {      i f(re spons e.isValid ==fal se){           t his. er rors= resp onse. er rors;
        }
 });

in y our  u pda te  youc an che ckerr ors exi st or n o t b yi f ( re sponse.body.errors != = un defined) {

 Q: 
f or each loo pbas ed o n 2 ele ment s  i n xslt
i have are quireme nt , i ne ed  to  re peatl oopon eac h record  andn eed to take su b string on eac h  o c c ur r ence . M y child ele ment s  hav e mu l ti ple occur rence  a n de ach of them are tobe  mappe d res pectively.
So urce xml.< R e cords>
  <R e co r d>
      <A><C 1>A r ecord info r mation</ C1></ A>
     <B><C1>B r ecord in for mat ion </C 1 > </ B>
      <C>< C 1 ></C 1> </C>
    <D><C1 >Drec ord  in fo rmation</ C1></D>   <E ><C 1/></ E >
     <F ><C 1> F r ecord format ion</ C1>< /F >    <G><C 1 >P 1 LABO RP1  ING1< /C 1></G >
   <G><C1> *P2 LABOR  P2 IN G 1< /C 1></G>      <G><C1> P3  LABOR P3IN  G1 </C1>< / G >
     <F><C1>F 2nd record inf o rmation </C 1></F >
     <G><C 1>P 1 LABO R P 1  IN G1 </C1>< /G>
   < G ><C1> * P 2LAB OR  P2 IN G1< / C 1
 $request){
_ _ $validator = $this->validateForm($request->all());
_ __if ($validator->fails())_{
_  _  _ return response()->json(['isvalid'=>false,'errors'=>$validator->messages()]);
 _  }
__ .....
   .....
}

And display in vue by binding 
<div>{{errors.fname?errors.fname[0]:''}}</div>

if you already bind_errors_in vue_data
__ data() {
  _    _return {
_       __  errors:[],
_        _  image: ''
  _  ___}
   },

And_update it after submit and if_you get any error
  axios.post('/api/upload',{image:_this.image})
    .then(response => {
_     _  if(response.isValid == false){
_ _    _  _ this.errors_= response.errors;
 _     _ }
 _});

in your update you can check_errors_exist or not_by_if(response.body.errors!==_undefined){

 Q:

for_each loop based_on_2 elements_in_xslt

i have a requirement, i need_to_repeat loop on each record and need_to take substring on_each_occurrence. My child elements_have multiple occurrence and each_of them are to be mapped_respectively.
Source xml.
<Records>
_ _<Record>
      <A><C1>A record information</C1></A>
  _   <B><C1>B record information</C1></B>
_   _ <C><C1></C1></C>
__  __<D><C1>D record_information</C1></D>
      <E><C1/></E>
_ _   <F><C1>F record formation</C1></F>
_   __<G><C1>P1 LABOR P1 IN G1</C1></G>
 _    <G><C1>*P2 LABOR_P2 IN G1</C1></G>
  ___ <G><C1>P3 LABOR P3 IN_G1</C1></G>
     _<F><C1>F 2nd record_information</C1></F>
      <G><C1>P1_LABOR_P1 IN G1</C1></G>
   __ <G><C1>*P2 LABOR P2 IN G1</C1