Laravel Blade Template Bootstrap Form Example


  • Blade Form Select Option 

Blade Form Template code for Select.

{{Form::select( 'revenue_var', $revDistrict , (isset($data) && !empty( $data )) ? $data['dist_id'] : ' ', ['class' => 'form-control required', 'tabindex'=>$tabindex++, 'placeholder'=> '----Select District.----']) }}

(isset($data) && !empty( $data )) ? $data['dist_id'] : ' '

The isset() method checks whether a variable is set and declared and is not NULL. isset() function returns true value if the variable exists and is not NULL or it will returns false.

empty() method checks whether variable is empty or not. empty() function return false if variable exists and is not empty, or it will returns true.

Ternary Operator [ ?: ]

( ExpressionA ? ExpressionB : ExpressionC )

(isset($data) && !empty( $data )) ? $data['dist_id'] : '  '


In this ExpressionA is evaluated first. If ExpressionA will be True then ExpressionB will be executed and the result will be returned. Otherwise, if the ExpressionA is false then ExpressionC will be executed and the result will be returned.


  • Blade Form Text Field


{{ Form::text( 'name', (isset($data) && !empty( $data )) ? $data['name'] : '  ', ['class' => 'form-control ', 'tabindex'=>$tabindex++, 'placeholder'=>'Enter Name'] ) }}

Blade Form Template code for Textbox.

  • Blade Form Radio Field


{{ Form::radio('gender', 'MALE ', true , (isset($data) && !empty($data) && $data['gender'] == 'MALE') ? true : false,  array("required")) }}

{{ Form::radio('gender' , 'FEMALE', false , (isset($data) && !empty($data) && $data['gender'] == 'FEMALE')  ? true : false ) }}

Blade Form Template code for Radio


  • Blade Form Checkbox Field


{{ Form::checkbox( 1stArgument, 2ndArgument, 3rdArgument, 4thArgument ) }}

First argument : name
Second argument : value
Third argument : checked or not checked this takes: true or false
Fourth argument : additional attributes (e.g., checkbox css classe)



Direction Sense Reasoning Questions and Answers

