Make email not required for customer/vendor

This commit is contained in:
Cüneyt Şentürk
2017-12-16 13:43:03 +03:00
parent e033739c09
commit 4afe9c9dd3
19 changed files with 113 additions and 25 deletions

View File

@@ -10,7 +10,7 @@
<div class="box-body">
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }}
{{ Form::textGroup('email', trans('general.email'), 'envelope') }}
{{ Form::textGroup('email', trans('general.email'), 'envelope', []) }}
{{ Form::textGroup('tax_number', trans('general.tax_number'), 'percent', []) }}

View File

@@ -14,7 +14,7 @@
<div class="box-body">
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }}
{{ Form::textGroup('email', trans('general.email'), 'envelope') }}
{{ Form::textGroup('email', trans('general.email'), 'envelope', []) }}
{{ Form::textGroup('tax_number', trans('general.tax_number'), 'percent', []) }}

View File

@@ -43,7 +43,7 @@
@foreach($vendors as $item)
<tr>
<td><a href="{{ url('expenses/vendors/' . $item->id . '/edit') }}">{{ $item->name }}</a></td>
<td class="hidden-xs">{{ $item->email }}</td>
<td class="hidden-xs">{{ !empty($item->email) ? $item->email : 'N/A'}}</td>
<td>{{ $item->phone }}</td>
<td class="hidden-xs">
@if ($item->enabled)