File: /var/www/html/punjabcabs/resources/views/admin/fleet/edit.blade.php
@extends('admin.layout.base')
@section('title', 'Update Company ')
@section('content')
<div class="content-area py-1">
<div class="container-fluid">
<div class="row bg-title">
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
<h4 class="page-title">@lang('admin.member.companies')</h4><a href="{{ route('admin.fleet.index') }}" class="btn btn-outline-warning btn-rounded w-min-sm m-l-0-75 waves-effect waves-light">@lang('admin.list_companies')</a>
</div>
<div class="col-lg-6 col-sm-6 col-md-6 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('admin.dashboard') }}">@lang('admin.dashboard')</a></li>
<li class="active">@lang('admin.member.update_company')</li>
</ol>
</div>
</div>
<div class="box box-block bg-white">
<h5>@lang('admin.member.update_company')</h5>
<form class="form-horizontal" action="{{route('admin.fleet.update', $fleet->id )}}" method="POST" enctype="multipart/form-data" role="form">
{{csrf_field()}}
<input type="hidden" name="_method" value="PATCH">
<div class="form-group row">
<label for="name" class="col-xs-2 col-form-label">@lang('admin.member.full_name')</label>
<div class="col-xs-10">
<input class="form-control" type="text" value="{{ $fleet->name }}" name="name" required id="name" placeholder="@lang('admin.member.full_name')">
</div>
</div>
<div class="form-group row">
<label for="company" class="col-xs-2 col-form-label">@lang('admin.member.company_name')</label>
<div class="col-xs-10">
<input class="form-control" type="text" value="{{ $fleet->company }}" name="company" required id="company" placeholder="@lang('admin.member.company_name')">
</div>
</div>
<div class="form-group row">
<label for="logo" class="col-xs-2 col-form-label">@lang('admin.member.company_logo')</label>
<div class="col-xs-10">
@if(isset($fleet->logo))
<img style="height: 90px; margin-bottom: 15px; border-radius:2em;" src="{{img($fleet->logo)}}">
@endif
<input type="file" accept="image/*" name="logo" class="dropify form-control-file" id="logo" aria-describedby="fileHelp">
</div>
</div>
<div class="form-group row">
<label for="mobile" class="col-xs-2 col-form-label">@lang('admin.member.mobile')</label>
<div class="col-xs-10">
<input class="form-control" type="number" value="" name="mobile" required id="mobile" placeholder="@lang('admin.member.mobile')">
</div>
</div>
<div class="form-group row">
<label for="fleet_percentage" class="col-xs-2 col-form-label">@lang('admin.member.commission_percentage')(%)</label>
<div class="col-xs-10">
<input class="form-control" type="number" value="{{ $fleet->fleet_percentage }}" name="fleet_percentage" required id="fleet_percentage" placeholder="@lang('admin.member.commission_percentage')">
</div>
</div>
<div class="form-group row">
<label for="zipcode" class="col-xs-2 col-form-label"></label>
<div class="col-xs-10">
<button type="submit" class="btn btn-success"> <i class="fa fa-check"></i> @lang('admin.member.update_company')</button>
<a href="{{route('admin.fleet.index')}}" class="btn btn-inverse waves-effect waves-light">@lang('admin.member.cancel')</a>
</div>
</div>
</form>
</div>
</div>
</div>
@endsection