@extends('layouts.app')
@section('title','Company Profile')
@section('crumbs','<b>Company Profile</b>')
@section('content')
<div class="card" style="max-width:980px"><div class="card-h"><h2>Company profile</h2><div class="sp"><a class="btn btn-sm btn-ghost" href="{{ route('settings.prefs') }}">Preferences</a><a class="btn btn-sm btn-ghost" href="{{ route('settings.backup') }}">⬇ DB backup</a></div></div>
<div class="card-b"><form method="POST" action="{{ route('settings.company.update') }}" enctype="multipart/form-data">@csrf @method('PUT')
<div class="frow">
<div class="fld c6"><label>Company name *</label><input type="text" name="name" value="{{ old('name',$c->name) }}" required></div>
<div class="fld c6"><label>Tagline</label><input type="text" name="tagline" value="{{ old('tagline',$c->tagline) }}"></div>
<div class="fld c6"><label>Address</label><input type="text" name="address" value="{{ old('address',$c->address) }}"></div>
<div class="fld c2"><label>City</label><input type="text" name="city" value="{{ old('city',$c->city) }}"></div>
<div class="fld c2"><label>Region</label><input type="text" name="region" value="{{ old('region',$c->region) }}"></div>
<div class="fld c2"><label>Country</label><input type="text" name="country" value="{{ old('country',$c->country) }}"></div>
<div class="fld c3"><label>Phone</label><input type="text" name="phone" value="{{ old('phone',$c->phone) }}"></div>
<div class="fld c3"><label>Phone 2</label><input type="text" name="phone2" value="{{ old('phone2',$c->phone2) }}"></div>
<div class="fld c3"><label>Email</label><input type="email" name="email" value="{{ old('email',$c->email) }}"></div>
<div class="fld c3"><label>Website</label><input type="text" name="website" value="{{ old('website',$c->website) }}"></div>
<div class="fld c3"><label>TIN</label><input type="text" name="tin" value="{{ old('tin',$c->tin) }}"></div>
<div class="fld c3"><label>Currency code</label><input type="text" name="currency_code" value="{{ old('currency_code',$c->currency_code) }}"></div>
<div class="fld c3"><label>Currency symbol</label><input type="text" name="currency_symbol" value="{{ old('currency_symbol',$c->currency_symbol) }}"></div>
<div class="fld c3"><label>Logo</label><input type="file" name="logo"></div>
<div class="fld c6"><label>Default invoice terms</label><textarea name="invoice_terms" rows="3">{{ old('invoice_terms',$c->invoice_terms) }}</textarea></div>
<div class="fld c6"><label>Bank details (on invoices)</label><textarea name="bank_details" rows="3">{{ old('bank_details',$c->bank_details) }}</textarea></div>
</div>
<button class="btn btn-pri">Save profile</button>
</form></div></div>
@endsection
