@extends('dashboard.layouts.app') @section('page-title', trans('contacts.caption.index')) @section('page-menu') @lang('contacts.button.create') @stop @section('breadcrumbs') @stop @section('content')
@if (count($contacts)) @foreach ($contacts as $contact) @endforeach
@lang('global.legend.id') @lang('global.legend.address') @lang('global.and') @lang('global.legend.name') @lang('global.legend.phone') @lang('global.and') @lang('global.legend.fax') @lang('global.legend.email') @lang('global.legend.position') @lang('global.legend.active')
{{ $contact->id }} {!! $contact->translate('address') !!}
{!! $contact->translate('name') !!}
    @foreach ($contact->phone as $number)
  • {{ $number }}
  • @endforeach @if (count($contact->fax))
    @foreach ($contact->fax as $number)
  • {{ $number }}
  • @endforeach @endif
{{ $contact->email }} {{ $contact->position }} @if ($contact->is_active) @endif @lang('global.button.edit') {!! Form::model($contact, [ 'method' => 'DELETE', 'route' => ['dashboard.contacts.destroy', $contact->id], 'class' => 'd-inline', 'onsubmit' => 'confirmDialog("' . trans('contacts.modal.delete', ['id' => $contact->id]) . '", event)' ]) !!} {!! Form::close() !!}
@else
@lang('contacts.alert.notFound')
@endif
@stop