67 lines
3.4 KiB
PHP
67 lines
3.4 KiB
PHP
@extends('layouts.admin_master')
|
|
@section('page-title')
|
|
Admin | {{ $page_title }}
|
|
@endsection
|
|
|
|
@section('page-css')
|
|
@endsection
|
|
@section('page-content')
|
|
<div class="row">
|
|
<form action="{{ route('admin.merchant.update', ['id' => $merchant->id]) }}" method="POST">
|
|
<input type="hidden" name="_method" value="PUT">
|
|
<input type="hidden" name="id" value="{{ $merchant->id }}">
|
|
{{ csrf_field() }}
|
|
|
|
<div class="col-md-6">
|
|
<div class="hpanel">
|
|
<div class="panel-heading">Merchant </div>
|
|
<div class="panel-body">
|
|
<div class="col-md-12">
|
|
@include('commons.notifications')
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label" for="fulname">Fullname</label>
|
|
<div class="col-sm-10">
|
|
<input type="text" class="form-control" name="fullname" value="{{ $merchant->fullname }}" id="fullname" placeholder="Full Name of Merchant" required>
|
|
</div>
|
|
</div>
|
|
<div class="hr-line-dashed"></div>
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label" for="phone">Phone</label>
|
|
<div class="col-sm-10">
|
|
<input type="text" name="phone" class="form-control" value="{{ $merchant->phone }}" id="phone" placeholder="Merchant's Phone " required >
|
|
</div>
|
|
</div>
|
|
<div class="hr-line-dashed"></div>
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label" for="language">Language</label>
|
|
<div class="col-sm-10">
|
|
<select class="form-control" name="language" id="language">
|
|
<option value="active" @if($merchant->language == 'chichewa') {{ 'selected' }} @else {{ '' }} @endif>Chichewa</option>
|
|
<option value="pending" @if($merchant->status == 'english') {{ 'selected' }} @else {{ '' }} @endif>English</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="hr-line-dashed"></div>
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label" for="status">Status</label>
|
|
<div class="col-sm-10">
|
|
<select class="form-control" name="status" id="status">
|
|
<option value="active" @if($merchant->status == 'active') {{ 'selected' }} @else {{ '' }} @endif>Active</option>
|
|
<option value="pending" @if($merchant->status == 'pending') {{ 'selected' }} @else {{ '' }} @endif>Pending</option>
|
|
<option value="inactive" @if($merchant->status == 'inactive') {{ 'selected' }} @else {{ '' }} @endif >Inactive</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="hr-line-dashed"></div>
|
|
<div class="form-group">
|
|
<div class="col-sm-12" style="padding-top: 10px;">
|
|
<button class="btn btn-success btn-block" type="submit">Submit</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
@endsection |