create.blade.php 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. @extends('layouts.admin.app')
  2. @section('content')
  3. <!-- Main content -->
  4. <section class="content">
  5. @include('layouts.errors-and-messages')
  6. <div class="box">
  7. <form action="{{ route('admin.couriers.store') }}" method="post" class="form">
  8. <div class="box-body">
  9. {{ csrf_field() }}
  10. <div class="form-group">
  11. <label for="name">Name <span class="text-danger">*</span></label>
  12. <input type="text" name="name" id="name" placeholder="Name" class="form-control" value="{{ old('name') }}">
  13. </div>
  14. <div class="form-group">
  15. <label for="description">Description </label>
  16. <textarea name="description" id="description" rows="5" class="form-control" placeholder="Description">{{ old('description') }}</textarea>
  17. </div>
  18. <div class="form-group">
  19. <label for="URL">URL</label>
  20. <div class="input-group">
  21. <span class="input-group-addon">http://</span>
  22. <input type="text" name="url" id="url" placeholder="Link" class="form-control" value="{{ old('url') }}">
  23. </div>
  24. </div>
  25. <div class="form-group">
  26. <label for="is_free">Is Free Delivery? </label>
  27. <select name="is_free" id="is_free" class="form-control">
  28. <option value="0">No</option>
  29. <option value="1" selected="selected">Yes</option>
  30. </select>
  31. </div>
  32. <div class="form-group" style="display: none" id="delivery_cost">
  33. <label for="cost">Delivery Cost <span class="text-danger">*</span></label>
  34. <div class="input-group">
  35. <span class="input-group-addon">{{config('cart.currency')}}</span>
  36. <input class="form-control" type="text" id="cost" name="cost" placeholder="{{config('cart.currency')}}" value="{{old('cost')}}">
  37. </div>
  38. </div>
  39. <div class="form-group">
  40. <label for="status">Status </label>
  41. <select name="status" id="status" class="form-control">
  42. <option value="0">Disable</option>
  43. <option value="1">Enable</option>
  44. </select>
  45. </div>
  46. </div>
  47. <!-- /.box-body -->
  48. <div class="box-footer">
  49. <div class="btn-group">
  50. <a href="{{ route('admin.products.index') }}" class="btn btn-default">Back</a>
  51. <button type="submit" class="btn btn-primary">Create</button>
  52. </div>
  53. </div>
  54. </form>
  55. </div>
  56. <!-- /.box -->
  57. </section>
  58. <!-- /.content -->
  59. @endsection