Browse Source

Added remark on Subscription detail

pull/1/head
Nafies Luthfi 9 years ago
parent
commit
53c5b0bf11
  1. 2
      app/Entities/EloquentRepository.php
  2. 1
      resources/views/subscriptions/partials/subscription-show.blade.php

2
app/Entities/EloquentRepository.php

@ -64,7 +64,7 @@ abstract class EloquentRepository
return $this->storeEloquentModel($data); return $this->storeEloquentModel($data);
} else { } else {
foreach ($data as $key => $value) { foreach ($data as $key => $value) {
if (!$data[$key]) $data[$key] = null;
if ($data[$key] == '') $data[$key] = null;
} }
return $this->storeArray($data); return $this->storeArray($data);
} }

1
resources/views/subscriptions/partials/subscription-show.blade.php

@ -19,6 +19,7 @@
@endif @endif
</td> </td>
</tr> </tr>
<tr><td>{{ trans('subscription.remark') }}</td><td>{!! nl2br($subscription->remark) !!}</td></tr>
</tbody> </tbody>
</table> </table>
<div class="panel-footer"> <div class="panel-footer">

Loading…
Cancel
Save