Direction Sense Question (Clockwise, Anti-Clockwise)





  1. A man is facing south. He turns 135º in the anti clockwise direction and then 180º in the clockwise direction. Which direction is he facing now? 
    1. A. North-East     
    2. B. North-West      
    3. C. South-East      
    4. D. South-west        Correct Answer
  2.  

    A man is facing North-West. He turn 90º in clockwise directionand then 135º in anti clockwise direction.Which direction is he facing Now?
    1. A. East     
    2. B. West        Correct Answer
    3. C. North      
    4. D. South      
  3.  

    A man is facing toward West and turn through 45º Clockwise, again 180º clockwise and then turns through 270º anti Clockwise.In which direction is he facing Now?
    1. A. West     
    2. B. North-West      
    3. C. South      
    4. D. South-west        Correct Answer
  4.  

    I am facing east. I turn 100º in the clockwise direction and then 145º in the anti clockwise direction. Which direction i am facing now?
    1. A. East     
    2. B. North-east        Correct Answer
    3. C. North      
    4. D. South-west      
  5.  

    A river flows west to east and on the way turns left and goes in semi-circle round a hillock, and then turn left at right angles. In which direction is the river finally flowing?
    1. A. West     
    2. B. East        Correct Answer
    3. C. North      
    4. D. South      
  6.  

    you go north, turn right, then right again and then go to the left. In which direction are you now?
    1. A. North     
    2. B. South      
    3. C. East        Correct Answer
    4. D. West      
  7.  

    I am standing at the centre of a circular field.I go down south to the edge of the field and then turning left I walk along the boundry of the field equal to three-eighths of its length.Then I turn west and go right across the opposite point on the boundry. In which direction am i from the starting point?
    1. A. North-west     
    2. B. North        Correct Answer
    3. C. South-west      
    4. D. West      
  8.  

    Deepak start walking straight toward east. After walking 75 Metre, he turn to the leftand walk 25 meters straight. Again he turns to the left, walk a distance of 40 meters straight, again he turns to the left and walks a distance 25 metres. How far he is from the starting point?
    1. A. 25 Metres     
    2. B. 50 Metres      
    3. C. 115 Metres      
    4. D. 140 Metres      
    5. E. None of these        Correct Answer
  9.  

    Kunals walk 10 km toward north. From there, he walks 6 kilometre towards south. Then, he walks 3 km towards East.How far and in which direction is he with refrence to his starting point?
    1. A. 5 Kilometres West     
    2. B. 5 Kilometres North-east        Correct Answer
    3. C. 7 Kilometres East      
    4. D. 7 Km West      
  10.  

    Rohan walks a distance of 3 km towards North, then turns to his left and walk for 2 km. He again turns left and walk for 3 km. At this point he turns to his left and walk for 3 km. How many kilometres is he from the starting point? 
    1. A. 1 Km       Correct Answer
    2. B. 2 Km      
    3. C. 3 Km      
    4. D. 5 Km      
  11.  

    Manick walked 40 metres towards north, took a left turn and walked 20 metres. He again took a left turn and walked 40 metres. How far and in which direction is he from the starting point?
    1. A. 20 Metres East      
    2. B. 20 Metres North      
    3. C. 20 Metres South      
    4. D. 100 Metres South      
    5. E. None of these        Correct Answer
  12.  

    Namita walked 14 metres toward west, then turns to her right and walks 14 metresand then turns to her left and walk 10 metres. Again turning to her left she walk 14 metres. What is the shortest distance in metresbetween her starting point and the present position?
    1. A. 10     
    2. B. 24        Correct Answer
    3. C. 28      
    4. D. 38      
  13.  

    A man leaves for his officefrom his house. He walks toward east. After moving a distance of 20 metres, he turns south and walk 10 metres. Then he walks 35 metres toward the west and further 5 m toward the North. He then turn toward east and walk 15 m. what is the straight distance ( in metres ) between his initial point and final position? 
    1. A. 0 Metres     
    2. B. 5 Metres        Correct Answer
    3. C. 10 Metres      
    4. D. Cannot be Determined      
    5. E. None of these      
  14.  

    Radha moves toward South-east a distance of 7 km, then she moves toward West and travels a distance of 14 metres. From here, She moves towards North-west a distance of 7 m and finally she moves a distance of 4 m toward East and stood at that point. How far is the starting pointfrom where she stood?
    1. A. 3 Metres     
    2. B. 4 Metres      
    3. C. 10 Metres        Correct Answer
    4. D. 11 Metres      
  15.  

    Gopal starts from his house towards West. After walking a distance of 30 metres, he turned toward right and walked 20 metres. He then turned left and moving a distance of 10 metres, turned to his left againand walked 40 Metres. He now turn to the left and walk 5 Metres. Finally he turn to his left. In which direction is he walking now?
    1. A. North       Correct Answer
    2. B. South      
    3. C. East      
    4. D. South-west      
    5. E. West      
  16.  

    Rat run 20 m toward East and turn to right, runs 10 m and turn to right, runs 9 mand again turns to the left, runs 5 m and then turn to left , runs 12 m and finally turns to left and runs 6 m. Now, which direction is the rat facing?
    1. A. East     
    2. B. West      
    3. C. North        Correct Answer
    4. D. South      
  17.  

    Amit walked 30 metres towards East, took a right turn and walked 40 metres. Then be took a left turn and walked 30 metres. In which direction is he now from the starting point?
    1. A. North-East     
    2. B. East      
    3. C. South-east        Correct Answer
    4. D. South      
    5. E. None of these      
  18.  

    Maya starts at point T, walks straight to point U which is 4 ft away. She turns left at 90º and walks to W which is 4ft away, turns 90º right and goes 3 ft to P, turns 90º right and walks 1 ft to Q, turns left at 90º and goes to V, which is 1 ft away and once again turns 90º right and goes to R, 3ft away. What is the distance between T and R?
    1. A. 4 ft     
    2. B. 5 ft      
    3. C. 7 ft      
    4. D. 8 ft        Correct Answer
  19.  

    Avillager went to meet his uncle in another village situated 5 km away in the North-east direction of his own village. From there he came to meet his father-in-law living in a village sutuated 4 km in the south of his uncle's village. How far away and in what direction is he now?
    1. A. 3 km in the North     
    2. B. 3 km in the East        Correct Answer
    3. C. 4 km in the East      
    4. D. 4 km in the west      
  20.  

    A person starts from a point A and travels 3 km eastwards to B and then turns left and travels thrice that distance to reach C. He again turns left and travels five times the distance he covered between A nd B and reaches his destination D. The shortest distance between the starting point and the destination is 
    1. A. 12 km     
    2. B. 15 km        Correct Answer
    3. C. 16 km      
    4. D. 18 km      
  21.  

    A girl leaves from her home. She first walks 30 metres in North-west direction and then 30 metres in South-west direction. Next, she walks 30 metres in South-east direction. Finally, she turns towards her house. In which direction is she moving?
    1. A. North-east       Correct Answer
    2. B. North-west      
    3. C. South-east      
    4. D. South-west      
    5. E. None of these      
  22.  

    Sanjeev walks 10 metres towards the south. Turning to the left, he walks 20 metres and then moves to his right. After moving a distance of 20 metres, he turns to the right and walks 20 metres. Finally, he turns to the right and moves a distance of 10 metres. How far and in which direction is he from the starting point?
    1. A. 10 metres North     
    2. B. 20 meters South        Correct Answer
    3. C. 20 metres North      
    4. D. 10 meters South      
    5. E. None of these      
  23.  

    Kashish goes 30 meters North, then turns right and walks 40 meters , then again turns right and walks 20 meters, then again turns right and walks 40 meters. How many meters is he from his original position?
    1. A. 0     
    2. B. 10        Correct Answer
    3. C. 20      
    4. D. 40      
    5. E. None of these      
  24.  

    I am facing South, I turn right and walk 20 m. Then i turn right again and walk 10 m. Then i turn left and walk 10 m and then turning right walk 20 m. Then i turn right again and walk 60 m. In whcih direction am i from the starting point?
    1. A. North     
    2. B. North-west      
    3. C. East      
    4. D. North-east        Correct Answer
  25.  

    A man walks 30 meters towards South. Then, turning to his right, he walks 30 meters, then turning to his left, he walks 20 meters. Again, he turns to his left and walks 30 meters. How far is he from his initial position? 
    1. A. 20 meters     
    2. B. 30 meters      
    3. C. 60 meters      
    4. D. 80 meters      
    5. E. None of these        Correct Answer
  26.  

    Rohit walked 25 meters towards South. Then he turned to his left and walked 20 meters. He then turned to his left and walked 25 meters. He again turned to his right and walked 15 meters. At what distance is he from the starting point and in which direction?
    1. A. 35 meters East       Correct Answer
    2. B. 35 meters North      
    3. C. 40 meters East      
    4. D. 60 meters East      
    5. E. None of these      
  27.  

    Starting from a point P, Sachin walked 20 metres toward South. He turned left and walked 30 metres. He then turned left and walked 20 metres. He again turned left and walked 40 metres and reached a point Q. How far and in which direction is the point Q from the point P?
    1. A. 20 Metres West     
    2. B. 10 Metres East      
    3. C. 10 Metres West        Correct Answer
    4. D. 10 Metres North      
    5. E. None of these      
  28.  

    Ramakant Walks northwards. After a while, he turns to his right and a little further to his left. Finally, after walking a distance of 1 Km, He turns to his left again. In which direction he is moving now ?
    1. A. North     
    2. B. South      
    3. C. East      
    4. D. West        Correct Answer
  29.  

    A man walks 1 km toward east and then he turns to south and walk 5 km. Again he turns to East and walks 2 km, after this he turn to North and walks 9 km. No how far is he from his starting point?
    1. A. 3 Km     
    2. B. 4 Km      
    3. C. 5 Km        Correct Answer
    4. D. 7 Km      
  30.  

    Raj Travelled from a point X straight to Y at a distance of 80 Metres. He turned right and walked 50 metres, and again turned right and walked 70 Metres. Finally he turned right and walked 50 metres. How far is he from the starting point? 
    1. A. 10 Metres       Correct Answer
    2. B. 20 Metres      
    3. C. 50 Metres      
    4. D. 70 Metres      
    5. E. None of these      
  31.  

    Laxman went 15 kms to the west from my house, then turned left and walked 20 kms. He then turned East and walked 25 kms and finally turning left overed 20 kms.How far was he from his house?
    1. A. 5 kms     
    2. B. 10 kms        Correct Answer
    3. C. 40 kms      
    4. D. 80 kms      
  32.  

    From his house, Lokesh went 15 kms to the North, Then he turned west and covered 10 kms. Then, he turned South and covered 5 kms. Finally turning to East, he covered 10 kms. In which direction is he from his house?
    1. A. East     
    2. B. West      
    3. C. North        Correct Answer
    4. D. South      
  33.  

    Going 50 m to the South of her house, Radhika turns left and goes another 20 m.Then, turning to the North, she goes 30 m and then starts walking to her house. In which direction is she walking now?
    1. A. North-west       Correct Answer
    2. B. North      
    3. C. South-east      
    4. D. East      
  34.  

    A walks 10 metres in front and 10 meters to the right. Then every time turning to his left, he walks 5,15 and 15 meters respectively. How far is he now from his starting point?
    1. A. 5 meters       Correct Answer
    2. B. 10 meters      
    3. C. 15 metres      
    4. D. 20 metres      
    5. E. 23 metres      
  35.  

    Rasik walks 20 m North. Then he turns right and walks 30 m. Then he turns right and walks 30 m.Then he turns right and walks 35 m. Then he turns left and walks 15 m. Then he again turns left and walks 15 m. In which direction and how many metres away is he from his original position?
    1. A. 15 metres West     
    2. B. 30 metres East      
    3. C. 30 metres West      
    4. D. 45 metres East        Correct Answer
  36.  

    A child is looking for his father. He went 90 metres in the East before turning to his right.He went 20 metres before turning to his right  again to look for his father at his uncle's place 30 metres from this point. His father was not there. From here he went 100 metres to the North before meeting his father in a street. How far did the son meet his father from the starting point?
    1. A. 80 metres     
    2. B. 100 metres        Correct Answer
    3. C. 140 metres      
    4. D. 260 metres      
  37.  

    The door of Aditya's house faces the East. From the back side of his house, he walks straight 50 metres, then turns to the right and walks 50 metres again. Finally, he turns towards left and stops after walking 25 metres. Now, aditya is in which direction from the starting point?
    1. A. South-east     
    2. B. North-east      
    3. C. South-west      
    4. D. North-west        Correct Answer

  38.  


    X and Y start moving towards each other from two places 200 m apart. After walking 60 metre, Y turns left and goes 20 metre, then he turns right and goes 40 m. He then turn right again and come back to the road on which he had started walking. If X and Y walks with the same speed, what is the distance between them now? 
    1. A. 20 Metre     
    2. B. 30 Metre      
    3. C. 40 Metre        Correct Answer
    4. D. 50 Metre      
  39.  

    If A is to the South of B and C is to the east of B, in what direction is A with respect to C ?  
    1. A. North-east     
    2. B. North-west      
    3. C. South-east      
    4. D. South-west        Correct Answer
  40.  

    A is 40 m South-west of B. C is 40 m South-east of B. Then, C is in which direction of A?
    1. A. East       Correct Answer
    2. B. West      
    3. C. Northe-east      
    4. D. South      
  41.  

    There are four town P, Q, R and T. Q is to the South-west of P, R is the east of Q and South-east of P, and T is to the North of R in line with QP. In which direction of P is T located?
    1. A. South-east     
    2. B. North      
    3. C. North-east        Correct Answer
    4. D. East      
  42.  

    Of the five village P, Q, R, S and T situated close to each other, P is to the West of Q, R is to the South of P, T is to the north of Q and S is to the East of T. Then, R is in which direction with respect to S?
    1. A. North-west     
    2. B. South-east      
    3. C. South-west        Correct Answer
    4. D. Data ineadequate      
    5. E. None of these      
  43.  

    P, Q, R, S, T, U, V, W are seating around a round table in the same order, for group discussion at equal distance. Their positions are clockwise. If V sits in the North, then what will be the position of S?
    1. A. East     
    2. B. South-east      
    3. C. South      
    4. D. South-west        Correct Answer
  44.  

    Ravi wants to go to university. He started from his home which is in the East and comes to a crossing. The road to the left ends in a theatre, straight ahead is the hospital. In which direction is the univeristy?
    1. A. North       Correct Answer
    2. B. South      
    3. C. East      
    4. D. West      
  45.  

    Of the six members of a panel sitting in a row, A is to the left of D, but on the right of E. C is on the right of X, but is on the left of B who is to the left of F. Which two members are sitting right in the middle?
    1. A. A and C     
    2. B. C and B      
    3. C. D and B      
    4. D. D and C        Correct Answer
  46.  

    A, B, C and D are playing cards. Aand B are partners. D faces toward North. If A faces toward West, Then who faces towards South?
    1. A. B     
    2. B. C        Correct Answer
    3. C. D      
    4. D. Data inadequate      
  47.  

    P, Q, R and S are playing a game of carrom. P, Q and S, R are partners. S is to the right of R who is facing west. Then, Q is facing 
    1. A. North       Correct Answer
    2. B. South      
    3. C. East      
    4. D. West      
  48.  

    The town of paranda is located on Green Lake. The town of Akram is west of paranda. Tokhada is east of Akram but west of paranda. Kakran is east of Bopri but west of Tokhada and Akram. If they all are in the same district, which town is farthest west?
    1. A. Paranda     
    2. B. Kakran      
    3. C. Akaram      
    4. D. Bopri        Correct Answer

Our Feature Post

There is a tree between houses of A and B If the tree leans on As House

    There is a tree between houses of A and B. If the tree There is a tree between houses of A and B. If the tree leans on A’s House, the t...

Our Popular Post