<div class="card-body">
    <div class="form-group">
        <label for="exampleInputEmail1">Company Name</label>
        <input type="text" class="form-control" id="exampleInputEmail1"
               placeholder="Enter company name" name="name" value="{{isset($company) ? $company->name : old('name')}}">
    </div>
    <div class="form-group">
        <label for="exampleInputPassword1">Company Address</label>
        <input type="text" class="form-control" id="exampleInputPassword1"
               placeholder="Enter company address" name="address"
               value="{{isset($company) ? $company->address : old('address')}}">
    </div>
    <div class="form-group">
        <label for="exampleInputPassword1">Company Commission</label>
        <input type="number" class="form-control" id="exampleInputPassword1"
               placeholder="Enter company commission" name="commission"
               value="{{isset($company) ? $company->commission : old('commission')}}">
    </div>
    <div class="form-group">
        <label for="exampleInputFile">Company Image</label>
        <div class="input-group">
            <div class="custom-file">
                <input type="file" class="custom-file-input" id="exampleInputFile"
                       name="company_image">
                <label class="custom-file-label" for="exampleInputFile">Choose
                    file</label>
            </div>
        </div>
        <br>
        @if (isset($company))
            <img
                src="{{asset('uploads')}}/{{$company->attachment->content}}" class="img-fluid"
                alt="{{$company->name}}" width="200">
        @endif
    </div>
</div>
<div class="card-footer">
    <button type="submit" class="btn btn-primary">Submit</button>
</div>
