@extends('backEnd.master') @section('title') @lang('admin.phone_call_log') @endsection @section('mainContent')
@if (isset($phone_call_log)) @endif
@if (isset($phone_call_log)) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => ['phone-call_update', @$phone_call_log->id], 'method' => 'PUT', 'enctype' => 'multipart/form-data']) }} @else @if (userPermission('phone-call-store')) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'phone-call-store', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }} @endif @endif

@if (isset($phone_call_log)) @lang('admin.edit_phone_call') @else @lang('admin.add_phone_call') @endif

@if ($errors->has('name')) {{ @$errors->first('name') }} @endif
@if ($errors->has('phone')) {{ @$errors->first('phone') }} @endif
{{ $errors->first('date') }}
{{ $errors->first('follow_up_date') }}
@if ($errors->has('call_duration')) {{ @$errors->first('call_duration') }} @endif
@isset($phone_call_log) @else @endif

@lang('common.type')

@if (isset($phone_call_log))
call_type == 'I' ? 'checked' : '' }} class="common-radio relationButton">

call_type == 'O' ? 'checked' : '' }} class="common-radio relationButton">
@else
@endif
@php $tooltip = ''; if (userPermission('phone-call-store')) { $tooltip = ''; } else { $tooltip = 'You have no permission to add'; } @endphp
{{ Form::close() }}

@lang('admin.phone_call_list')

@lang('common.name') @lang('common.phone') @lang('common.date') @lang('admin.follow_up_date') @lang('admin.call_duration') @lang('common.description') @lang('admin.call_type') @lang('common.actions')
@endsection @include('backEnd.partials.data_table_js') @include('backEnd.partials.date_picker_css_js') @include('backEnd.partials.server_side_datatable') @section('script') @endsection