SHARE
TWEET

Untitled

a guest Jun 15th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. docs['selfie']
  2. docs['id_card']
  3. docs['bank_card']
  4.      
  5. public function Document(Request $request)
  6.     {
  7.         if ($request->hasFile("docs['selfie']")) {
  8.             return "yes";
  9.         }
  10.         else {
  11.             return "no";
  12.         }
  13.     }
  14.      
  15. {{ html()->form('POST', route('frontend.user.send.document'))->class('form-horizontal')->Attribute('enctype','multipart/form-data')->open() }}
  16. <div class="row">
  17.     <div class="col-md-12">
  18.         <div class="form-group row">
  19.             <label class="col-form-label col-lg-2">id card</label>
  20.             <div class="col-lg-10">
  21.                 <div class="custom-file">
  22.                     <input type="file" class="custom-file-input" id="National_Card" name="docs['id_Card']">
  23.                     <label class="custom-file-label" for="docs">chose file</label>
  24.                 </div>
  25.             </div>
  26.         </div>
  27.     </div>
  28.     <div class="col-md-12">
  29.         <div class="form-group row">
  30.             <label class="col-form-label col-lg-2">bank card</label>
  31.             <div class="col-lg-10">
  32.                 <div class="custom-file">
  33.                     <input type="file" class="custom-file-input" id="Bank_card" name="docs['bank_card']">
  34.                     <label class="custom-file-label" for="Bank_card">chose file</label>
  35.                 </div>
  36.             </div>
  37.         </div>
  38.     </div>
  39.     <div class="col-md-12">
  40.             <div class="form-group row">
  41.                 <label class="col-form-label col-lg-2">selfie</label>
  42.                 <div class="col-lg-8">
  43.                     <div class="custom-file">
  44.                         <input type="file" class="custom-file-input" id="Selfie" name="docs['selfie']">
  45.                         <label class="custom-file-label" for="Selfie">chose file</label>
  46.                     </div>
  47.                 </div>
  48.                 <div class="col-lg-2">
  49.                     <button type="button" class="btn btn-primary"  data-toggle="modal" data-target="#selfie_modal">see example</button>
  50.                 </div>                
  51.             </div>
  52.         </div>
  53.     </div>
  54.     <div class="row">
  55.         <div class="col">
  56.             <div class="form-group mb-0 clearfix">
  57.                 {{ form_submit("send docs" . ' ') }}
  58.             </div><!--form-group-->
  59.         </div><!--col-->
  60.     </div><!--row-->
  61. {{ html()->form()->close() }}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top