staff, mno, clients, bug fixes
This commit is contained in:
@@ -52,14 +52,14 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="email">Contact Person</label>
|
||||
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="contact_person">Contact Person</label>
|
||||
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('name') ? 'has-error' : ''}}">
|
||||
{!! Form::text('contact_person', old('contact_person'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter Contact Person' , 'id' => 'contact_person']) !!}
|
||||
{!! $errors->first('contact_person', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="email">Phone</label>
|
||||
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="phone">Phone</label>
|
||||
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('phone') ? 'has-error' : ''}}">
|
||||
{!! Form::text('phone', old('phone'), ['class' => 'form-control', 'placeholder'=>'Enter Phone Number' , 'id' => 'phone']) !!}
|
||||
{!! $errors->first('phone', '<p class="help-block">:message</p>') !!}
|
||||
|
||||
@@ -5,272 +5,330 @@
|
||||
@endif
|
||||
@endsection
|
||||
@section('content')
|
||||
<div class="">
|
||||
<div class="page-title">
|
||||
<div class="title_left" style="width:800px !important;">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{!! url('dashboard') !!}">Dashboard</a></li>
|
||||
<li><a href="{!! url('clients') !!}">Clients</a></li>
|
||||
<li class="active">Update Client Details</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="">
|
||||
<div class="page-title">
|
||||
<div class="title_left" style="width:800px !important;">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{!! url('dashboard') !!}">Dashboard</a></li>
|
||||
<li><a href="{!! url('clients') !!}">Clients</a></li>
|
||||
<li class="active">Update Client Details</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12 col-xs-12">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
Update Client Details
|
||||
@include('commons.notifications')
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
{{-- start of content --}}
|
||||
<div class="x_content">
|
||||
<br>
|
||||
{!! Form::model($client, [
|
||||
'method' => 'PATCH',
|
||||
'url' => ['clients', $client],
|
||||
'class' => 'form-horizontal form-label-left'
|
||||
]) !!}
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<div class="{{ $errors->has('name') ? 'has-error' : ''}}">
|
||||
<label class="" for="name">Name</label>
|
||||
{!! Form::text('name', old('name'), ['class' => 'form-control ', 'placeholder'=>'Enter client name' , 'id' => 'name']) !!}
|
||||
{!! $errors->first('name', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group ">
|
||||
<div class=" {{ $errors->has('auth_user_id') ? 'has-error' : ''}}">
|
||||
<label class="" for="auth_user_id">Account Manager</label>
|
||||
{!! Form::select('auth_user_id', $auth_users ,old('auth_user_id'), ['class' => 'form-control ', 'placeholder'=>'Enter Account Manager ' , 'id' => 'auth_user_id']) !!}
|
||||
{!! $errors->first('auth_user_id', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('contact_person') ? 'has-error' : ''}}">
|
||||
<label class="" for="email">Contact Person</label>
|
||||
{!! Form::text('contact_person', old('contact_person'), ['class' => 'form-control', 'placeholder'=>'Enter Contact Person' , 'id' => 'contact_person']) !!}
|
||||
{!! $errors->first('contact_person', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('phone') ? 'has-error' : ''}}">
|
||||
<label class="" for="email">Phone</label>
|
||||
{!! Form::text('phone', old('phone'), ['class' => 'form-control', 'placeholder'=>'Enter Phone Number' , 'id' => 'phone']) !!}
|
||||
{!! $errors->first('phone', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12 col-xs-12">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
Update Client Details
|
||||
@include('commons.notifications')
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
{{-- start of content --}}
|
||||
<div class="x_content">
|
||||
<br>
|
||||
{!! Form::model($client, [ 'method' => 'PATCH', 'files' => 'true', 'url' => ['clients', $client], 'class' => 'form-horizontal form-label-left']) !!}
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<div class="{{ $errors->has('name') ? 'has-error' : ''}}">
|
||||
<label class="" for="name">Name</label>
|
||||
{!! Form::text('name', old('name'), ['class' => 'form-control ', 'placeholder'=>'Enter client name' , 'id' => 'name']) !!}
|
||||
{!! $errors->first('name', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group ">
|
||||
<div class=" {{ $errors->has('auth_user_id') ? 'has-error' : ''}}">
|
||||
<label class="" for="auth_user_id">Account Manager</label>
|
||||
{!! Form::select('auth_user_id', $auth_users ,old('auth_user_id'), ['class' => 'form-control ', 'placeholder'=>'Enter Account Manager ' , 'id' => 'auth_user_id']) !!}
|
||||
{!! $errors->first('auth_user_id', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('contact_person') ? 'has-error' : ''}}">
|
||||
<label class="" for="email">Contact Person</label>
|
||||
{!! Form::text('contact_person', old('contact_person'), ['class' => 'form-control', 'placeholder'=>'Enter Contact Person' , 'id' => 'contact_person']) !!}
|
||||
{!! $errors->first('contact_person', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('phone') ? 'has-error' : ''}}">
|
||||
<label class="" for="email">Phone</label>
|
||||
{!! Form::text('phone', old('phone'), ['class' => 'form-control', 'placeholder'=>'Enter Phone Number' , 'id' => 'phone']) !!}
|
||||
{!! $errors->first('phone', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('email') ? 'has-error' : ''}}">
|
||||
<label class="" for="email">Email</label>
|
||||
{!! Form::text('email', old('email'), ['class' => 'form-control ', 'placeholder'=>'Enter email' , 'id' => 'email']) !!}
|
||||
{!! $errors->first('email', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('skype_name') ? 'has-error' : ''}}">
|
||||
<label class="" for="skypeName">Skype Name</label>
|
||||
{!! Form::text('skype_name', old('skype_name'), ['class' => 'form-control', 'placeholder'=>'Enter Skype Name' , 'id' => 'skypeName']) !!}
|
||||
{!! $errors->first('skype_name', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('linkedin_name') ? 'has-error' : ''}}">
|
||||
<label class="" for="linkedIn">Linked In</label>
|
||||
{!! Form::text('linkedin_name', old('linkedin_name'), ['class' => 'form-control ', 'placeholder'=>'Enter LinkedIn Name' , 'id' => 'linkedIn']) !!}
|
||||
{!! $errors->first('linkedin_name', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('finance_email') ? 'has-error' : ''}}">
|
||||
<label class="" for="financeEmail">Finance Emails (Multiple) </label>
|
||||
{!! Form::select('finance_email[]', $finance_emails, $old_finance_emails, ['class' => 'form-control financeEmail', 'id' => 'financeEmail', 'multiple' => 'true']) !!}
|
||||
{!! $errors->first('finance_email', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('support_email') ? 'has-error' : ''}}">
|
||||
<label class="" for="supportEmail">Support Emails (Multiple) </label>
|
||||
{!! Form::select('support_emails[]', $support_emails, $old_support_emails, ['class' => 'form-control supportEmail', 'id' => 'supportEmail', 'multiple' => 'true']) !!}
|
||||
{!! $errors->first('support_emails', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('support_phones') ? 'has-error' : ''}}">
|
||||
<label class="" for="supportPhones">Support Phone Numbers (Multiple) </label>
|
||||
{!! Form::select('support_phones[]', $support_phones, $old_support_phones, ['class' => 'form-control supportPhones', 'id' => 'supportPhones', 'multiple' => 'true']) !!}
|
||||
{!! $errors->first('support_phones', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('country') ? 'has-error' : ''}}">
|
||||
<label class="" for="country">Country</label>
|
||||
{!! Form::select('country', $countries, old('country'), ['class' => 'form-control ', 'placeholder'=>'Enter Country ' , 'id' => 'country']) !!}
|
||||
{!! $errors->first('country', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('currency') ? 'has-error' : ''}}">
|
||||
<label class="" for="currency">Currency</label>
|
||||
{!! Form::select('currency', $currency ,old('currency'), ['class' => 'form-control ' , 'id' => 'currency']) !!}
|
||||
{!! $errors->first('currency', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('email') ? 'has-error' : ''}}">
|
||||
<label class="" for="email">Email</label>
|
||||
{!! Form::text('email', old('email'), ['class' => 'form-control ', 'placeholder'=>'Enter email' , 'id' => 'email']) !!}
|
||||
{!! $errors->first('email', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('services') ? 'has-error' : ''}}">
|
||||
<label class="" for="type">Services</label>
|
||||
{!! Form::select('services[]', $service_type, $current_services, ['class' => 'form-control typeServices' , 'id' => 'services', 'multiple'=> 'true']) !!}
|
||||
{!! $errors->first('services', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('name') ? 'has-error' : ''}}">
|
||||
<label class="" for="companyType">Company Type</label>
|
||||
{!! Form::select('company_type', $company_types, old('company_type'), ['class' => 'form-control', 'placeholder'=>'Enter Company Type' , 'id' => 'companyType']) !!}
|
||||
{!! $errors->first('company_type', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="{{ $errors->has('name') ? 'has-error' : ''}}">
|
||||
<label class="" for="industryType">Industry Type</label>
|
||||
{!! Form::select('industry', $industries, old('industry'), ['class' => 'form-control', 'placeholder'=>'Enter Industry Type' , 'id' => 'industryType', 'required' => 'true']) !!}
|
||||
{!! $errors->first('industry', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="" for="contractType">Contract Type</label>
|
||||
<div class=" {{ $errors->has('contract_type') ? 'has-error' : ''}}">
|
||||
{!! Form::select('contract_type', $contract_types, old('contract_type'), ['class' => 'form-control ', 'placeholder'=>'Select Contract type' , 'id' => 'contractType']) !!}
|
||||
{!! $errors->first('contract_type', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="" for="contractValidity">Contract Validity</label>
|
||||
<div class=" {{ $errors->has('name') ? 'has-error' : ''}}">
|
||||
{!! Form::text('contract_validity', old('contract_validity'), ['class' => 'form-control', 'placeholder'=>'Enter Contract Date' , 'id' => 'contractValidity']) !!}
|
||||
{!! $errors->first('contract_validity', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('contract_auto_renew') ? 'has-error' : ''}}">
|
||||
<label class="" for="contractAutoRenew">Contract Auto Renewal</label>
|
||||
{!! Form::select('contract_auto_renew', ['YES' => 'YES','NO' => 'NO'], old('contract_auto_renew'), ['class' => 'form-control ' , 'id' => 'contractAutoRenew' ]) !!}
|
||||
{!! $errors->first('contract_auto_renew', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('connections') ? 'has-error' : ''}}">
|
||||
<label class="" for="connections">Connection</label>
|
||||
{!! Form::select('connections[]', $connections_arr, json_decode($client->connections, true), ['class' => 'form-control ' , 'id' => 'connections', 'multiple' => 'true' ]) !!}
|
||||
{!! $errors->first('connections', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('connections') ? 'has-error' : ''}}">
|
||||
<label class="" for="connections">Message Type</label>
|
||||
{!! Form::select('message_types[]', $message_types_arr, json_decode($client->message_types, true), ['class' => 'form-control ' , 'id' => 'connections', 'multiple' => 'true' ]) !!}
|
||||
{!! $errors->first('connections', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('smpp_username') ? 'has-error' : ''}}">
|
||||
<label class="" for="smppUsername">SMPP Connections Details</label>
|
||||
{!! Form::text('smpp_username', old('smpp_username'), ['class' => 'form-control' , 'id' => 'smppUsername', 'placeholder' => 'SMPP Username']) !!}
|
||||
{!! $errors->first('smpp_username', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('support_skype') ? 'has-error' : ''}}">
|
||||
<label class="" for="rateEmail">Support Skype IDs (Multiple) </label>
|
||||
{!! Form::select('support_skype[]', $support_skype_arr, $old_support_skype_arr, ['class' => 'form-control supportSkype', 'id' => 'supportSkype', 'multiple' => 'true']) !!}
|
||||
{!! $errors->first('support_skype', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('rate_email') ? 'has-error' : ''}}">
|
||||
<label class="" for="rateEmail">Rate Emails (Multiple) </label>
|
||||
{!! Form::select('rate_emails[]', $rate_emails, $old_rate_emails, ['class' => 'form-control rateEmail', 'id' => 'rateEmail', 'multiple' => 'true']) !!}
|
||||
{!! $errors->first('rate_emails', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('skype_name') ? 'has-error' : ''}}">
|
||||
<label class="" for="skypeName">Skype Name</label>
|
||||
{!! Form::text('skype_name', old('skype_name'), ['class' => 'form-control', 'placeholder'=>'Enter Skype Name' , 'id' => 'skypeName']) !!}
|
||||
{!! $errors->first('skype_name', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('payment_mode') ? 'has-error' : ''}}">
|
||||
<label class="" for="payment_mode">Payment Mode</label>
|
||||
{!! Form::select('payment_mode', $payment_type, old('pay_mode'), ['class' => 'form-control' , 'id' => 'payment_mode']) !!}
|
||||
{!! $errors->first('payment_mode', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('sender_ids') ? 'has-error' : ''}}">
|
||||
<label class="" for="senderIds">Requested Sender IDs</label>
|
||||
{!! Form::select('sender_ids[]', $sender_ids, $old_sender_ids, ['class' => 'form-control senderIds' , 'id' => 'senderIds', 'multiple' => 'true' ]) !!}
|
||||
{!! $errors->first('sender_ids', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('how_we_got_client') ? 'has-error' : ''}}">
|
||||
<label class="" for="howWeGotClient">How We got Client</label>
|
||||
{!! Form::select('how_we_got_client', $how_we_got_clients_arr, old('how_we_got_client'), ['class' => 'form-control' , 'id' => 'howWeGotClient' ]) !!}
|
||||
{!! $errors->first('how_we_got_client', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('how_we_got_client_other') ? 'has-error' : ''}}">
|
||||
<label class="" for="smppUsername">Other</label>
|
||||
{!! Form::text('how_we_got_client_other', null, ['class' => 'form-control' , 'id' => 'howWeGotClientOther', 'placeholder' => 'Specify how we got the client']) !!}
|
||||
{!! $errors->first('how_we_got_client_other', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('notes') ? 'has-error' : ''}}">
|
||||
<label class="" for="clientNotes">Notes</label>
|
||||
{!! Form::textarea('notes', old('notes'), ['class' => 'form-control ', 'placeholder'=>'Enter additional information here', 'rows' => '5', 'id' => 'clientNotes']) !!}
|
||||
{!! $errors->first('notes', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Status *:</label>
|
||||
<div class="bg-<?php echo $status_bg; ?> " style="border-radius: 5px; border: 1px solid black; padding: 10px;">
|
||||
<p >
|
||||
Live:
|
||||
<input type="radio" class="flat" name="status" id="statusLive" value="Live" <?php echo ($client->status == 'Live') ? "checked" : ""; ?> />
|
||||
</p>
|
||||
<p>
|
||||
Prospective:
|
||||
<input type="radio" class="flat" name="status" id="statusProspect" value="Prospective" <?php echo ($client->status == 'Prospective') ? "checked" : ""; ?> />
|
||||
</p>
|
||||
<p>
|
||||
Inactive
|
||||
<input type="radio" class="flat" name="status" id="statusInactive" value="Inactive" <?php echo ($client->status == 'Inactive') ? "checked" : ""; ?> />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('linkedin_name') ? 'has-error' : ''}}">
|
||||
<label class="" for="linkedIn">Linked In</label>
|
||||
{!! Form::text('linkedin_name', old('linkedin_name'), ['class' => 'form-control ', 'placeholder'=>'Enter LinkedIn Name' , 'id' => 'linkedIn']) !!}
|
||||
{!! $errors->first('linkedin_name', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('finance_email') ? 'has-error' : ''}}">
|
||||
<label class="" for="financeEmail">Finance Emails (Multiple) </label>
|
||||
{!! Form::select('finance_email[]', $finance_emails, $old_finance_emails, ['class' => 'form-control financeEmail', 'id' => 'financeEmail', 'multiple' => 'true']) !!}
|
||||
{!! $errors->first('finance_email', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('support_email') ? 'has-error' : ''}}">
|
||||
<label class="" for="supportEmail">Support Emails (Multiple) </label>
|
||||
{!! Form::select('support_emails[]', $support_emails, $old_support_emails, ['class' => 'form-control supportEmail', 'id' => 'supportEmail', 'multiple' => 'true']) !!}
|
||||
{!! $errors->first('support_emails', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('support_phones') ? 'has-error' : ''}}">
|
||||
<label class="" for="supportPhones">Support Phone Numbers (Multiple) </label>
|
||||
{!! Form::select('support_phones[]', $support_phones, $old_support_phones, ['class' => 'form-control supportPhones', 'id' => 'supportPhones', 'multiple' => 'true']) !!}
|
||||
{!! $errors->first('support_phones', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('country') ? 'has-error' : ''}}">
|
||||
<label class="" for="country">Country</label>
|
||||
{!! Form::select('country', $countries, old('country'), ['class' => 'form-control ', 'placeholder'=>'Enter Country ' , 'id' => 'country']) !!}
|
||||
{!! $errors->first('country', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('currency') ? 'has-error' : ''}}">
|
||||
<label class="" for="currency">Currency</label>
|
||||
{!! Form::select('currency', $currency ,old('currency'), ['class' => 'form-control ' , 'id' => 'currency']) !!}
|
||||
{!! $errors->first('currency', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="ln_solid"></div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<button type="submit" class="btn btn-success btn-block"><i class="fa fa-save"></i> Update</button>
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
{{-- end of x_content --}}
|
||||
</div>
|
||||
{{-- end of x_panel --}}
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('services') ? 'has-error' : ''}}">
|
||||
<label class="" for="type">Services</label>
|
||||
{!! Form::select('services[]', $service_type, $current_services, ['class' => 'form-control typeServices' , 'id' => 'services', 'multiple'=> 'true']) !!}
|
||||
{!! $errors->first('services', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('name') ? 'has-error' : ''}}">
|
||||
<label class="" for="companyType">Company Type</label>
|
||||
{!! Form::select('company_type', $company_types, old('company_type'), ['class' => 'form-control', 'placeholder'=>'Enter Company Type' , 'id' => 'companyType']) !!}
|
||||
{!! $errors->first('company_type', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="{{ $errors->has('name') ? 'has-error' : ''}}">
|
||||
<label class="" for="industryType">Industry Type</label>
|
||||
{!! Form::select('industry', $industries, old('industry'), ['class' => 'form-control', 'placeholder'=>'Enter Industry Type' , 'id' => 'industryType', 'required' => 'true']) !!}
|
||||
{!! $errors->first('industry', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="" for="contractType">Contract Type</label>
|
||||
<div class=" {{ $errors->has('contract_type') ? 'has-error' : ''}}">
|
||||
{!! Form::select('contract_type', $contract_types, old('contract_type'), ['class' => 'form-control ', 'placeholder'=>'Select Contract type' , 'id' => 'contractType']) !!}
|
||||
{!! $errors->first('contract_type', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="" for="contractValidity">Contract Validity</label>
|
||||
<div class=" {{ $errors->has('name') ? 'has-error' : ''}}">
|
||||
{!! Form::text('contract_validity', old('contract_validity'), ['class' => 'form-control', 'placeholder'=>'Enter Contract Date' , 'id' => 'contractValidity']) !!}
|
||||
{!! $errors->first('contract_validity', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('contract_auto_renew') ? 'has-error' : ''}}">
|
||||
<label class="" for="contractAutoRenew">Contract Auto Renewal</label>
|
||||
{!! Form::select('contract_auto_renew', ['YES' => 'YES','NO' => 'NO'], old('contract_auto_renew'), ['class' => 'form-control ' , 'id' => 'contractAutoRenew' ]) !!}
|
||||
{!! $errors->first('contract_auto_renew', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('connections') ? 'has-error' : ''}}">
|
||||
<label class="" for="connections">Connection</label>
|
||||
{!! Form::select('connections[]', $connections_arr, json_decode($client->connections, true), ['class' => 'form-control ' , 'id' => 'connections', 'multiple' => 'true' ]) !!}
|
||||
{!! $errors->first('connections', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('connections') ? 'has-error' : ''}}">
|
||||
<label class="" for="connections">Message Type</label>
|
||||
{!! Form::select('message_types[]', $message_types_arr, json_decode($client->message_types, true), ['class' => 'form-control ' , 'id' => 'connections', 'multiple' => 'true' ]) !!}
|
||||
{!! $errors->first('connections', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('smpp_username') ? 'has-error' : ''}}">
|
||||
<label class="" for="smppUsername">SMPP Connections Details</label>
|
||||
{!! Form::text('smpp_username', old('smpp_username'), ['class' => 'form-control' , 'id' => 'smppUsername', 'placeholder' => 'SMPP Username']) !!}
|
||||
{!! $errors->first('smpp_username', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('support_skype') ? 'has-error' : ''}}">
|
||||
<label class="" for="rateEmail">Support Skype IDs (Multiple) </label>
|
||||
{!! Form::select('support_skype[]', $support_skype_arr, $old_support_skype_arr, ['class' => 'form-control supportSkype', 'id' => 'supportSkype', 'multiple' => 'true']) !!}
|
||||
{!! $errors->first('support_skype', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('rate_email') ? 'has-error' : ''}}">
|
||||
<label class="" for="rateEmail">Rate Emails (Multiple) </label>
|
||||
{!! Form::select('rate_emails[]', $rate_emails, $old_rate_emails, ['class' => 'form-control rateEmail', 'id' => 'rateEmail', 'multiple' => 'true']) !!}
|
||||
{!! $errors->first('rate_emails', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('payment_mode') ? 'has-error' : ''}}">
|
||||
<label class="" for="payment_mode">Payment Mode</label>
|
||||
{!! Form::select('payment_mode', $payment_type, old('pay_mode'), ['class' => 'form-control' , 'id' => 'payment_mode']) !!}
|
||||
{!! $errors->first('payment_mode', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="form-group">
|
||||
<div class=" {{ $errors->has('sender_ids') ? 'has-error' : ''}}">
|
||||
<label class="" for="senderIds">Requested Sender IDs</label>
|
||||
{!! Form::select('sender_ids[]', $sender_ids, $old_sender_ids, ['class' => 'form-control senderIds' , 'id' => 'senderIds', 'multiple' => 'true' ]) !!}
|
||||
{!! $errors->first('sender_ids', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('how_we_got_client') ? 'has-error' : ''}}">
|
||||
<label class="" for="howWeGotClient">How We got Client</label>
|
||||
{!! Form::select('how_we_got_client', $how_we_got_clients_arr, old('how_we_got_client'), ['class' => 'form-control' , 'id' => 'howWeGotClient' ]) !!}
|
||||
{!! $errors->first('how_we_got_client', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('how_we_got_client_other') ? 'has-error' : ''}}">
|
||||
<label class="" for="howWeGotClientOther">Other</label>
|
||||
{!! Form::text('how_we_got_client_other', null, ['class' => 'form-control' , 'id' => 'howWeGotClientOther', 'placeholder' => 'Specify how we got the client']) !!}
|
||||
{!! $errors->first('how_we_got_client_other', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('notes') ? 'has-error' : ''}}">
|
||||
<label class="" for="clientNotes">Notes</label>
|
||||
{!! Form::textarea('notes', old('notes'), ['class' => 'form-control ', 'placeholder'=>'Enter additional information here', 'rows' => '5', 'id' => 'clientNotes']) !!}
|
||||
{!! $errors->first('notes', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('how_we_got_client_other') ? 'has-error' : ''}}">
|
||||
<label class="" for="documentOneName">Document Name</label>
|
||||
{!! Form::text('document_one_name', null, ['class' => 'form-control' , 'id' => 'documentOneName', 'placeholder' => 'Enter name of document']) !!}
|
||||
{!! $errors->first('document_one_name', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('document_one') ? 'has-error' : ''}}">
|
||||
<label class="" for="documentOne">First Document</label>
|
||||
{!! Form::file('document_one', null, ['class' => 'form-control' , 'id' => 'documentOne', 'placeholder' => 'Select file to upload']) !!}
|
||||
{!! $errors->first('document_one', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('how_we_got_client_other') ? 'has-error' : ''}}">
|
||||
<label class="" for="documentOneName">Document Name</label>
|
||||
{!! Form::text('document_two_name', null, ['class' => 'form-control' , 'id' => 'documentTwoName', 'placeholder' => 'Enter name of document']) !!}
|
||||
{!! $errors->first('document_two_name', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('document_two') ? 'has-error' : ''}}">
|
||||
<label class="" for="documentTwo">Second Document</label>
|
||||
{!! Form::file('document_two', null, ['class' => 'form-control' , 'id' => 'documentTwo', 'placeholder' => 'Select file to upload']) !!}
|
||||
{!! $errors->first('document_two', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('how_we_got_client_other') ? 'has-error' : ''}}">
|
||||
<label class="" for="documentThreeName">Document Name</label>
|
||||
{!! Form::text('document_three_name', null, ['class' => 'form-control' , 'id' => 'documentThreeName', 'placeholder' => 'Enter name of document']) !!}
|
||||
{!! $errors->first('document_three_name', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<div class=" {{ $errors->has('document_three') ? 'has-error' : ''}}">
|
||||
<label class="" for="documentThree">Third Document</label>
|
||||
{!! Form::file('document_three', null, ['class' => 'form-control' , 'id' => 'documentThree', 'placeholder' => 'Select file to upload']) !!}
|
||||
{!! $errors->first('document_three', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label>Status *:</label>
|
||||
<div class="bg-<?php echo $status_bg; ?> " style="border-radius: 5px; border: 1px solid black; padding: 10px;">
|
||||
<p >
|
||||
Live:
|
||||
<input type="radio" class="flat" name="status" id="statusLive" value="Live" <?php echo ($client->status == 'Live') ? "checked" : ""; ?> />
|
||||
</p>
|
||||
<p>
|
||||
Prospective:
|
||||
<input type="radio" class="flat" name="status" id="statusProspect" value="Prospective" <?php echo ($client->status == 'Prospective') ? "checked" : ""; ?> />
|
||||
</p>
|
||||
<p>
|
||||
Inactive
|
||||
<input type="radio" class="flat" name="status" id="statusInactive" value="Inactive" <?php echo ($client->status == 'Inactive') ? "checked" : ""; ?> />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ln_solid"></div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<button type="submit" class="btn btn-success btn-block"><i class="fa fa-save"></i> Update</button>
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{{-- end of x_content --}}
|
||||
</div>
|
||||
{{-- end of x_panel --}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@
|
||||
}
|
||||
var table = new Tabulator("#clientsTable", {
|
||||
ajaxURL: "clients/all",
|
||||
paginationSize: 20,
|
||||
paginationSize: 15,
|
||||
layout: "fitColumns",
|
||||
pagination: "remote",
|
||||
selectable: false,
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<div class="form-group" >
|
||||
<div class="col-md-12" style="padding-bottom: 5px;">
|
||||
<label for="invoiceAmountEdit">Invoice Amount</label>
|
||||
<input type="number" class="form-control" name="invoice_amount" id="invoiceAmountEdit" required >
|
||||
<input type="text" class="form-control" name="invoice_amount" id="invoiceAmountEdit" required >
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="hidden" id="financeNotifyArea"></div>
|
||||
<form class="form-vertical" method="POST" id="financeForm" action="{{ url('clients/finance_store') }}">
|
||||
{{ csrf_field() }}
|
||||
<input type="hidden" name="client_id" id="clientID" value="{{ $showclient->id }}">
|
||||
@@ -28,15 +29,10 @@
|
||||
<div class="form-group" >
|
||||
<div class="col-md-12" style="padding-bottom: 5px;">
|
||||
<label for="invoiceAmount">Invoice Amount</label>
|
||||
<input type="number" class="form-control" name="invoice_amount" id="invoiceAmount" required >
|
||||
<input type="text" class="form-control" name="invoice_amount" id="invoiceAmount" required >
|
||||
<div class="help-block text-warning">Enter Amount with comma</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="form-group" >
|
||||
<div class="col-md-12" style="padding-bottom: 5px;">
|
||||
<label for="invoiceDate">Invoice Date *</label>
|
||||
<input type="text" class="form-control" name="invoice_date" id="invoiceDate" required >
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<div class='input-group date' id='myDatepicker2' style="padding-bottom: 5px;">
|
||||
@@ -49,22 +45,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="form-group" >
|
||||
<div class="col-md-12" style="padding-bottom: 5px;">
|
||||
<label for="invoiceStatus">Invoice Status</label>
|
||||
<input type="text" class="form-control" name="invoice_status" id="invoiceStatus"></textarea>
|
||||
</div>
|
||||
</div> -->
|
||||
<!-- <div class="form-group">
|
||||
<div class="col-md-12" style="padding-bottom: 5px">
|
||||
<label for="invoiceStatus">Invoice Status</label>
|
||||
<select id="invoiceStatus" class="form-control">
|
||||
<option>--Select--</option>
|
||||
<option value="PAID">Paid</option>
|
||||
<option value="UNPAID">Unpaid</option>
|
||||
</select>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="form-group">
|
||||
<div class="col-md-12" style="padding-bottom: 5px">
|
||||
<label for="invoiceStatus">Status *</label>
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
<table class="table table-striped ">
|
||||
<thead>
|
||||
<tr class="headings">
|
||||
{{-- <th>#</th> --}}
|
||||
<th class="column-title">Invoice Number</th>
|
||||
<th class="column-title">Invoice Amount</th>
|
||||
<th class="column-title">Invoice Date</th>
|
||||
|
||||
325
resources/views/client/show-readonly.blade.php
Normal file
325
resources/views/client/show-readonly.blade.php
Normal file
@@ -0,0 +1,325 @@
|
||||
@extends('layouts.master')
|
||||
@section('page_title')
|
||||
@if(isset($page_title))
|
||||
{{ $page_title }}
|
||||
@endif
|
||||
@endsection
|
||||
@section('content')
|
||||
<div class="">
|
||||
<div class="page-title">
|
||||
<div class="title_left" style="width:800px !important;">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{!! url('dashboard') !!}">Dashboard</a></li>
|
||||
<li><a href="{!! url('clients') !!}">Clients</a></li>
|
||||
<li><a href="{!! url('clients', $showclient->id) !!}">{{ $showclient->name }}</a></li>
|
||||
<li class="active">Full Details</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12 col-xs-12">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
Update Client Details
|
||||
@include('commons.notifications')
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
{{-- start of content --}}
|
||||
<div class="x_content">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<h4>Primary Details</h4>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<td>{{ $showclient->name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Account Manager</th>
|
||||
<td>{{ $showclient->auth_user_info->name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Contact Person</th>
|
||||
<td>{{ $showclient->contact_person }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Phone</th>
|
||||
<td>{{ $showclient->phone }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Email</th>
|
||||
<td>{{ $showclient->email }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Skype Name</th>
|
||||
<td>{{ $showclient->skype_name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>LinkedIn </th>
|
||||
<td>{{ $showclient->linkedin_name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Contract Type </th>
|
||||
<td>{{ $showclient->contract_type }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Contract Validity </th>
|
||||
<td>{{ $showclient->contract_validity }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Contract Auto Renew </th>
|
||||
<td>{{ $showclient->contract_auto_renew }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<h4>Company Details</h4>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<td>{{ $showclient->country }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Company Type</th>
|
||||
<td>{{ $showclient->company_type }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Connections</th>
|
||||
<td>
|
||||
<?php
|
||||
echo ($showclient->connections) ? implode(',', json_decode($showclient->connections)) : "";
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>SMPP Details</th>
|
||||
<td>
|
||||
<?php
|
||||
echo ($showclient->smpp_details) ? implode(',', json_decode($showclient->smpp_details)) : "";
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Message Types</th>
|
||||
<td>
|
||||
<?php
|
||||
echo ($showclient->message_types) ? implode(',', json_decode($showclient->message_types)) : "";
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Support Phones</th>
|
||||
<td>
|
||||
<?php
|
||||
echo ($showclient->support_phones) ? implode(',', json_decode($showclient->support_phones)) : "";
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Support Emails</th>
|
||||
<td>
|
||||
<?php
|
||||
echo ($showclient->support_emails) ? implode(',', json_decode($showclient->support_emails)) : "";
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Rate Emails</th>
|
||||
<td>
|
||||
<?php
|
||||
echo ($showclient->rate_emails) ? implode(',', json_decode($showclient->rate_emails)) : "";
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Support Skype IDs</th>
|
||||
<td>
|
||||
<?php
|
||||
echo ($showclient->support_skype) ? implode(',', json_decode($showclient->support_skype)) : "";
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>How We got this client</th>
|
||||
<td>{{ $showclient->how_we_got_client }}</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<h4>Finance Details</h4>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>Payment Mode</th>
|
||||
<td>
|
||||
<?php echo $showclient->pay_mode ?? ""; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Finance Emails</th>
|
||||
<td><?php echo ($showclient->finance_email) ? implode(',', json_decode($showclient->finance_email)) : ""; ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<h5>Recent Payments</h5>
|
||||
<div style="height: 250px; overflow: scroll;">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped ">
|
||||
<thead>
|
||||
<tr class="headings">
|
||||
<th class="column-title">Invoice Number</th>
|
||||
<th class="column-title">Invoice Amount</th>
|
||||
<th class="column-title">Invoice Date</th>
|
||||
<th class="column-title">Services</th>
|
||||
<th class="column-title">Remarks</th>
|
||||
<th class="column-title">Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if ($recent_payments->isEmpty())
|
||||
<tr>
|
||||
<td class="" colspan="12">No Records found</td>
|
||||
</tr>
|
||||
@else
|
||||
@foreach ($recent_payments as $row)
|
||||
<tr class="even pointer">
|
||||
<td class="mes-td col-md-1">{{ $row->invoice_number }}</td>
|
||||
<td class="mes-td col-md-1">{{ number_format($row->invoice_amount) }}</td>
|
||||
<td class="mes-td col-md-2">{{ date('d-m-Y', strtotime($row->invoice_date)) }}</td>
|
||||
<td class="mes-td col-md-3">{{ $row->services }} </td>
|
||||
<td class="mes-td col-md-3" style="width: 100px;">{{ $row->remarks }}</td>
|
||||
<td class="mes-td col-md-1"><span class="label label-<?php echo ($row->invoice_status == 'PAID') ? 'success' : 'danger'; ?>"> {{ $row->invoice_status }}</span></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12 well">
|
||||
|
||||
<h4>Documents</h4>
|
||||
@if(!$showdocuments->isEmpty() == true)
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
|
||||
<div class="row">
|
||||
@foreach($showdocuments as $docs)
|
||||
<div class="col-md-3">
|
||||
<p class="url">
|
||||
<span class="fs1 text-info" aria-hidden="true" data-icon=""></span>
|
||||
<a href="{{ url('clients/downloadfile', $docs->id) }}"><i class="fa fa-paperclip"></i> {{ $docs->name }}.{{ $docs->file_extension }}</a>
|
||||
</p>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<p>No Documents found</p>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<h4>Notes</h4>
|
||||
<div class="" style="height: 400px; overflow: scroll;">
|
||||
<ul class="messages list-group" style="padding: 15px;">
|
||||
@if($show_notes->isEmpty())
|
||||
<li style="" class="">No notes found</li>
|
||||
@else
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">#</th>
|
||||
<th scope="col">Content</th>
|
||||
<th scope="col">Services</th>
|
||||
<th scope="col">Author</th>
|
||||
<th scope="col">Date</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $count = 1; ?>
|
||||
@foreach($show_notes as $notes)
|
||||
<tr>
|
||||
<th scope="row">{{ $count }}</th>
|
||||
<td>{{ $notes->notes_body }}</td>
|
||||
<td>{{ $notes->services }}</td>
|
||||
<td>{{ $notes->created_by_info->name }}</td>
|
||||
<td>{{ $notes->created_at }}</td>
|
||||
</tr>
|
||||
<?php $count++; ?>
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
@endif
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div style="height: 400px; overflow: scroll;">
|
||||
<h4>SMS Short Codes</h4>
|
||||
<div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-condensed">
|
||||
<thead>
|
||||
<tr class="headings">
|
||||
{{-- <th>#</th> --}}
|
||||
<th class="column-title">Name</th>
|
||||
<th class="column-title">Code</th>
|
||||
<th class="column-title">Type</th>
|
||||
<th class="column-title">Network</th>
|
||||
<th class="column-title">Toll Free</th>
|
||||
<th class="column-title">Status</th>
|
||||
<th class="column-title">Launch Date</th>
|
||||
</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if ($all_shortcodes->isEmpty())
|
||||
<tr>
|
||||
<td class="" colspan="12">No Records found</td>
|
||||
</tr>
|
||||
@else
|
||||
@foreach ($all_shortcodes as $row)
|
||||
<tr class="even pointer">
|
||||
<td class="mes-td col-md-2">{{ $row->name }}</td>
|
||||
<td class="mes-td col-md-1">{{ $row->shortcode }}</td>
|
||||
<td class="mes-td col-md-1">{{ $row->code_type }}</td>
|
||||
<td class="mes-td col-md-2">{{ ucfirst($row->network) }}</td>
|
||||
<td class="mes-td col-md-2">{{ ucfirst($row->country) }}</td>
|
||||
<td class="mes-td col-md-1">{{ strtoupper($row->toll_free) }}</td>
|
||||
<td class="mes-td col-md-1">{{ $row->status }}</td>
|
||||
<td class="mes-td col-md-1" style="width: 100px;">{{ date('d-m-Y', strtotime($row->launch_date)) }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{{-- end of x_content --}}
|
||||
</div>
|
||||
{{-- end of x_panel --}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@section('javascript')
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
@@ -10,6 +10,7 @@
|
||||
@include('client.partials.finance')
|
||||
@include('client.partials.create-shortcodes')
|
||||
@include('client.partials.edit-finance')
|
||||
<?php ?>
|
||||
<div class="">
|
||||
<div class="page-title">
|
||||
<div class="title_left">
|
||||
@@ -69,10 +70,12 @@
|
||||
</li>
|
||||
</ul>
|
||||
@endif
|
||||
<a class="btn btn-success" href="{{ url('clients/'. $showclient->id . '/edit') }}"><i class="fa fa-edit m-right-xs"></i>Edit Client</a>
|
||||
|
||||
<br />
|
||||
@if(session('current_user.id') == $showclient->auth_user_id)
|
||||
<a class="btn btn-success" href="{{ url('clients/'. $showclient->id . '/edit') }}"><i class="fa fa-edit m-right-xs"></i> Edit Client</a>
|
||||
@endif
|
||||
<a class="btn btn-primary" href="{{ url('clients/readonly/'. $showclient->id) }}"><i class="fa fa-eye m-right-xs"></i> Full Details (Readonly)</a>
|
||||
|
||||
<br />
|
||||
|
||||
<!-- start skills -->
|
||||
<!-- <h4>Finance</h4>
|
||||
@@ -132,7 +135,7 @@
|
||||
<div class="col-md-4">
|
||||
|
||||
<h4 class="lead"><strong>Support Phone(s)</strong></h4>
|
||||
@if($showclient->support_phones !== null)
|
||||
@if(!empty($showclient->support_phones))
|
||||
<blockquote>
|
||||
<?php
|
||||
$the_arr = json_decode($showclient->support_phones, true) ?>
|
||||
@@ -148,7 +151,7 @@
|
||||
N/A
|
||||
@endif
|
||||
<h4 class="lead"><strong>Support Email(s)</strong></h4>
|
||||
@if($showclient->support_emails !== null)
|
||||
@if(!empty($showclient->support_emails))
|
||||
<blockquote>
|
||||
<?php
|
||||
$the_arr = json_decode($showclient->support_emails, true) ?>
|
||||
@@ -163,7 +166,7 @@
|
||||
@else
|
||||
N/A
|
||||
@endif
|
||||
@if($showclient->rate_emails !== null)
|
||||
@if(!empty($showclient->rate_emails))
|
||||
<h4 class="lead"><strong>Rates Email(s)</strong></h4>
|
||||
<blockquote>
|
||||
<?php
|
||||
@@ -180,10 +183,10 @@
|
||||
N/A
|
||||
@endif
|
||||
<h4 class="lead"><strong>Finance Email(s)</strong></h4>
|
||||
@if($showclient->finance_emails !== null)
|
||||
@if(!empty($showclient->finance_email))
|
||||
<blockquote>
|
||||
<?php
|
||||
$the_arr = json_decode($showclient->finance_emails, true) ?>
|
||||
$the_arr = json_decode($showclient->finance_email, true) ?>
|
||||
<ul>
|
||||
<?php foreach ($the_arr as $row): ?>
|
||||
|
||||
@@ -199,7 +202,7 @@
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<h4 class="lead"><strong>Support Skype ID(s)</strong></h4>
|
||||
@if($showclient->support_skype !== null)
|
||||
@if(!empty($showclient->support_skype))
|
||||
<blockquote>
|
||||
<?php
|
||||
$the_arr = json_decode($showclient->support_skype, true) ?>
|
||||
@@ -218,6 +221,17 @@
|
||||
<h4>How We Got This Client</h4>
|
||||
<?php echo $showclient->how_we_got_client ?? "N/A" ?>
|
||||
</div>
|
||||
<h4>Documents</h4>
|
||||
@if(!$showdocuments->isEmpty() == true)
|
||||
@foreach($showdocuments as $docs)
|
||||
<p class="url">
|
||||
<span class="fs1 text-info" aria-hidden="true" data-icon=""></span>
|
||||
<a href="{{ url('clients/downloadfile', $docs->id) }}"><i class="fa fa-paperclip"></i> {{ $docs->name }}.{{ $docs->file_extension }}</a>
|
||||
</p>
|
||||
@endforeach
|
||||
@else
|
||||
<p>No Documents found</p>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
320
resources/views/client/show_staqble.blade.php.bak.php
Executable file
320
resources/views/client/show_staqble.blade.php.bak.php
Executable file
@@ -0,0 +1,320 @@
|
||||
@extends('layouts.master')
|
||||
@section('page_title')
|
||||
@if(isset($page_title))
|
||||
{{ $page_title }}
|
||||
@endif
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
@include('client.partials.new_notes')
|
||||
@include('client.partials.finance')
|
||||
@include('client.partials.create-shortcodes')
|
||||
@include('client.partials.edit-finance')
|
||||
<div class="">
|
||||
<div class="page-title">
|
||||
<div class="title_left">
|
||||
</div>
|
||||
<div class="title_left">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{!! url('dashboard') !!}">Dashboard</a></li>
|
||||
<li><a href="{!! url('clients') !!}">Clients</a></li>
|
||||
<li class="active">Client Details</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12 col-xs-12">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
<h2>Client Details </h2>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
@include('commons.notifications')
|
||||
</div>
|
||||
<div class="x_content">
|
||||
<div class="col-md-3 col-sm-3 col-xs-12 profile_left">
|
||||
<div class="profile_img">
|
||||
<div id="crop-avatar">
|
||||
<!-- Current avatar -->
|
||||
<img class="img-responsive avatar-view" src="{{ url('public/assets/img/generic-client.png') }}" alt="Generic Client Icon" title="Change the avatar" width="100px">
|
||||
</div>
|
||||
</div>
|
||||
<h3>{{ $showclient->name }}</h3>
|
||||
<div class="well" style="border-radius: 25px;">
|
||||
Click Account Manager <br>
|
||||
<strong><em> <?php echo $showclient->auth_user_info->name ?? 'N/A' ?> </em></strong>
|
||||
</div>
|
||||
<h4>Status : <span class="label label-{{ $status_bg }}">{{ $showclient->status }}</span></h4>
|
||||
<ul class="list-unstyled user_data">
|
||||
<li><i class="fa fa-phone user-profile-icon"></i> <?php echo $showclient->phone ?? "N/A"; ?></li>
|
||||
<li><i class="fa fa-envelope user-profile-icon"></i> <?php echo $showclient->email ?? "N/A"; ?> </li>
|
||||
<li class="m-top-xs"><i class="fa fa-skype user-profile-icon"></i> <?php echo $showclient->skype_name ?? "N/A"; ?></li>
|
||||
<li class="m-top-xs"><i class="fa fa-linkedin user-profile-icon"></i> <?php echo $showclient->linkedin_name ?? "N/A"; ?></li>
|
||||
</ul>
|
||||
|
||||
<h5 style="text-decoration: underline;">Highlights</h5>
|
||||
@if(!$show_notes->isEmpty())
|
||||
<ul class="legend list-unstyled">
|
||||
<li>
|
||||
<p>
|
||||
<span class="icon"><i class="fa fa-square blue"></i></span> <span class="name">
|
||||
<?php for ($i = 0; $i < $show_notes->count(); $i++) { ?>
|
||||
|
||||
<?php if ($show_notes[$i]->highlight == 'NO'): continue; endif; ?>
|
||||
<strong> {{ $i+1 . "." }}</strong> {{ $show_notes[$i]->notes_body }}
|
||||
<?php } ?>
|
||||
</span>
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
@endif
|
||||
<a class="btn btn-success" href="{{ url('clients/'. $showclient->id . '/edit') }}"><i class="fa fa-edit m-right-xs"></i>Edit Client</a>
|
||||
|
||||
<br />
|
||||
|
||||
|
||||
<!-- start skills -->
|
||||
<!-- <h4>Finance</h4>
|
||||
<ul class="list-unstyled user_data">
|
||||
<li><i class="fa fa-phone user-profile-icon"></i> [Phone Number here]</li>
|
||||
<li><i class="fa fa-envelope user-profile-icon"></i> [email here] </li>
|
||||
<li class="m-top-xs"><i class="fa fa-skype user-profile-icon"></i> [Skype ID Here]</li>
|
||||
</ul> -->
|
||||
<!-- end of skills -->
|
||||
</div>
|
||||
<div class="col-md-9 col-sm-9 col-xs-12" style="border: 1px solid; min-height: 500px;">
|
||||
<div class="" role="tabpanel" data-example-id="togglable-tabs">
|
||||
<ul id="myTab" class="nav nav-tabs bar_tabs" role="tablist">
|
||||
<li role="presentation" class="active"><a href="#tabCompany" id="company-tab" role="tab" data-toggle="tab" aria-expanded="true">Company</a></li>
|
||||
<!-- <li role="presentation" class=""><a href="#tabConnection" role="tab" id="connection-tab" data-toggle="tab" aria-expanded="false">Connection</a></li> -->
|
||||
<li role="presentation" class=""><a href="#tabContract" role="tab" id="contract-tab2" data-toggle="tab" aria-expanded="false">Contract</a></li>
|
||||
<li role="presentation" class=""><a href="#tabFinance" role="tab" id="finance-tab2" data-toggle="tab" aria-expanded="false">Finance</a></li>
|
||||
<li role="presentation" class=""><a href="#tabNotes" role="tab" id="notes-tab2" data-toggle="tab" aria-expanded="false">Notes</a></li>
|
||||
<li role="presentation" class=""><a href="#tabSmsShortCode" role="tab" id="smsshortcode-tab2" data-toggle="tab" aria-expanded="false">SMS Short Codes</a></li>
|
||||
<li role="presentation" class=""><a href="#tabUssdShortCode" role="tab" id="ussdshortcode-tab2" data-toggle="tab" aria-expanded="false">USSD Short Codes</a></li>
|
||||
<li role="presentation" class=""><a href="#tabVoiceShortCode" role="tab" id="voiceshortcode-tab2" data-toggle="tab" aria-expanded="false">Voice Short Codes</a></li>
|
||||
</ul>
|
||||
<div id="myTabContent" class="tab-content">
|
||||
<div role="tabpanel" class="tab-pane fade active in" id="tabCompany" aria-labelledby="company-tab">
|
||||
<div class="col-md-4">
|
||||
|
||||
|
||||
<h4 class="lead"><strong>Company Details</strong></h4>
|
||||
|
||||
<blockquote>
|
||||
<p>Country : <strong> {{ $showclient->country or "N/A" }}</strong></p>
|
||||
<p>Company Type : <strong> {{ $showclient->company_type or "N/A" }}</strong></p>
|
||||
<!-- <p>Products </p> -->
|
||||
<!-- <p>Products Description</p> -->
|
||||
<!-- <p>Product Specification</p> -->
|
||||
<!-- <p>Networks</p> gettype(json_decode($showclient->sender_ids, true )); -->
|
||||
<p>Requested Sender IDs : <strong> <?php if($showclient->sender_ids) { echo implode(", ", json_decode($showclient->sender_ids, true)); } else {echo "N/A"; } ?></strong></p>
|
||||
</blockquote>
|
||||
|
||||
<h4 class="lead"><strong>Connection Details </strong></h4>
|
||||
<blockquote>
|
||||
<p>Connection Types : <em> <?php if($showclient->connections) { echo implode(", ", json_decode($showclient->connections, true)); } else {echo "N/A"; } ?></em></p>
|
||||
<p>SMPP Username : <em>
|
||||
<?php if($showclient->smpp_username) { echo $showclient->smpp_username; } else {echo "N/A"; } ?></em></p>
|
||||
<p>Message Types : <em>
|
||||
<?php if($showclient->message_types) {
|
||||
$types_array = json_decode($showclient->message_types);
|
||||
echo implode(', ', $types_array);
|
||||
}
|
||||
else {
|
||||
echo "N/A";
|
||||
} ?>
|
||||
</em>
|
||||
</p>
|
||||
</blockquote>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
|
||||
<h4 class="lead"><strong>Support Phone(s)</strong></h4>
|
||||
@if(!empty($showclient->support_phones))
|
||||
<blockquote>
|
||||
<?php
|
||||
$the_arr = json_decode($showclient->support_phones, true) ?>
|
||||
<ul>
|
||||
<?php foreach ($the_arr as $row): ?>
|
||||
|
||||
<li>{{ $row }}</li>
|
||||
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
</blockquote>
|
||||
@else
|
||||
N/A
|
||||
@endif
|
||||
<h4 class="lead"><strong>Support Email(s)</strong></h4>
|
||||
@if(!empty($showclient->support_emails))
|
||||
<blockquote>
|
||||
<?php
|
||||
$the_arr = json_decode($showclient->support_emails, true) ?>
|
||||
<ul>
|
||||
<?php foreach ($the_arr as $row): ?>
|
||||
|
||||
<li>{{ $row }}</li>
|
||||
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
</blockquote>
|
||||
@else
|
||||
N/A
|
||||
@endif
|
||||
@if(!empty($showclient->rate_emails))
|
||||
<h4 class="lead"><strong>Rates Email(s)</strong></h4>
|
||||
<blockquote>
|
||||
<?php
|
||||
$the_arr = json_decode($showclient->rate_emails, true) ?>
|
||||
<ul>
|
||||
<?php foreach ($the_arr as $row): ?>
|
||||
|
||||
<li>{{ $row }}</li>
|
||||
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
</blockquote>
|
||||
@else
|
||||
N/A
|
||||
@endif
|
||||
<h4 class="lead"><strong>Finance Email(s)</strong></h4>
|
||||
@if(!empty($showclient->finance_emails))
|
||||
<blockquote>
|
||||
<?php
|
||||
$the_arr = json_decode($showclient->finance_emails, true) ?>
|
||||
<ul>
|
||||
<?php foreach ($the_arr as $row): ?>
|
||||
|
||||
<li>{{ $row }}</li>
|
||||
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
</blockquote>
|
||||
@else
|
||||
N/A
|
||||
@endif
|
||||
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<h4 class="lead"><strong>Support Skype ID(s)</strong></h4>
|
||||
@if(!empty($showclient->support_skype))
|
||||
<blockquote>
|
||||
<?php
|
||||
$the_arr = json_decode($showclient->support_skype, true) ?>
|
||||
<ul>
|
||||
<?php foreach ($the_arr as $row): ?>
|
||||
|
||||
<li>{{ $row }}</li>
|
||||
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
</blockquote>
|
||||
@else
|
||||
N/A
|
||||
@endif
|
||||
<div class="well">
|
||||
<h4>How We Got This Client</h4>
|
||||
<?php echo $showclient->how_we_got_client ?? "N/A" ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane fade" id="tabConnection" aria-labelledby="connection-tab">
|
||||
|
||||
<h4 class="lead"><strong>Connection Details </strong></h4>
|
||||
<blockquote>
|
||||
<p>Connection Types : <?php if($showclient->connections) { echo implode(", ", json_decode($showclient->connections, true)); } else {echo "N/A"; } ?></p>
|
||||
<br>
|
||||
|
||||
<p>Partner SMPP Details <br>
|
||||
<?php //if($showclient->smpp_details) { echo $showclient->smpp_details; } else {echo "N/A"; } ?></p>
|
||||
</blockquote>
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane fade" id="tabContract" aria-labelledby="contract-tab">
|
||||
<h4 class="lead"> <strong>Contract Details </strong></h4>
|
||||
<blockquote>
|
||||
<p>Contract Type : <strong> {{ ucfirst($showclient->contract_type) ?? 'N/A'}} </strong><br> </p>
|
||||
|
||||
|
||||
<p>Contract Validity (Date) : <strong> {{ $showclient->contract_validity or 'N/A'}} </strong></p>
|
||||
<p>Contract Auto Renewal : <strong> {{ $showclient->contract_auto_renew or 'N/A'}} </strong></p>
|
||||
<p>Renewal Due : <strong class="text-<?php echo ($highlight_colour == 'none') ? '' : 'danger'; ?> "> {{ $renewal_due }} </strong></p>
|
||||
</blockquote>
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane fade" id="tabFinance" aria-labelledby="finance-tab">
|
||||
<h4 class="lead"><strong>Finance Details </strong></h4>
|
||||
<button type="button" class="btn btn-success btn-sm pull-right" id="createPaymentBtn"><i class="fa fa-plus-square"></i> New Payment Details</button>
|
||||
<div class="clearfix"></div>
|
||||
<hr>
|
||||
@include('client.partials.recent-payments')
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane fade" id="tabNotes" aria-labelledby="notes-tab">
|
||||
<strong><h3> Notes</h3> </strong>
|
||||
<div class="pull-right">
|
||||
<!-- {{ url('clients/create-notes') }} -->
|
||||
<button type="button" class="btn btn-success btn-sm" id="createNotesBtn">New Notes <i class="fa fa-plus-square"></i> </button>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<div style="background-color: #dce2e4; height: 400px; overflow: scroll;">
|
||||
|
||||
<ul class="messages list-group" style="padding: 15px;">
|
||||
@if($show_notes->isEmpty())
|
||||
<li style="" class="">No notes found</li>
|
||||
@else
|
||||
<?php for ($i = 0; $i < $show_notes->count(); $i++) { ?>
|
||||
<?php if ($show_notes[$i]->highlight == 'YES'): continue; endif; ?>
|
||||
<li class="list-group-item list-group-item-<?php echo ($i%2 == 0)? "secondary" : "info"; ?>">
|
||||
<div class="message_date">
|
||||
<h3 class="date text-info"><?php echo date('d', strtotime($show_notes[$i]->created_at)); ?></h3>
|
||||
<p class="month"><?php echo date('M', strtotime($show_notes[$i]->created_at)); ?></p>
|
||||
<p class="year"><?php echo date('Y', strtotime($show_notes[$i]->created_at)); ?></p>
|
||||
</div>
|
||||
<div class="message_wrapper">
|
||||
<h4 class="heading">{{ $show_notes[$i]->client_info->name }}</h4>
|
||||
<blockquote class="message"><em>Content : </em> {{ $show_notes[$i]->notes_body }}</blockquote>
|
||||
<br />
|
||||
<p class="url">
|
||||
<span class="fs1 text-info" aria-hidden="true" data-icon=""></span>
|
||||
<a href="#"><i class="fa fa-edit"></i>Account Manager : {{ $show_notes[$i]->created_by_info->name }} </a>
|
||||
</p>
|
||||
</div>
|
||||
</li>
|
||||
<?php } ?>
|
||||
@endif
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane fade" id="tabSmsShortCode" aria-labelledby="smsshortcode-tab">
|
||||
<h4 class="lead"><strong>SMS Short Code </strong></h4>
|
||||
<button type="button" class="btn btn-success btn-sm pull-right" id="createSmsShortCodeBtn"><i class="fa fa-plus-square"></i> New Short Code</button>
|
||||
<div class="clearfix"></div>
|
||||
@include('client.partials.sms-codes')
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane fade" id="tabUssdShortCode" aria-labelledby="ussdshortcode-tab">
|
||||
<h4 class="lead"><strong>USSD Short Codes </strong></h4>
|
||||
<button type="button" class="btn btn-success btn-sm pull-right" id="createUssdShortCodeBtn"><i class="fa fa-plus-square"></i> New Short Code</button>
|
||||
<div class="clearfix"></div>
|
||||
@include('client.partials.ussd-codes')
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane fade" id="tabVoiceShortCode" aria-labelledby="voiceshortcode-tab">
|
||||
<h4 class="lead"><strong>Voice Short Code </strong></h4>
|
||||
<button type="button" class="btn btn-success btn-sm pull-right" id="createVoiceShortCodeBtn"><i class="fa fa-plus-square"></i> New Short Code</button>
|
||||
<div class="clearfix"></div>
|
||||
@include('client.partials.voice-codes')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@section('javascript')
|
||||
<script type="text/javascript" src="{{ url('public/assets/js/clientshow.js') }}"></script>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user