Implements generation of invoice of health care sheets
This commit is contained in:
parent
0f9910fa2a
commit
960a50d6ba
|
@ -15,6 +15,13 @@ DB_DATABASE=iLink_prod
|
|||
DB_USERNAME=root
|
||||
DB_PASSWORD=vps@2017GA
|
||||
|
||||
MAIL_HOST=mail.ilink-app.com
|
||||
MAIL_USERNAME=noreply@ilink-app.com
|
||||
MAIL_PASSWORD=ilink2017GA
|
||||
MAIL_FROM_ADDRESS=noreply@ilink-app.com
|
||||
MAIL_FROM_NAME="iLink World"
|
||||
MAIL_ENCRYPTION=tls
|
||||
|
||||
CACHE_DRIVER=file
|
||||
QUEUE_CONNECTION=sync
|
||||
|
||||
|
|
|
@ -9,4 +9,5 @@ Homestead.yaml
|
|||
/public/swagger-ui-assets
|
||||
/public/insurances-subscriptions-docs
|
||||
/public/qrcodes
|
||||
/public/invoices
|
||||
composer.lock
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
abstract class BillingPeriodType
|
||||
{
|
||||
const WEEKLY = 'WEEKLY';
|
||||
const BIMONTHLY = 'BIMONTHLY';
|
||||
const MONTHLY = 'MONTHLY';
|
||||
|
||||
}
|
|
@ -3,6 +3,7 @@
|
|||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Traits\ApiResponser;
|
||||
use App\Traits\Helper;
|
||||
use Laravel\Lumen\Routing\Controller as BaseController;
|
||||
|
||||
/**
|
||||
|
@ -21,4 +22,5 @@ class Controller extends BaseController
|
|||
{
|
||||
//
|
||||
use ApiResponser;
|
||||
use Helper;
|
||||
}
|
||||
|
|
|
@ -33,9 +33,6 @@ use Throwable;
|
|||
|
||||
class HealthCareSheetController extends Controller
|
||||
{
|
||||
use ApiResponser;
|
||||
use Helper;
|
||||
|
||||
/**
|
||||
* @OA\Get(
|
||||
* path="/drugs-and-devices",
|
||||
|
@ -607,12 +604,13 @@ class HealthCareSheetController extends Controller
|
|||
]);
|
||||
|
||||
foreach ($request->input('performances', []) as $p) {
|
||||
$fees = !empty($p['home_visit_fees']) ? $p['home_visit_fees'] : 0;
|
||||
$performance = NhPerformance::create([
|
||||
'act_id' => $p['act_id'],
|
||||
'amount' => $p['amount'],
|
||||
'home_visit_fees' => !empty($p['home_visit_fees']) ? $p['home_visit_fees'] : null,
|
||||
'moderator_ticket' => $parts->insured_part * $p['amount'], // to calculate,
|
||||
'insurance_amount' => $parts->insurer_part * $p['amount'], // to calculate, montant de l'assurance
|
||||
'home_visit_fees' => $fees != 0 ? $fees : null,
|
||||
'moderator_ticket' => $parts->insured_part * ($p['amount'] + $fees), // to calculate,
|
||||
'insurance_amount' => $parts->insurer_part * ($p['amount'] + $fees), // to calculate, montant de l'assurance
|
||||
'created_at' => $datetime, 'updated_at' => $datetime,
|
||||
]);
|
||||
|
||||
|
@ -1599,10 +1597,11 @@ class HealthCareSheetController extends Controller
|
|||
|
||||
$performance->act_id = !empty($p['act_id']) ? $p['act_id'] : $performance->act_id;
|
||||
$performance->home_visit_fees = !empty($p['home_visit_fees']) ? $p['home_visit_fees'] : $performance->home_visit_fees;
|
||||
$fees = !empty($performance->home_visit_fees) ? $performance->home_visit_fees : 0;
|
||||
if (!empty($p['amount'])) {
|
||||
$performance->amount = $p['amount'];
|
||||
$performance->moderator_ticket = $parts->insured_part * $p['amount']; // to calculate,
|
||||
$performance->insurance_amount = $parts->insurer_part * $p['amount']; // to calculate, montant de l'assurance
|
||||
$performance->moderator_ticket = $parts->insured_part * ($p['amount'] + $fees); // to calculate,
|
||||
$performance->insurance_amount = $parts->insurer_part * ($p['amount'] + $fees); // to calculate, montant de l'assurance
|
||||
}
|
||||
$performance->updated_at = $datetime;
|
||||
$performance->save();
|
||||
|
|
|
@ -20,7 +20,6 @@ use Throwable;
|
|||
|
||||
class InsuranceController extends Controller
|
||||
{
|
||||
use Helper;
|
||||
|
||||
/**
|
||||
* Create a new controller instance.
|
||||
|
|
|
@ -32,8 +32,6 @@ use Throwable;
|
|||
|
||||
class InsuranceSubscriptionController extends Controller
|
||||
{
|
||||
use Helper;
|
||||
|
||||
/**
|
||||
* Create a new controller instance.
|
||||
*
|
||||
|
|
|
@ -18,9 +18,6 @@ use stdClass;
|
|||
|
||||
class InsuredController extends Controller
|
||||
{
|
||||
use ApiResponser;
|
||||
use Helper;
|
||||
|
||||
/**
|
||||
* @OA\Get(
|
||||
* path="/insured",
|
||||
|
|
|
@ -0,0 +1,241 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
|
||||
use App\BillingPeriodType;
|
||||
use App\InsuranceSubscriptionState;
|
||||
use App\Models\AgentPlus;
|
||||
use App\Models\CountriesCurrency;
|
||||
use App\Models\Network;
|
||||
use App\Models\NhHealthCareSheet;
|
||||
use App\Models\NhInsurance;
|
||||
use App\Models\NhInvoice;
|
||||
use App\Models\NhNetworksConfig;
|
||||
use App\Models\User;
|
||||
use App\Models\WalletsUser;
|
||||
use App\Traits\ApiResponser;
|
||||
use App\Traits\Helper;
|
||||
use Barryvdh\DomPDF\Facade as PDF;
|
||||
use DateTime;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\Response;
|
||||
use Illuminate\Support\Facades\Date;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\File;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
use Moment\Moment;
|
||||
use Propaganistas\LaravelPhone\PhoneNumber;
|
||||
use stdClass;
|
||||
|
||||
class InvoiceController extends Controller
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @OA\Get(
|
||||
* path="/insured",
|
||||
* summary="Rechercher un assuré (par reseau , par nom ou par numero de telephone)",
|
||||
* tags={"Assurés"},
|
||||
* security={{"api_key":{}}},
|
||||
* @OA\Parameter(
|
||||
* parameter="network_id",
|
||||
* name="network_id",
|
||||
* description="ID du reseau",
|
||||
* @OA\Schema(
|
||||
* type="integer"
|
||||
* ),
|
||||
* in="query",
|
||||
* required=true
|
||||
* ),
|
||||
* @OA\Parameter(
|
||||
* parameter="insured_id",
|
||||
* name="insured_id",
|
||||
* description="Numero d'assuré",
|
||||
* @OA\Schema(
|
||||
* type="string"
|
||||
* ),
|
||||
* in="query",
|
||||
* required=false
|
||||
* ),
|
||||
* @OA\Parameter(
|
||||
* parameter="name",
|
||||
* name="name",
|
||||
* description="Nom de l'utilisateur",
|
||||
* @OA\Schema(
|
||||
* type="string"
|
||||
* ),
|
||||
* in="query",
|
||||
* required=false
|
||||
* ),
|
||||
* @OA\Parameter(
|
||||
* parameter="phone",
|
||||
* name="phone",
|
||||
* description="Telephone de l'utilisateur",
|
||||
* @OA\Schema(
|
||||
* type="string"
|
||||
* ),
|
||||
* in="query",
|
||||
* required=false
|
||||
* ),
|
||||
* @OA\Response(
|
||||
* response=200,
|
||||
* description="OK",
|
||||
* @OA\JsonContent(
|
||||
* ref="#/components/schemas/ApiResponse",
|
||||
* example = {
|
||||
* "status" : 200,
|
||||
* "response" : {{"id":4,"network_id":250,"user_id":349,"insured_id":"GJKS8ZGBEJTL","number_of_months":3,"bonus_amount":"150000.00",
|
||||
* "number_of_beneficiaries":2,"total_bonus_amount":"495000.00","start_at":"2021-11-11T21:54:02.000000Z","end_at":"2022-02-11T21:54:02.000000Z",
|
||||
* "state":"PAID","created_at":"2021-11-11T20:54:02.000000Z","updated_at":"2021-11-11T20:54:02.000000Z","user":{"id":349,
|
||||
* "firstname":null,"lastname":"Tom Di","phone":"+237690716648","email":"ddoubletom@gmail.com"},"network":{"id":250,"name":"Cnamgs-pharmacies"}}},
|
||||
* "error":null
|
||||
* }
|
||||
* )
|
||||
* )
|
||||
* )
|
||||
*/
|
||||
// Generer les factures periodiquement pour chaque agent
|
||||
public function generateInvoice(Request $request)
|
||||
{
|
||||
$this->validate($request, [
|
||||
'network_agent_id' => 'required|integer|exists:networks_agents,id'
|
||||
]);
|
||||
$network_agent_id = $request->input('network_agent_id');
|
||||
$agent = AgentPlus::where('network_agent_id', $network_agent_id)->first();
|
||||
$hyper = AgentPlus::where('network_id', $agent->network_id)->where('category', 'hyper')->first();
|
||||
$config = NhNetworksConfig::where('network_id', $agent->network_id)->first();
|
||||
if (!isset($config)) {
|
||||
return $this->errorResponse("Le nano sante n'est pas actif pour ce reseau");
|
||||
}
|
||||
|
||||
// executer le script chaque Dimanche a minuit
|
||||
$start_at = new DateTime();
|
||||
switch ($config->provider_billing_period) {
|
||||
case BillingPeriodType::WEEKLY:
|
||||
$start_at->modify('-7 days');
|
||||
break;
|
||||
case BillingPeriodType::BIMONTHLY:
|
||||
$start_at->modify('-14 days');
|
||||
break;
|
||||
case BillingPeriodType::MONTHLY:
|
||||
$start_at->modify('-28 days');
|
||||
break;
|
||||
default:
|
||||
$start_at = new DateTime();
|
||||
}
|
||||
|
||||
$end_at = new DateTime();
|
||||
|
||||
|
||||
$invoice_id = $this->generateInvoiceID($agent->code_membre);
|
||||
$country = CountriesCurrency::findOrFail($agent->country_id);
|
||||
$datetime = $this->getCurrentTimeByCountryCode($country->code_country);
|
||||
|
||||
$totalInsurerAmount = 0;
|
||||
$totalInsuredAmount = 0;
|
||||
$sheets = NhHealthCareSheet::with(['insurance'])->where('network_agent_id', $network_agent_id)->where('state', InsuranceSubscriptionState::ACCEPTED)
|
||||
->where('created_at', '>=', $start_at)->where('created_at', '<=', $end_at)->get();
|
||||
|
||||
if (sizeof($sheets) == 0) {
|
||||
return $this->errorResponse("Aucune feuille de soins acceptée");
|
||||
}
|
||||
|
||||
foreach ($sheets as $sheet) {
|
||||
$insurerAmount = 0;
|
||||
$insuredAmount = 0;
|
||||
|
||||
foreach ($sheet->performances as $p) {
|
||||
$insurerAmount += ($p->moderator_ticket ?? 0);
|
||||
$insuredAmount += ($p->insurance_amount ?? 0);
|
||||
}
|
||||
|
||||
foreach ($sheet->performances as $p) {
|
||||
$insurerAmount += ($p->insured_paid_amount ?? 0);
|
||||
$insuredAmount += ($p->insurer_paid_amount ?? 0);
|
||||
}
|
||||
|
||||
foreach ($sheet->performances as $p) {
|
||||
$insurerAmount += ($p->insured_paid_amount ?? 0);
|
||||
$insuredAmount += ($p->insurer_paid_amount ?? 0);
|
||||
}
|
||||
|
||||
$sheet->insurer_amount = $insurerAmount;
|
||||
$sheet->insured_amount = $insuredAmount;
|
||||
|
||||
$totalInsuredAmount += $insuredAmount;
|
||||
$totalInsurerAmount += $insurerAmount;
|
||||
|
||||
$sheet->date = $sheet->created_at->format('d/m/Y');
|
||||
}
|
||||
|
||||
try {
|
||||
DB::beginTransaction();
|
||||
|
||||
$directoryName = '/invoices/';
|
||||
$filename = $start_at->format('dmY') . '_' . $end_at->format('dmY') . '_' . $agent->code_membre . '.pdf';
|
||||
|
||||
$invoice = NhInvoice::create([
|
||||
'invoice_id' => $invoice_id,
|
||||
'network_agent_id' => $agent->network_agent_id,
|
||||
'amount' => $totalInsuredAmount + $totalInsurerAmount,
|
||||
'insured_amount' => $totalInsuredAmount,
|
||||
'insurer_amount' => $totalInsurerAmount,
|
||||
'period_start_at' => $start_at,
|
||||
'period_end_at' => $end_at,
|
||||
'file_url' => config('services.app_url') . $directoryName . $filename,
|
||||
'created_at' => $datetime,
|
||||
'updated_at' => $datetime
|
||||
]);
|
||||
|
||||
$invoice->amount = $this->toMoneyWithCurrencyCode($invoice->amount, $country->currency_code);
|
||||
$invoice->insured_amount = $this->toMoneyWithCurrencyCode($invoice->insured_amount, $country->currency_code);
|
||||
$invoice->insurer_amount = $this->toMoneyWithCurrencyCode($invoice->insurer_amount, $country->currency_code);
|
||||
$invoice->home_visit_fees = $this->toMoneyWithCurrencyCode($invoice->home_visit_fees, $country->currency_code);
|
||||
|
||||
$ids = array_map(function ($r) {
|
||||
return $r['id'];
|
||||
}, $sheets->toArray());
|
||||
|
||||
DB::update("UPDATE nh_health_care_sheets SET state = :state_ , invoice_id = :id WHERE id IN (" . implode(',', $ids) . ")",
|
||||
['id' => $invoice->id, 'state_' => InsuranceSubscriptionState::INVOICE_ISSUED]);
|
||||
|
||||
$invoice->sheets = $sheets;
|
||||
$invoice->agent = $agent;
|
||||
$invoice->hyper = $hyper;
|
||||
$invoice->period = $start_at->format('d/m/Y') . ' ' . trans('messages.to') . ' ' . $end_at->format('d/m/Y');
|
||||
|
||||
//Check if the directory already exists.
|
||||
if (!is_dir(public_path($directoryName))) {
|
||||
//Directory does not exist, so lets create it.
|
||||
mkdir($directoryName, 0755);
|
||||
}
|
||||
|
||||
$title = trans('messages.invoice') . ' ' . $invoice->period;
|
||||
$message = "";
|
||||
|
||||
$file = PDF::loadView('emails.invoice', $invoice->toArray())->setPaper('a4', 'landscape')->setWarnings(false)->save(public_path($directoryName . $filename));
|
||||
|
||||
DB::commit();
|
||||
$recipients = [preg_replace("/\s+/", "", $hyper->email)]; // Supprimer les espaces dans le mail
|
||||
Mail::mailer('smtp')->raw($message, function ($message) use ($recipients, $title, $file) {
|
||||
$message->subject($title)
|
||||
->to($recipients)
|
||||
->attachData($file->output(), $title . '.pdf');
|
||||
});
|
||||
|
||||
} catch (\Throwable $t) {
|
||||
DB::rollBack();
|
||||
Log::error('-------- Mail not sent -----------');
|
||||
Log::error($t->getMessage() . " :\n" . $t->getTraceAsString());
|
||||
}
|
||||
|
||||
return $this->successResponse("Invoice generated");
|
||||
}
|
||||
|
||||
private function generateInvoiceID($agent_code)
|
||||
{
|
||||
return date('d') . '/' . date('m') . '/' . date('Y') . '/' . $agent_code;
|
||||
}
|
||||
}
|
|
@ -1,138 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Agent;
|
||||
use App\Models\AgentPlus;
|
||||
use App\Models\TransfertCommissionTransaction;
|
||||
use App\Models\User;
|
||||
use App\Traits\ApiResponser;
|
||||
use App\Traits\Helper;
|
||||
use Barryvdh\DomPDF\Facade as PDF;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
class QRCodeController extends Controller
|
||||
{
|
||||
use ApiResponser;
|
||||
use Helper;
|
||||
|
||||
/**
|
||||
* Create a new controller instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//Generer le QRCode d'un utilisateur
|
||||
public function generate($id_user)
|
||||
{
|
||||
$user = User::findOrFail($id_user);
|
||||
try {
|
||||
//Check if the directory already exists.
|
||||
$directoryName = './qrcodes/';
|
||||
if (!is_dir($directoryName)) {
|
||||
mkdir($directoryName, 0755);
|
||||
}
|
||||
|
||||
$pdf = PDF::loadView('emails.qr_code', ['lastname' => $user->lastname, 'data' => $user->id])
|
||||
->setPaper('a4', 'portrait')->setWarnings(false)->save(public_path($directoryName . $user->id . '.pdf'));
|
||||
// $recipients = [preg_replace("/\s+/", "", $email)]; // Supprimer les espaces dans le mail
|
||||
// Mail::mailer('smtp')->raw($messageText, function ($message) use ($recipients, $title, $pdf, $notice) {
|
||||
// $message->subject($title)
|
||||
// ->to($recipients)
|
||||
// ->attachData($pdf->output(), $title . ' - ' . $notice->id_tax_notice . ".pdf");
|
||||
// });
|
||||
|
||||
$user->has_qr_code = 1;
|
||||
$user->save();
|
||||
return $this->successResponse(trans('messages.successful_transaction'));
|
||||
} catch (\Throwable $t) {
|
||||
Log::error('-------- Mail not sent -----------');
|
||||
Log::error($t->getMessage());
|
||||
return $this->errorResponse(trans('errors.unexpected_error'));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @OA\Get(
|
||||
* path="/qrcode/read/{id_user}",
|
||||
* summary="Lire les informations à partir de l'id de l'utilisateur obtenu en scanant le QRCode",
|
||||
* tags={"QRCode"},
|
||||
* security={{"api_key":{}}},
|
||||
* @OA\Parameter(
|
||||
* parameter="id_user",
|
||||
* name="id_user",
|
||||
* description="ID de l'utilisateur",
|
||||
* @OA\Schema(
|
||||
* type="integer"
|
||||
* ),
|
||||
* in="path",
|
||||
* required=true
|
||||
* ),
|
||||
* @OA\Response(
|
||||
* response=200,
|
||||
* description="OK",
|
||||
* @OA\JsonContent(
|
||||
* ref="#/components/schemas/ApiResponse",
|
||||
* example = {
|
||||
* "status" : 200,
|
||||
* "response" : {"id":349,"uid":"5fcb90ab7197f8.26608831",
|
||||
* "firstname":null,"lastname":"Tom Di","phone":"+237690716648","email":"ddoubletom@gmail.com","user_code":"vdVtq7ym9S","numero_carte":null,
|
||||
* "expiration_date":null,"adresse":"kotto","solde":0,"salt":"dbbaea33d9","validation_code":"xuty8dbq","active":1,"date_modified":"2020-12-05T14:52:43.000000Z",
|
||||
* "date_created":"2020-12-05T14:52:43.000000Z","network_id":185,"group_id":null,"balance_credit":0,"balance_epargne":0,"balance_nano_health":11335000,
|
||||
* "date_adhesion":null,"id_bank_country":null,"iban":null},
|
||||
* "error":null
|
||||
* }
|
||||
* )
|
||||
* )
|
||||
* )
|
||||
*/
|
||||
//Lire les infos d'un utilisateur à partir de son id
|
||||
public function read($id_user)
|
||||
{
|
||||
$user = User::findOrFail($id_user);
|
||||
return $this->successResponse($user);
|
||||
}
|
||||
|
||||
/**
|
||||
* @OA\Get(
|
||||
* path="/qrcode/image/{id_user}",
|
||||
* summary="Generer l'image du QRCode d'un utilisateur à partir de son id",
|
||||
* tags={"QRCode"},
|
||||
* security={{"api_key":{}}},
|
||||
* @OA\Parameter(
|
||||
* parameter="id_user",
|
||||
* name="id_user",
|
||||
* description="ID de l'utilisateur",
|
||||
* @OA\Schema(
|
||||
* type="integer"
|
||||
* ),
|
||||
* in="path",
|
||||
* required=true
|
||||
* ),
|
||||
* @OA\Response(
|
||||
* response=200,
|
||||
* description="OK",
|
||||
* @OA\JsonContent(
|
||||
* ref="#/components/schemas/ApiResponse",
|
||||
* example = {
|
||||
* "status" : 200,
|
||||
* "response" : "image en base64",
|
||||
* "error":null
|
||||
* }
|
||||
* )
|
||||
* )
|
||||
* )
|
||||
*/
|
||||
//Generer l'image du QRCode d'un utilisateur à partir de son id
|
||||
public function image($id_user)
|
||||
{
|
||||
$user = User::findOrFail($id_user);
|
||||
return $this->successResponse(base64_encode(\SimpleSoftwareIO\QrCode\Facades\QrCode::format('svg')
|
||||
->size(300)->errorCorrection('H')
|
||||
->generate($user->id)));
|
||||
}
|
||||
}
|
|
@ -8,4 +8,5 @@ abstract class InsuranceSubscriptionState
|
|||
const AWAITING_FURTHER_INFORMATION = 'AWAITING_FURTHER_INFORMATION';
|
||||
const ACCEPTED = 'ACCEPTED';
|
||||
const REJECTED = 'REJECTED';
|
||||
const INVOICE_ISSUED = 'INVOICE_ISSUED';
|
||||
}
|
||||
|
|
|
@ -30,6 +30,7 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property string $type
|
||||
* @property string $state
|
||||
* @property int $prescription_sheet_id
|
||||
* @property int $invoice_id
|
||||
* @property Carbon $created_at
|
||||
* @property Carbon $updated_at
|
||||
*
|
||||
|
@ -69,7 +70,8 @@ class NhHealthCareSheet extends Model
|
|||
'pregnancy_end_at',
|
||||
'type',
|
||||
'state',
|
||||
'prescription_sheet_id'
|
||||
'prescription_sheet_id',
|
||||
'invoice_id'
|
||||
];
|
||||
|
||||
public function institution()
|
||||
|
|
|
@ -0,0 +1,54 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Created by Reliese Model.
|
||||
*/
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* Class NhInvoice
|
||||
*
|
||||
* @property int $id
|
||||
* @property string $invoice_id
|
||||
* @property int $network_agent_id
|
||||
* @property float $amount
|
||||
* @property float $insured_amount
|
||||
* @property float $insurer_amount
|
||||
* @property Carbon $period_start_at
|
||||
* @property Carbon $period_end_at
|
||||
* @property string|null $file_url
|
||||
* @property Carbon $created_at
|
||||
* @property Carbon $updated_at
|
||||
*
|
||||
* @package App\Models
|
||||
*/
|
||||
class NhInvoice extends Model
|
||||
{
|
||||
protected $table = 'nh_invoices';
|
||||
|
||||
protected $casts = [
|
||||
'network_agent_id' => 'int',
|
||||
];
|
||||
|
||||
protected $dates = [
|
||||
'period_start_at',
|
||||
'period_end_at'
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'invoice_id',
|
||||
'network_agent_id',
|
||||
'amount',
|
||||
'insured_amount',
|
||||
'insurer_amount',
|
||||
'period_start_at',
|
||||
'period_end_at',
|
||||
'file_url',
|
||||
'created_at',
|
||||
'updated_at'
|
||||
];
|
||||
}
|
|
@ -64,6 +64,10 @@ $app->configure('swagger-lume');
|
|||
$app->configure('services');
|
||||
$app->configure('sentry');
|
||||
$app->configure('dompdf');
|
||||
$app->configure('mail');
|
||||
$app->alias('mailer', Illuminate\Mail\Mailer::class);
|
||||
$app->alias('mailer', Illuminate\Contracts\Mail\Mailer::class);
|
||||
$app->alias('mailer', Illuminate\Contracts\Mail\MailQueue::class);
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
@ -105,6 +109,7 @@ $app->register(\MigrationsGenerator\MigrationsGeneratorServiceProvider::class);
|
|||
$app->register('Sentry\Laravel\ServiceProvider');
|
||||
$app->register('Sentry\Laravel\Tracing\ServiceProvider');
|
||||
$app->register(\Barryvdh\DomPDF\ServiceProvider::class);
|
||||
$app->register(Illuminate\Mail\MailServiceProvider::class);
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
|
@ -7,15 +7,17 @@
|
|||
"require": {
|
||||
"php": "^7.3|^8.0",
|
||||
"ext-gd": "*",
|
||||
"ext-intl": "*",
|
||||
"ext-json": "*",
|
||||
"barryvdh/laravel-dompdf": "^0.9.0",
|
||||
"brick/money": "^0.5.2",
|
||||
"darkaonline/swagger-lume": "^8.0",
|
||||
"fightbulc/moment": "^1.33",
|
||||
"guzzlehttp/guzzle": "^7.3",
|
||||
"illuminate/mail": "^8.80",
|
||||
"kitloong/laravel-migrations-generator": "^5.0",
|
||||
"laravel/lumen-framework": "^8.0",
|
||||
"sentry/sentry-laravel": "^2.9",
|
||||
"simplesoftwareio/simple-qrcode": "^4.2"
|
||||
"sentry/sentry-laravel": "^2.9"
|
||||
},
|
||||
"require-dev": {
|
||||
"fakerphp/faker": "^1.9.1",
|
||||
|
|
|
@ -0,0 +1,110 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Mailer
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option controls the default mailer that is used to send any email
|
||||
| messages sent by your application. Alternative mailers may be setup
|
||||
| and used as needed; however, this mailer will be used by default.
|
||||
|
|
||||
*/
|
||||
|
||||
'default' => env('MAIL_MAILER', 'smtp'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Mailer Configurations
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may configure all of the mailers used by your application plus
|
||||
| their respective settings. Several examples have been configured for
|
||||
| you and you are free to add your own as your application requires.
|
||||
|
|
||||
| Laravel supports a variety of mail "transport" drivers to be used while
|
||||
| sending an e-mail. You will specify which one you are using for your
|
||||
| mailers below. You are free to add additional mailers as required.
|
||||
|
|
||||
| Supported: "smtp", "sendmail", "mailgun", "ses",
|
||||
| "postmark", "log", "array"
|
||||
|
|
||||
*/
|
||||
|
||||
'mailers' => [
|
||||
'smtp' => [
|
||||
'transport' => 'smtp',
|
||||
'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
|
||||
'port' => env('MAIL_PORT', 587),
|
||||
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
|
||||
'username' => env('MAIL_USERNAME'),
|
||||
'password' => env('MAIL_PASSWORD'),
|
||||
'timeout' => null,
|
||||
'auth_mode' => null,
|
||||
],
|
||||
|
||||
'ses' => [
|
||||
'transport' => 'ses',
|
||||
],
|
||||
|
||||
'mailgun' => [
|
||||
'transport' => 'mailgun',
|
||||
],
|
||||
|
||||
'postmark' => [
|
||||
'transport' => 'postmark',
|
||||
],
|
||||
|
||||
'sendmail' => [
|
||||
'transport' => 'sendmail',
|
||||
'path' => '/usr/sbin/sendmail -bs',
|
||||
],
|
||||
|
||||
'log' => [
|
||||
'transport' => 'log',
|
||||
'channel' => env('MAIL_LOG_CHANNEL'),
|
||||
],
|
||||
|
||||
'array' => [
|
||||
'transport' => 'array',
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Global "From" Address
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| You may wish for all e-mails sent by your application to be sent from
|
||||
| the same address. Here, you may specify a name and address that is
|
||||
| used globally for all e-mails that are sent by your application.
|
||||
|
|
||||
*/
|
||||
|
||||
'from' => [
|
||||
'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
|
||||
'name' => env('MAIL_FROM_NAME', 'Example'),
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Markdown Mail Settings
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you are using Markdown based email rendering, you may configure your
|
||||
| theme and component paths here, allowing you to customize the design
|
||||
| of the emails. Or, you may simply stick with the Laravel defaults!
|
||||
|
|
||||
*/
|
||||
|
||||
'markdown' => [
|
||||
'theme' => 'default',
|
||||
|
||||
'paths' => [
|
||||
resource_path('views/vendor/mail'),
|
||||
],
|
||||
],
|
||||
|
||||
];
|
|
@ -5,5 +5,6 @@ return [
|
|||
'notification_service' => [
|
||||
'base_uri' => env('NOTIFICATION_SERVICE_URL'),
|
||||
'key' => env('NOTIFICATION_SERVICE_KEY')
|
||||
]
|
||||
],
|
||||
'app_url' => env('APP_URL')
|
||||
];
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateNhInfosInsurancesView extends Migration
|
||||
|
|
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateNhInvoicesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('nh_invoices', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('invoice_id');
|
||||
$table->integer('network_agent_id');
|
||||
$table->decimal('amount', 12, 2);
|
||||
$table->decimal('insured_amount', 10, 2)->comment("Part à payer par assuré");
|
||||
$table->decimal('insurer_amount', 10, 2)->comment("Part à la charge assureur");
|
||||
$table->date('period_start_at');
|
||||
$table->date('period_end_at');
|
||||
$table->string('file_url')->nullable();
|
||||
$table->timestamp('created_at')->useCurrent();
|
||||
$table->timestamp('updated_at')->useCurrent();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('nh_invoices');
|
||||
}
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddInvoiceIdToNhHealthCareSheetsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('nh_health_care_sheets', function (Blueprint $table) {
|
||||
$table->integer('invoice_id')->after('prescription_sheet_id')->nullable();
|
||||
DB::statement("ALTER TABLE nh_health_care_sheets MODIFY state
|
||||
ENUM('UNDER_VALIDATION', 'ACCEPTED', 'REJECTED', 'INVOICE_ISSUED') DEFAULT 'UNDER_VALIDATION' NOT NULL;");
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('nh_health_care_sheets', function (Blueprint $table) {
|
||||
$table->dropColumn('invoice_id');
|
||||
});
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateNhInfosInvoicesView extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
DB::statement("CREATE OR REPLACE VIEW nh_infos_invoices AS
|
||||
SELECT nhi.*,
|
||||
ag.lastname as institution_name,
|
||||
ag.code_membre as institution_code,
|
||||
ag.network_id as network_id,
|
||||
cc.currency_code
|
||||
FROM nh_invoices nhi
|
||||
INNER JOIN agent_plus ag ON ag.network_agent_id = nhi.network_agent_id
|
||||
INNER JOIN countries_currencies cc ON cc.id = ag.country_id
|
||||
ORDER BY nhi.created_at DESC");
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('nh_infos_invoices_view');
|
||||
}
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 7.8 KiB |
|
@ -114,4 +114,18 @@ A new consultation or prescription has been made with your insurance.
|
|||
"care_sheet_resubmitted" => "The care sheet has been resubmitted",
|
||||
'execution_carried_out' => "Execution of prescription carried out",
|
||||
'consultation_or_prescription_updated' => "Consultation or prescription updated",
|
||||
'amount' => 'Amount',
|
||||
'total_amount' => 'Total Amount',
|
||||
'insured_part' => 'Insured Part',
|
||||
'total_insured_part' => 'Total Insured Part',
|
||||
'insurance_part' => 'Insurance_part',
|
||||
'total_insurance_part' => 'Total Insurance Part',
|
||||
'to' => 'to',
|
||||
'invoice' => 'Invoice',
|
||||
'provider_institution_code' => 'provider_institution_code',
|
||||
'insurance_name' => 'Insurance name',
|
||||
'institution_name' => "Institution name",
|
||||
'phone' => "Telephone",
|
||||
'transmitter' => "Transmitter",
|
||||
'recipient' => "Recipient"
|
||||
];
|
||||
|
|
|
@ -24,5 +24,6 @@ return [
|
|||
'LONG_TERM_AFFECTION' => "LONG TERM AFFECTION",
|
||||
'EXONERATION' => "EXONERATION",
|
||||
'HAVING_RIGHT' => "HAVING RIGHT",
|
||||
'INSURED' => 'INSURED'
|
||||
'INSURED' => 'INSURED',
|
||||
'INVOICE_ISSUED' => 'INVOICE ISSUED'
|
||||
];
|
||||
|
|
|
@ -130,4 +130,18 @@ Une nouvelle execution de prescription vient d'etre effectuée sur votre assuran
|
|||
Connectez-vous à l'application pour avoir plus de details et valider cette opération.
|
||||
",
|
||||
'consultation_or_prescription_updated' => "Consultation ou prescription mise à jour",
|
||||
'amount' => 'Montant',
|
||||
'total_amount' => 'Total Montant',
|
||||
'insured_part' => 'Part assuré',
|
||||
'total_insured_part' => 'Total Part assuré',
|
||||
'insurance_part' => 'Part assurance',
|
||||
'total_insurance_part' => 'Total Part assurance',
|
||||
'to' => 'au',
|
||||
'invoice' => 'Facture',
|
||||
'provider_institution_code' => 'Code établissement prestataire',
|
||||
'insurance_name' => 'Nom assurance',
|
||||
'institution_name' => "Nom établissement",
|
||||
'phone' => "Téléphone",
|
||||
'transmitter' => "Émetteur",
|
||||
'recipient' => "Destinataire"
|
||||
];
|
||||
|
|
|
@ -24,5 +24,6 @@ return [
|
|||
'LONG_TERM_AFFECTION' => "AFFECTION LONGUE DURÉE",
|
||||
'EXONERATION' => "EXONERATION",
|
||||
'HAVING_RIGHT' => "AYANT DROIT",
|
||||
'INSURED' => 'ASSURÉ'
|
||||
'INSURED' => 'ASSURÉ',
|
||||
'INVOICE_ISSUED' => 'FACTURE ÉMISE'
|
||||
];
|
||||
|
|
|
@ -0,0 +1,437 @@
|
|||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
|
||||
<meta name=Generator content="Microsoft Word 15 (filtered)">
|
||||
<style>
|
||||
<!--
|
||||
/* Font Definitions */
|
||||
@font-face {
|
||||
font-family: Wingdings;
|
||||
panose-1: 5 0 0 0 0 0 0 0 0 0;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Cambria Math";
|
||||
panose-1: 2 4 5 3 5 4 6 3 2 4;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Calibri;
|
||||
panose-1: 2 15 5 2 2 2 4 3 2 4;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Tahoma;
|
||||
panose-1: 2 11 6 4 3 5 4 4 2 4;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Segoe UI";
|
||||
panose-1: 2 11 5 2 4 2 4 2 2 3;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Garamond;
|
||||
panose-1: 2 2 4 4 3 3 1 1 8 3;
|
||||
}
|
||||
|
||||
/* Style Definitions */
|
||||
p.MsoNormal, li.MsoNormal, div.MsoNormal {
|
||||
margin: 0in;
|
||||
font-size: 12.0pt;
|
||||
font-family: "Times New Roman", serif;
|
||||
}
|
||||
|
||||
p.MsoHeader, li.MsoHeader, div.MsoHeader {
|
||||
mso-style-link: "Header Char";
|
||||
margin: 0in;
|
||||
font-size: 12.0pt;
|
||||
font-family: "Times New Roman", serif;
|
||||
}
|
||||
|
||||
p.MsoNoSpacing, li.MsoNoSpacing, div.MsoNoSpacing {
|
||||
margin: 0in;
|
||||
font-size: 11.0pt;
|
||||
font-family: "Calibri", sans-serif;
|
||||
}
|
||||
|
||||
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
|
||||
margin-top: 0in;
|
||||
margin-right: 0in;
|
||||
margin-bottom: 0in;
|
||||
margin-left: .5in;
|
||||
font-size: 12.0pt;
|
||||
font-family: "Times New Roman", serif;
|
||||
}
|
||||
|
||||
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst {
|
||||
margin-top: 0in;
|
||||
margin-right: 0in;
|
||||
margin-bottom: 0in;
|
||||
margin-left: .5in;
|
||||
font-size: 12.0pt;
|
||||
font-family: "Times New Roman", serif;
|
||||
}
|
||||
|
||||
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle {
|
||||
margin-top: 0in;
|
||||
margin-right: 0in;
|
||||
margin-bottom: 0in;
|
||||
margin-left: .5in;
|
||||
font-size: 12.0pt;
|
||||
font-family: "Times New Roman", serif;
|
||||
}
|
||||
|
||||
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
|
||||
margin-top: 0in;
|
||||
margin-right: 0in;
|
||||
margin-bottom: 0in;
|
||||
margin-left: .5in;
|
||||
font-size: 12.0pt;
|
||||
font-family: "Times New Roman", serif;
|
||||
}
|
||||
|
||||
span.HeaderChar {
|
||||
mso-style-name: "Header Char";
|
||||
mso-style-link: Header;
|
||||
font-family: "Times New Roman", serif;
|
||||
}
|
||||
|
||||
.MsoChpDefault {
|
||||
font-family: "Calibri", sans-serif;
|
||||
}
|
||||
|
||||
.MsoPapDefault {
|
||||
margin-bottom: 8.0pt;
|
||||
line-height: 107%;
|
||||
}
|
||||
|
||||
/* Page Definitions */
|
||||
@page WordSection1 {
|
||||
size: 595.3pt 841.9pt;
|
||||
margin: 44.95pt 49.55pt 42.55pt 70.85pt;
|
||||
}
|
||||
|
||||
div.WordSection1 {
|
||||
page: WordSection1;
|
||||
}
|
||||
|
||||
/* List Definitions */
|
||||
ol {
|
||||
margin-bottom: 0in;
|
||||
}
|
||||
|
||||
ul {
|
||||
margin-bottom: 0in;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
li::before {
|
||||
content: "-";
|
||||
display: inline-block;
|
||||
width: 1em;
|
||||
margin-left: -1.3em
|
||||
}
|
||||
|
||||
-->
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body style='word-wrap:break-word'>
|
||||
|
||||
<img width=150 height=100 style="position: absolute; top: 65px;"
|
||||
src="{{public_path('logo.png')}}">
|
||||
|
||||
<div class=WordSection1>
|
||||
|
||||
<span style='font-size:11.0pt;font-family:"Tahoma",sans-serif;color:black'>iLink World Corporation</span>
|
||||
|
||||
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Tahoma",sans-serif;
|
||||
color:black;margin-left: 45px;'>-------------------</span></p>
|
||||
|
||||
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Tahoma",sans-serif;
|
||||
color:black'>Le numérique au service de l'inclusion financière</span></p>
|
||||
|
||||
<p class=MsoNormal align=center style='text-align:center ; margin-top: 150px'>
|
||||
<b><u><span style='font-size:16.0pt;font-family:"Garamond",serif;color:black'>
|
||||
{{__('messages.invoice')}} N° {{$invoice_id}}</span></u></b>
|
||||
<br/><span style='font-size:14pt;font-family:"Garamond",serif;color:black'> {{$period}} </span>
|
||||
</p>
|
||||
|
||||
{{-- <p style="font-size:10.0pt;font-family:'Garamond';margin-top: 15px ; text-align: left">--}}
|
||||
{{-- En application de la loi des finances rectificative 2009, Titre III relatives aux ressources des collectivités--}}
|
||||
{{-- locales en son article 15--}}
|
||||
{{-- et de la <b>Délibération n°006/PE/DKM/CA/CM/SG du 26 juin 2014</b> portant prélèvement des droits et taxes sur--}}
|
||||
{{-- le territoire de la Commune d’Akanda.--}}
|
||||
{{-- </p>--}}
|
||||
|
||||
<table class=MsoTable15Plain5 border=0 cellspacing=0 cellpadding=0
|
||||
style='border-collapse:collapse;margin-top: 35px'>
|
||||
<tr>
|
||||
<td width=321 colspan=2 valign=top style='width:360.25pt;border:none;
|
||||
border-bottom:solid #7F7F7F 1.0pt;background:white;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:11.0pt;font-family:"Garamond",serif;color:black'>{{__('messages.transmitter')}}</span></b>
|
||||
</p>
|
||||
</td>
|
||||
<td width=311 colspan=2 valign=top style='width:372.65pt;border:none;
|
||||
border-bottom:solid #7F7F7F 1.0pt;background:white;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:11.0pt;font-family:"Garamond",serif;color:black'>{{__('messages.recipient')}}</span></b>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=142 valign=top style='width:106.35pt;border:none;border-right:solid #7F7F7F 1.0pt;
|
||||
background:white;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=right style='text-align:right'><i><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>{{__('messages.provider_institution_code')}}</span></i>
|
||||
</p>
|
||||
</td>
|
||||
<td width=180 valign=top style='width:134.65pt;background:#F2F2F2;padding:
|
||||
0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>{{$agent->code_membre}}</span></b></p>
|
||||
</td>
|
||||
<td width=198 valign=top style='width:148.85pt;background:#F2F2F2;padding:
|
||||
0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>{{__('messages.insurance_name')}}</span></p>
|
||||
</td>
|
||||
<td width=113 valign=top style='width:84.55pt;background:#F2F2F2;padding:
|
||||
0in 5.4pt 0in 5.4pt ; margin-right: 10.25pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>{{$hyper->lastname}}</span></b>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=142 valign=top style='width:106.35pt;border:none;border-right:solid #7F7F7F 1.0pt;
|
||||
background:white;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=right style='text-align:right'><i><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>{{__('messages.insurance_name')}}</span></i>
|
||||
</p>
|
||||
</td>
|
||||
<td width=180 valign=top style='width:134.65pt;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>{{$agent->lastname}}</span></b></p>
|
||||
</td>
|
||||
{{-- <td width=198 valign=top style='width:148.85pt;padding:0in 5.4pt 0in 5.4pt'>--}}
|
||||
{{-- <p class=MsoNormal><span style='font-size:9.0pt;font-family:"Garamond",serif;--}}
|
||||
{{-- color:black'>Quartier</span></p>--}}
|
||||
{{-- </td>--}}
|
||||
{{-- <td width=113 valign=top style='width:84.55pt;padding:0in 5.4pt 0in 5.4pt'>--}}
|
||||
{{-- <p class=MsoNormal align=center style='text-align:center'><b><span--}}
|
||||
{{-- style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>{{$neighborhood}}</span></b>--}}
|
||||
{{-- </p>--}}
|
||||
{{-- </td>--}}
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=142 valign=top style='width:106.35pt;border:none;border-right:solid #7F7F7F 1.0pt;
|
||||
background:white;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=right style='text-align:right'><i><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>{{__('messages.phone')}}</span></i>
|
||||
</p>
|
||||
</td>
|
||||
<td width=180 valign=top style='width:134.65pt;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>{{$agent->phone}}</span></b></p>
|
||||
</td>
|
||||
{{-- <td width=198 valign=top style='width:148.85pt;padding:0in 5.4pt 0in 5.4pt'>--}}
|
||||
{{-- <p class=MsoNormal><span style='font-size:9.0pt;font-family:"Garamond",serif;--}}
|
||||
{{-- color:black'>Année N-1 {{$registration_year-1}}</span></p>--}}
|
||||
{{-- </td>--}}
|
||||
{{-- <td width=113 valign=top style='width:84.55pt;padding:0in 5.4pt 0in 5.4pt'>--}}
|
||||
{{-- <p class=MsoNormal align=center style='text-align:center'><b><span--}}
|
||||
{{-- style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>{{ $year_tax_paid_N_1 ? 'Payé' : 'Non Payé' }}</span></b>--}}
|
||||
{{-- </p>--}}
|
||||
{{-- </td>--}}
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p class=MsoNormal align=center style='text-align:center'><span
|
||||
style='font-size:7.0pt;font-family:"Garamond",serif;color:black'>-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</span>
|
||||
</p>
|
||||
|
||||
<p class=MsoNoSpacing style='margin-left:.5in;text-align:justify;margin-top: 5px;margin-bottom: 7px'><span
|
||||
style='font-size:10.0pt;font-family:"Garamond",serif;color:black'>Détail des feuilles de soins pour la période:</span>
|
||||
</p>
|
||||
|
||||
<table class=MsoTable15Plain1 border=1 cellspacing=0 cellpadding=0
|
||||
style='border-collapse:collapse;border:none'>
|
||||
<tr>
|
||||
<td width=85 valign=top style='width:88.5pt;border:solid #BFBFBF 1.0pt;
|
||||
padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:10.0pt;font-family:"Garamond",serif;color:black'>N° Feuille</span></b>
|
||||
</p>
|
||||
</td>
|
||||
<td width=85 valign=top style='width:80pt;border:solid #BFBFBF 1.0pt;
|
||||
padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:10.0pt;font-family:"Garamond",serif;color:black'>Type</span></b>
|
||||
</p>
|
||||
</td>
|
||||
<td width=236 valign=top style='width:86.85pt;border:solid #BFBFBF 1.0pt;
|
||||
border-left:none;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:10.0pt;font-family:"Garamond",serif;color:black'>Patient</span></b></p>
|
||||
</td>
|
||||
<td width=236 valign=top style='width:86.85pt;border:solid #BFBFBF 1.0pt;
|
||||
border-left:none;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:10.0pt;font-family:"Garamond",serif;color:black'>Praticien</span></b></p>
|
||||
</td>
|
||||
<td width=66 valign=top style='width:79.55pt;border:solid #BFBFBF 1.0pt;
|
||||
border-left:none;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:10.0pt;font-family:"Garamond",serif;color:black'>N° Assuré</span></b>
|
||||
</p>
|
||||
</td>
|
||||
<td width=35 valign=top style='width:57.55pt;border:solid #BFBFBF 1.0pt;
|
||||
border-left:none;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:10.0pt;font-family:"Garamond",serif;color:black'>{{__('messages.amount')}}</span></b>
|
||||
</p>
|
||||
</td>
|
||||
<td width=98 valign=top style='width:68.3pt;border:solid #BFBFBF 1.0pt;
|
||||
border-left:none;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:10.0pt;font-family:"Garamond",serif;color:black'>{{__('messages.insured_part')}}</span></b>
|
||||
</p>
|
||||
</td>
|
||||
<td width=113 valign=top style='width:74.65pt;border:solid #BFBFBF 1.0pt;
|
||||
border-left:none;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:10.0pt;font-family:"Garamond",serif;color:black'>{{__('messages.insurance_part')}}</span></b>
|
||||
</p>
|
||||
</td>
|
||||
<td width=113 valign=top style='width:49.65pt;border:solid #BFBFBF 1.0pt;
|
||||
border-left:none;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:10.0pt;font-family:"Garamond",serif;color:black'>Date</span></b>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
$fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
||||
?>
|
||||
|
||||
@foreach($sheets as $sheet)
|
||||
<?php
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td width=85 valign=top style='width:88.5pt;border:solid #BFBFBF 1.0pt;
|
||||
border-top:none;background:#F2F2F2;padding:0in 5.4pt 0in 5.4pt;text-align:center'>
|
||||
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black;'>{{$sheet->health_care_sheet_id}}</span></b></p>
|
||||
</td>
|
||||
<td width=85 valign=top style='width:80pt;border:solid #BFBFBF 1.0pt;
|
||||
border-top:none;background:#F2F2F2;padding:0in 5.4pt 0in 5.4pt;text-align:center'>
|
||||
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>{{$sheet->type}}</span></p>
|
||||
</td>
|
||||
<td width=236 valign=top style='width:86.85pt;border-top:none;border-left:
|
||||
none;border-bottom:solid #BFBFBF 1.0pt;border-right:solid #BFBFBF 1.0pt;
|
||||
background:#F2F2F2;padding:0in 5.4pt 0in 5.4pt;text-align:center'>
|
||||
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black;text-align:center'>{{$sheet->patient_lastname.' '.$sheet->patient_firstname}}</span></p>
|
||||
</td>
|
||||
<td width=236 valign=top style='width:86.85pt;border-top:none;border-left:
|
||||
none;border-bottom:solid #BFBFBF 1.0pt;border-right:solid #BFBFBF 1.0pt;
|
||||
background:#F2F2F2;padding:0in 5.4pt 0in 5.4pt;text-align:center'>
|
||||
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>{{$sheet->practitioner_lastname.' '.$sheet->practitioner_firstname}}</span></p>
|
||||
</td>
|
||||
<td width=66 valign=top style='width:79.55pt;border-top:none;border-left:
|
||||
none;border-bottom:solid #BFBFBF 1.0pt;border-right:solid #BFBFBF 1.0pt;
|
||||
background:#F2F2F2;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>{{$sheet->insurance->insured_id}}</span>
|
||||
</p>
|
||||
</td>
|
||||
<td width=35 valign=top style='width:57.55pt;border-top:none;border-left:
|
||||
none;border-bottom:solid #BFBFBF 1.0pt;border-right:solid #BFBFBF 1.0pt;
|
||||
background:#F2F2F2;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>{{$fmt->format($sheet->insured_amount + $sheet->insurer_amount)}}</span>
|
||||
</p>
|
||||
</td>
|
||||
<td width=98 valign=top style='width:68.3pt;border-top:none;border-left:none;
|
||||
border-bottom:solid #BFBFBF 1.0pt;border-right:solid #BFBFBF 1.0pt;
|
||||
background:#F2F2F2;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>{{$fmt->format($sheet->insured_amount)}}</span>
|
||||
</p>
|
||||
</td>
|
||||
<td width=113 valign=top style='width:74.65pt;border-top:none;border-left:
|
||||
none;border-bottom:solid #BFBFBF 1.0pt;border-right:solid #BFBFBF 1.0pt;
|
||||
background:#F2F2F2;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>{{$fmt->format($sheet->insurer_amount)}}</span>
|
||||
</p>
|
||||
</td>
|
||||
<td width=113 valign=top style='width:49.65pt;border-top:none;border-left:
|
||||
none;border-bottom:solid #BFBFBF 1.0pt;border-right:solid #BFBFBF 1.0pt;
|
||||
background:#F2F2F2;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>{{$sheet->date}}</span>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
|
||||
<p class=MsoNormal><span style='font-size:5.0pt;font-family:"Garamond",serif;
|
||||
color:black'> </span></p>
|
||||
<table class=MsoTable15Plain1 border=1 cellspacing=0 cellpadding=0
|
||||
style='border-collapse:collapse;border:none; margin-top: 10px'>
|
||||
<tr>
|
||||
<td width=425 valign=top style='width:415pt;border:solid #BFBFBF 1.0pt;
|
||||
padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><b><span style='font-family:"Garamond",serif;
|
||||
color:black'>{{strtoupper(__('messages.total_amount'))}}</span></b></p>
|
||||
</td>
|
||||
<td width=208 valign=top style='width:334.5pt;border:solid #BFBFBF 1.0pt;
|
||||
border-left:none;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=right style='text-align:right'><b><span
|
||||
style='font-family:"Garamond",serif;color:black'>{{$amount}}</span></b>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=425 valign=top style='width:415pt;border:solid #BFBFBF 1.0pt;
|
||||
padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><b><span style='font-family:"Garamond",serif;
|
||||
color:black'>{{mb_strtoupper(__('messages.total_insured_part'),'UTF-8')}}</span></b></p>
|
||||
</td>
|
||||
<td width=208 valign=top style='width:334.5pt;border:solid #BFBFBF 1.0pt;
|
||||
border-left:none;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=right style='text-align:right'><b><span
|
||||
style='font-family:"Garamond",serif;color:black'>{{$insured_amount}}</span></b>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width=425 valign=top style='width:415pt;border:solid #BFBFBF 1.0pt;
|
||||
padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><b><span style='font-family:"Garamond",serif;
|
||||
color:black'>{{strtoupper(__('messages.total_insurance_part'))}}</span></b></p>
|
||||
</td>
|
||||
<td width=208 valign=top style='width:334.5pt;border:solid #BFBFBF 1.0pt;
|
||||
border-left:none;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=right style='text-align:right'><b><span
|
||||
style='font-family:"Garamond",serif;color:black'>{{$insurer_amount}}</span></b>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -1,200 +0,0 @@
|
|||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
|
||||
<meta name=Generator content="QRCode">
|
||||
<style>
|
||||
<!--
|
||||
/* Font Definitions */
|
||||
@font-face {
|
||||
font-family: Wingdings;
|
||||
panose-1: 5 0 0 0 0 0 0 0 0 0;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Cambria Math";
|
||||
panose-1: 2 4 5 3 5 4 6 3 2 4;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Calibri;
|
||||
panose-1: 2 15 5 2 2 2 4 3 2 4;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Tahoma;
|
||||
panose-1: 2 11 6 4 3 5 4 4 2 4;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Segoe UI";
|
||||
panose-1: 2 11 5 2 4 2 4 2 2 3;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Garamond;
|
||||
panose-1: 2 2 4 4 3 3 1 1 8 3;
|
||||
}
|
||||
|
||||
/* Style Definitions */
|
||||
p.MsoNormal, li.MsoNormal, div.MsoNormal {
|
||||
margin: 0in;
|
||||
font-size: 12.0pt;
|
||||
font-family: "Times New Roman", serif;
|
||||
}
|
||||
|
||||
p.MsoHeader, li.MsoHeader, div.MsoHeader {
|
||||
mso-style-link: "Header Char";
|
||||
margin: 0in;
|
||||
font-size: 12.0pt;
|
||||
font-family: "Times New Roman", serif;
|
||||
}
|
||||
|
||||
p.MsoNoSpacing, li.MsoNoSpacing, div.MsoNoSpacing {
|
||||
margin: 0in;
|
||||
font-size: 11.0pt;
|
||||
font-family: "Calibri", sans-serif;
|
||||
}
|
||||
|
||||
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
|
||||
margin-top: 0in;
|
||||
margin-right: 0in;
|
||||
margin-bottom: 0in;
|
||||
margin-left: .5in;
|
||||
font-size: 12.0pt;
|
||||
font-family: "Times New Roman", serif;
|
||||
}
|
||||
|
||||
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst {
|
||||
margin-top: 0in;
|
||||
margin-right: 0in;
|
||||
margin-bottom: 0in;
|
||||
margin-left: .5in;
|
||||
font-size: 12.0pt;
|
||||
font-family: "Times New Roman", serif;
|
||||
}
|
||||
|
||||
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle {
|
||||
margin-top: 0in;
|
||||
margin-right: 0in;
|
||||
margin-bottom: 0in;
|
||||
margin-left: .5in;
|
||||
font-size: 12.0pt;
|
||||
font-family: "Times New Roman", serif;
|
||||
}
|
||||
|
||||
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
|
||||
margin-top: 0in;
|
||||
margin-right: 0in;
|
||||
margin-bottom: 0in;
|
||||
margin-left: .5in;
|
||||
font-size: 12.0pt;
|
||||
font-family: "Times New Roman", serif;
|
||||
}
|
||||
|
||||
span.HeaderChar {
|
||||
mso-style-name: "Header Char";
|
||||
mso-style-link: Header;
|
||||
font-family: "Times New Roman", serif;
|
||||
}
|
||||
|
||||
.MsoChpDefault {
|
||||
font-family: "Calibri", sans-serif;
|
||||
}
|
||||
|
||||
.MsoPapDefault {
|
||||
margin-bottom: 8.0pt;
|
||||
line-height: 107%;
|
||||
}
|
||||
|
||||
/* Page Definitions */
|
||||
@page WordSection1 {
|
||||
size: 595.3pt 841.9pt;
|
||||
margin: 44.95pt 49.55pt 42.55pt 70.85pt;
|
||||
}
|
||||
|
||||
div.WordSection1 {
|
||||
page: WordSection1;
|
||||
}
|
||||
|
||||
/* List Definitions */
|
||||
ol {
|
||||
margin-bottom: 0in;
|
||||
}
|
||||
|
||||
ul {
|
||||
margin-bottom: 0in;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
li::before {
|
||||
content: "-";
|
||||
display: inline-block;
|
||||
width: 1em;
|
||||
margin-left: -1.3em
|
||||
}
|
||||
|
||||
-->
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body style='word-wrap:break-word'>
|
||||
|
||||
<img width=71 height=83 style="position: absolute; left: 567px;top: 60px;"
|
||||
src="{{public_path('logo.jpeg')}}">
|
||||
|
||||
<div class=WordSection1>
|
||||
|
||||
<p class=MsoNormal>
|
||||
<span style='position:absolute;z-index:251659264;margin-left:
|
||||
512px;margin-top:0px;width:202px;height:55px'>REPUBLIQUE GABONAISE</span>
|
||||
|
||||
<span style='font-size:11.0pt;font-family:"Tahoma",sans-serif;
|
||||
color:black;position:absolute;z-index:251659264;margin-left:
|
||||
565px;margin-top:17px;width:202px;height:55px'>-------------------</span>
|
||||
|
||||
<span style='font-size:11.0pt;font-family:"Tahoma",sans-serif;
|
||||
color:black;position:absolute;z-index:251659264;margin-left:
|
||||
540px;margin-top:32px;width:202px;height:55px'>Union-Travail-Justice</span>
|
||||
|
||||
<span style='font-size:11.0pt;font-family:"Tahoma",sans-serif;color:black'>PROVINCE
|
||||
DE L’ESTUAIRE</span></p>
|
||||
|
||||
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Tahoma",sans-serif;
|
||||
color:black;margin-left: 45px;'>-------------------</span></p>
|
||||
|
||||
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Tahoma",sans-serif;
|
||||
color:black'>DEPARTEMENT DU KOMO-MONDAH</span></p>
|
||||
|
||||
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Tahoma",sans-serif;
|
||||
color:black;margin-left: 45px;'>-----------------</span></p>
|
||||
|
||||
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Tahoma",sans-serif;
|
||||
color:black'>COMMUNE D’AKANDA</span></p>
|
||||
|
||||
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Tahoma",sans-serif;
|
||||
color:black;margin-left: 45px;'>---------------</span></p>
|
||||
|
||||
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Tahoma",sans-serif;
|
||||
color:black'>SECRETARIAT GENERAL</span></p>
|
||||
|
||||
<p class=MsoHeader><span style='font-size:11.0pt;font-family:"Tahoma",sans-serif;
|
||||
color:black;margin-left: 45px;'>-----------------</span></p>
|
||||
|
||||
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Tahoma",sans-serif;
|
||||
color:black'>SERVICE FISCALITE ET RECOUVREMENT</span></p>
|
||||
|
||||
<p class=MsoNormal align=center style='text-align:center ; margin-top: 30px'><b><u><span
|
||||
style='font-size:22.0pt;font-family:"Garamond",serif;color:black'>QR CODE - {{$lastname}}</span></u></b>
|
||||
</p>
|
||||
|
||||
<div style="text-align: center; margin-top: 50px;">
|
||||
<img src="data:image/png;base64, {!! base64_encode(\SimpleSoftwareIO\QrCode\Facades\QrCode::format('svg')
|
||||
->size(300)->errorCorrection('H')
|
||||
->generate($data)) !!} ">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -1,795 +0,0 @@
|
|||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
|
||||
<meta name=Generator content="Microsoft Word 15 (filtered)">
|
||||
<style>
|
||||
<!--
|
||||
/* Font Definitions */
|
||||
@font-face {
|
||||
font-family: Wingdings;
|
||||
panose-1: 5 0 0 0 0 0 0 0 0 0;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Cambria Math";
|
||||
panose-1: 2 4 5 3 5 4 6 3 2 4;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Calibri;
|
||||
panose-1: 2 15 5 2 2 2 4 3 2 4;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Tahoma;
|
||||
panose-1: 2 11 6 4 3 5 4 4 2 4;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Segoe UI";
|
||||
panose-1: 2 11 5 2 4 2 4 2 2 3;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Garamond;
|
||||
panose-1: 2 2 4 4 3 3 1 1 8 3;
|
||||
}
|
||||
|
||||
/* Style Definitions */
|
||||
p.MsoNormal, li.MsoNormal, div.MsoNormal {
|
||||
margin: 0in;
|
||||
font-size: 12.0pt;
|
||||
font-family: "Times New Roman", serif;
|
||||
}
|
||||
|
||||
p.MsoHeader, li.MsoHeader, div.MsoHeader {
|
||||
mso-style-link: "Header Char";
|
||||
margin: 0in;
|
||||
font-size: 12.0pt;
|
||||
font-family: "Times New Roman", serif;
|
||||
}
|
||||
|
||||
p.MsoNoSpacing, li.MsoNoSpacing, div.MsoNoSpacing {
|
||||
margin: 0in;
|
||||
font-size: 11.0pt;
|
||||
font-family: "Calibri", sans-serif;
|
||||
}
|
||||
|
||||
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
|
||||
margin-top: 0in;
|
||||
margin-right: 0in;
|
||||
margin-bottom: 0in;
|
||||
margin-left: .5in;
|
||||
font-size: 12.0pt;
|
||||
font-family: "Times New Roman", serif;
|
||||
}
|
||||
|
||||
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst {
|
||||
margin-top: 0in;
|
||||
margin-right: 0in;
|
||||
margin-bottom: 0in;
|
||||
margin-left: .5in;
|
||||
font-size: 12.0pt;
|
||||
font-family: "Times New Roman", serif;
|
||||
}
|
||||
|
||||
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle {
|
||||
margin-top: 0in;
|
||||
margin-right: 0in;
|
||||
margin-bottom: 0in;
|
||||
margin-left: .5in;
|
||||
font-size: 12.0pt;
|
||||
font-family: "Times New Roman", serif;
|
||||
}
|
||||
|
||||
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
|
||||
margin-top: 0in;
|
||||
margin-right: 0in;
|
||||
margin-bottom: 0in;
|
||||
margin-left: .5in;
|
||||
font-size: 12.0pt;
|
||||
font-family: "Times New Roman", serif;
|
||||
}
|
||||
|
||||
span.HeaderChar {
|
||||
mso-style-name: "Header Char";
|
||||
mso-style-link: Header;
|
||||
font-family: "Times New Roman", serif;
|
||||
}
|
||||
|
||||
.MsoChpDefault {
|
||||
font-family: "Calibri", sans-serif;
|
||||
}
|
||||
|
||||
.MsoPapDefault {
|
||||
margin-bottom: 8.0pt;
|
||||
line-height: 107%;
|
||||
}
|
||||
|
||||
/* Page Definitions */
|
||||
@page WordSection1 {
|
||||
size: 595.3pt 841.9pt;
|
||||
margin: 44.95pt 49.55pt 42.55pt 70.85pt;
|
||||
}
|
||||
|
||||
div.WordSection1 {
|
||||
page: WordSection1;
|
||||
}
|
||||
|
||||
/* List Definitions */
|
||||
ol {
|
||||
margin-bottom: 0in;
|
||||
}
|
||||
|
||||
ul {
|
||||
margin-bottom: 0in;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
li::before {
|
||||
content: "-";
|
||||
display: inline-block;
|
||||
width: 1em;
|
||||
margin-left: -1.3em
|
||||
}
|
||||
|
||||
-->
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body style='word-wrap:break-word'>
|
||||
|
||||
<img width=71 height=83 style="position: absolute; left: 567px;top: 60px;"
|
||||
src="{{public_path('logo.jpeg')}}">
|
||||
|
||||
<div class=WordSection1>
|
||||
|
||||
<p class=MsoNormal>
|
||||
<span style='position:absolute;z-index:251659264;margin-left:
|
||||
512px;margin-top:0px;width:202px;height:55px'>REPUBLIQUE GABONAISE</span>
|
||||
|
||||
<span style='font-size:11.0pt;font-family:"Tahoma",sans-serif;
|
||||
color:black;position:absolute;z-index:251659264;margin-left:
|
||||
565px;margin-top:17px;width:202px;height:55px'>-------------------</span>
|
||||
|
||||
<span style='font-size:11.0pt;font-family:"Tahoma",sans-serif;
|
||||
color:black;position:absolute;z-index:251659264;margin-left:
|
||||
540px;margin-top:32px;width:202px;height:55px'>Union-Travail-Justice</span>
|
||||
|
||||
<span style='font-size:11.0pt;font-family:"Tahoma",sans-serif;color:black'>PROVINCE
|
||||
DE L’ESTUAIRE</span></p>
|
||||
|
||||
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Tahoma",sans-serif;
|
||||
color:black;margin-left: 45px;'>-------------------</span></p>
|
||||
|
||||
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Tahoma",sans-serif;
|
||||
color:black'>DEPARTEMENT DU KOMO-MONDAH</span></p>
|
||||
|
||||
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Tahoma",sans-serif;
|
||||
color:black;margin-left: 45px;'>-----------------</span></p>
|
||||
|
||||
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Tahoma",sans-serif;
|
||||
color:black'>COMMUNE D’AKANDA</span></p>
|
||||
|
||||
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Tahoma",sans-serif;
|
||||
color:black;margin-left: 45px;'>---------------</span></p>
|
||||
|
||||
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Tahoma",sans-serif;
|
||||
color:black'>SECRETARIAT GENERAL</span></p>
|
||||
|
||||
<p class=MsoHeader><span style='font-size:11.0pt;font-family:"Tahoma",sans-serif;
|
||||
color:black;margin-left: 45px;'>-----------------</span></p>
|
||||
|
||||
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Tahoma",sans-serif;
|
||||
color:black'>SERVICE FISCALITE ET RECOUVREMENT</span></p>
|
||||
|
||||
<p class=MsoNormal align=center style='text-align:center ; margin-top: 15px'><b><u><span
|
||||
style='font-size:22.0pt;font-family:"Garamond",serif;color:black'>AVIS
|
||||
DE RECOUVREMENT N° {{$id_tax_notice}}</span></u></b></p>
|
||||
|
||||
<p style="font-size:10.0pt;font-family:'Garamond';margin-top: 15px ; text-align: left">
|
||||
En application de la loi des finances rectificative 2009, Titre III relatives aux ressources des collectivités
|
||||
locales en son article 15
|
||||
et de la <b>Délibération n°006/PE/DKM/CA/CM/SG du 26 juin 2014</b> portant prélèvement des droits et taxes sur
|
||||
le territoire de la Commune d’Akanda.
|
||||
</p>
|
||||
|
||||
|
||||
<p class=MsoNoSpacing style='margin-left:.5in;text-align:justify;margin-top: 5px'><span
|
||||
style='font-size:10.0pt;font-family:"Garamond",serif;color:black'>Il est établi un avis de recouvrement relatif à vos activités ci-après défini :</span>
|
||||
</p>
|
||||
|
||||
|
||||
<table class=MsoTable15Plain5 border=0 cellspacing=0 cellpadding=0
|
||||
style='border-collapse:collapse;margin-top: 15px'>
|
||||
<tr>
|
||||
<td width=321 colspan=2 valign=top style='width:241.0pt;border:none;
|
||||
border-bottom:solid #7F7F7F 1.0pt;background:white;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:11.0pt;font-family:"Garamond",serif;color:black'>Opérateur
|
||||
économique d’Akanda</span></b></p>
|
||||
</td>
|
||||
<td width=311 colspan=2 valign=top style='width:233.4pt;border:none;
|
||||
border-bottom:solid #7F7F7F 1.0pt;background:white;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:11.0pt;font-family:"Garamond",serif;color:black'>Administration
|
||||
Municipale</span></b></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=142 valign=top style='width:106.35pt;border:none;border-right:solid #7F7F7F 1.0pt;
|
||||
background:white;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=right style='text-align:right'><i><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>Nom/Identifiant
|
||||
OPEC</span></i></p>
|
||||
</td>
|
||||
<td width=180 valign=top style='width:134.65pt;background:#F2F2F2;padding:
|
||||
0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>{{$lastname}}</span></b></p>
|
||||
</td>
|
||||
<td width=198 valign=top style='width:148.85pt;background:#F2F2F2;padding:
|
||||
0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>Arrondissement</span></p>
|
||||
</td>
|
||||
<td width=113 valign=top style='width:84.55pt;background:#F2F2F2;padding:
|
||||
0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>{{$district}}</span></b>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=142 valign=top style='width:106.35pt;border:none;border-right:solid #7F7F7F 1.0pt;
|
||||
background:white;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=right style='text-align:right'><i><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>Non du
|
||||
Responsable</span></i></p>
|
||||
</td>
|
||||
<td width=180 valign=top style='width:134.65pt;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>{{$responsable_name}}</span></b></p>
|
||||
</td>
|
||||
<td width=198 valign=top style='width:148.85pt;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>Quartier</span></p>
|
||||
</td>
|
||||
<td width=113 valign=top style='width:84.55pt;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>{{$neighborhood}}</span></b>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=142 valign=top style='width:106.35pt;border:none;border-right:solid #7F7F7F 1.0pt;
|
||||
background:white;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=right style='text-align:right'><i><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>N° RCCM</span></i>
|
||||
</p>
|
||||
</td>
|
||||
<td width=180 valign=top style='width:134.65pt;background:#F2F2F2;padding:
|
||||
0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>{{$trade_registry}}</span></b></p>
|
||||
</td>
|
||||
<td width=198 valign=top style='width:148.85pt;background:#F2F2F2;padding:
|
||||
0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>Activité</span></p>
|
||||
</td>
|
||||
<td width=113 valign=top style='width:84.55pt;background:#F2F2F2;padding:
|
||||
0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>{{$activity_type}}</span></b>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=142 valign=top style='width:106.35pt;border:none;border-right:solid #7F7F7F 1.0pt;
|
||||
background:white;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=right style='text-align:right'><i><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>NIF</span></i>
|
||||
</p>
|
||||
</td>
|
||||
<td width=180 valign=top style='width:134.65pt;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>{{$identification_number}}</span></b></p>
|
||||
</td>
|
||||
<td width=198 valign=top style='width:148.85pt;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>Année N-1 {{$registration_year-1}}</span></p>
|
||||
</td>
|
||||
<td width=113 valign=top style='width:84.55pt;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>{{ $year_tax_paid_N_1 ? 'Payé' : 'Non Payé' }}</span></b>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=142 valign=top style='width:106.35pt;border:none;border-right:solid #7F7F7F 1.0pt;
|
||||
background:white;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=right style='text-align:right'><i><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>Patente</span></i>
|
||||
</p>
|
||||
</td>
|
||||
<td width=180 valign=top style='width:134.65pt;background:#F2F2F2;padding:
|
||||
0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>{{ isset($id_patente) ? 'N° '.$id_patente : 'Non' }}</span></b></p>
|
||||
</td>
|
||||
<td width=198 valign=top style='width:148.85pt;background:#F2F2F2;padding:
|
||||
0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>Année N-2 {{$registration_year-2}}</span></p>
|
||||
</td>
|
||||
<td width=113 valign=top style='width:84.55pt;background:#F2F2F2;padding:
|
||||
0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>{{ $year_tax_paid_N_2 ? 'Payé' : 'Non Payé' }}</span></b>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=142 valign=top style='width:106.35pt;border:none;border-right:solid #7F7F7F 1.0pt;
|
||||
background:white;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=right style='text-align:right'><i><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>Agrément</span></i>
|
||||
</p>
|
||||
</td>
|
||||
<td width=180 valign=top style='width:134.65pt;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>{{ isset($technical_approval) ? 'N° '.$technical_approval : 'Non' }}</span></b></p>
|
||||
</td>
|
||||
<td width=198 valign=top style='width:148.85pt;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>Année N-3 {{$registration_year-3}}</span></p>
|
||||
</td>
|
||||
<td width=113 valign=top style='width:84.55pt;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>{{ $year_tax_paid_N_3 ? 'Payé' : 'Non Payé' }}</span></b>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=142 style='width:106.35pt;border:none;border-right:solid #7F7F7F 1.0pt;
|
||||
background:white;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=right style='text-align:right'><i><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>TVA</span></i>
|
||||
</p>
|
||||
</td>
|
||||
<td width=180 valign=top style='width:134.65pt;background:#F2F2F2;padding:
|
||||
0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>{{ $TVA ? 'Oui' : 'Non' }}</span></b></p>
|
||||
</td>
|
||||
<td width=198 valign=top style='width:148.85pt;background:#F2F2F2;padding:
|
||||
0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'> </span></p>
|
||||
</td>
|
||||
<td width=113 valign=top style='width:84.55pt;background:#F2F2F2;padding:
|
||||
0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'> </span></b>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=142 style='width:106.35pt;border:none;border-right:solid #7F7F7F 1.0pt;
|
||||
background:white;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=right style='text-align:right'><i><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>IRPP</span></i>
|
||||
</p>
|
||||
</td>
|
||||
<td width=180 valign=top style='width:134.65pt;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>{{ $IRPP ? 'Oui' : 'Non' }}</span></b></p>
|
||||
</td>
|
||||
<td width=198 valign=top style='width:148.85pt;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'> </span></p>
|
||||
</td>
|
||||
<td width=113 valign=top style='width:84.55pt;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'> </span></b>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=142 rowspan=2 style='width:106.35pt;border:none;border-right:solid #7F7F7F 1.0pt;
|
||||
background:white;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=right style='text-align:right'><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>Localisation
|
||||
</span></p>
|
||||
</td>
|
||||
<td width=180 valign=top style='width:134.65pt;background:#F2F2F2;padding:
|
||||
0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>N_____E_____O_____S_____</span></b></p>
|
||||
</td>
|
||||
<td width=198 valign=top style='width:148.85pt;background:#F2F2F2;padding:
|
||||
0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'></span></p>
|
||||
</td>
|
||||
<td width=113 valign=top style='width:84.55pt;background:#F2F2F2;padding:
|
||||
0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'></span></b>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=180 valign=top style='width:134.65pt;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>{{ $adresse }}</span></b></p>
|
||||
</td>
|
||||
<td width=198 valign=top style='width:148.85pt;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>Pénalité d’office </span></p>
|
||||
</td>
|
||||
<td width=113 valign=top style='width:84.55pt;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>{{$office_penalties}}</span></b>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=142 valign=top style='width:106.35pt;border:none;border-right:solid #7F7F7F 1.0pt;
|
||||
background:white;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=right style='text-align:right'><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>Contact(s)</span>
|
||||
</p>
|
||||
</td>
|
||||
<td width=180 valign=top style='width:134.65pt;background:#F2F2F2;padding:
|
||||
0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>{{$phone}}</span></b></p>
|
||||
</td>
|
||||
<td width=198 valign=top style='width:148.85pt;background:#F2F2F2;padding:
|
||||
0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>Pénalités par mois de retard</span></p>
|
||||
</td>
|
||||
<td width=113 valign=top style='width:84.55pt;background:#F2F2F2;padding:
|
||||
0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>{{$month_delay_penalties}}</span></b>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p class=MsoNormal align=center style='text-align:center'><span
|
||||
style='font-size:7.0pt;font-family:"Garamond",serif;color:black'>-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</span>
|
||||
</p>
|
||||
|
||||
<table class=MsoTable15Plain1 border=1 cellspacing=0 cellpadding=0
|
||||
style='border-collapse:collapse;border:none'>
|
||||
<tr>
|
||||
<td width=85 valign=top style='width:63.5pt;border:solid #BFBFBF 1.0pt;
|
||||
padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:10.0pt;font-family:"Garamond",serif;color:black'>Imputation</span></b>
|
||||
</p>
|
||||
</td>
|
||||
<td width=236 valign=top style='width:176.85pt;border:solid #BFBFBF 1.0pt;
|
||||
border-left:none;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:10.0pt;font-family:"Garamond",serif;color:black'>Libellé
|
||||
taxe(s) ou redevance(s)</span></b></p>
|
||||
</td>
|
||||
<td width=66 valign=top style='width:54.55pt;border:solid #BFBFBF 1.0pt;
|
||||
border-left:none;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:10.0pt;font-family:"Garamond",serif;color:black'>Unité</span></b>
|
||||
</p>
|
||||
</td>
|
||||
<td width=35 valign=top style='width:32.55pt;border:solid #BFBFBF 1.0pt;
|
||||
border-left:none;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:10.0pt;font-family:"Garamond",serif;color:black'>Qté</span></b>
|
||||
</p>
|
||||
</td>
|
||||
<td width=98 valign=top style='width:73.3pt;border:solid #BFBFBF 1.0pt;
|
||||
border-left:none;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:10.0pt;font-family:"Garamond",serif;color:black'>Prix
|
||||
Unitaire</span></b></p>
|
||||
</td>
|
||||
<td width=113 valign=top style='width:84.65pt;border:solid #BFBFBF 1.0pt;
|
||||
border-left:none;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:10.0pt;font-family:"Garamond",serif;color:black'>Total</span></b>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
$fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
||||
?>
|
||||
|
||||
@foreach($taxes as $tax)
|
||||
<?php
|
||||
$tax_amount = $fmt->format($tax->amount);
|
||||
$unit = $tax->measurement_unit;
|
||||
if ($tax->measurement_unit == 'forfait') {
|
||||
$quantity = $tax->count;
|
||||
if ($tax->billing_period == 'jour') {
|
||||
$quantity = $jours * $quantity;
|
||||
$unit = 'jour';
|
||||
}
|
||||
if ($tax->billing_period == 'trimestre') {
|
||||
$quantity = 4 * $quantity;
|
||||
$unit = 'trimestre';
|
||||
}
|
||||
if ($tax->billing_period == 'semestre') {
|
||||
$quantity = 2 * $quantity;
|
||||
$unit = 'semestre';
|
||||
}
|
||||
} elseif (strpos($tax->measurement_unit, '/')) {
|
||||
$quantity = $fmt->format($tax->tax_units_count) . ' / ' . $fmt->format($tax->units_per_tax_unit_count);
|
||||
} else {
|
||||
$quantity = $fmt->format($tax->tax_units_count);
|
||||
}
|
||||
|
||||
if ($tax->measurement_unit == '%') {
|
||||
$unit_price = $fmt->format($tax->unit_price) . ' %';
|
||||
} else {
|
||||
$unit_price = $fmt->format($tax->unit_price);
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td width=85 valign=top style='width:63.5pt;border:solid #BFBFBF 1.0pt;
|
||||
border-top:none;background:#F2F2F2;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>{{$tax->imputation}}</span></b></p>
|
||||
</td>
|
||||
<td width=236 valign=top style='width:176.85pt;border-top:none;border-left:
|
||||
none;border-bottom:solid #BFBFBF 1.0pt;border-right:solid #BFBFBF 1.0pt;
|
||||
background:#F2F2F2;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>{{$tax->name}}</span></p>
|
||||
</td>
|
||||
<td width=66 valign=top style='width:54.55pt;border-top:none;border-left:
|
||||
none;border-bottom:solid #BFBFBF 1.0pt;border-right:solid #BFBFBF 1.0pt;
|
||||
background:#F2F2F2;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>{{$unit}}</span>
|
||||
</p>
|
||||
</td>
|
||||
<td width=35 valign=top style='width:32.55pt;border-top:none;border-left:
|
||||
none;border-bottom:solid #BFBFBF 1.0pt;border-right:solid #BFBFBF 1.0pt;
|
||||
background:#F2F2F2;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>{{$quantity}}</span>
|
||||
</p>
|
||||
</td>
|
||||
<td width=98 valign=top style='width:73.3pt;border-top:none;border-left:none;
|
||||
border-bottom:solid #BFBFBF 1.0pt;border-right:solid #BFBFBF 1.0pt;
|
||||
background:#F2F2F2;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>{{$unit_price}}</span>
|
||||
</p>
|
||||
</td>
|
||||
<td width=113 valign=top style='width:84.65pt;border-top:none;border-left:
|
||||
none;border-bottom:solid #BFBFBF 1.0pt;border-right:solid #BFBFBF 1.0pt;
|
||||
background:#F2F2F2;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>{{$tax_amount}}</span>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
|
||||
<p class=MsoNormal><span style='font-size:5.0pt;font-family:"Garamond",serif;
|
||||
color:black'> </span></p>
|
||||
@if(isset($penalties) and sizeof($penalties) > 0)
|
||||
<table class=MsoTable15Plain1 border=1 cellspacing=0 cellpadding=0
|
||||
style='border-collapse:collapse;border:none'>
|
||||
<tr>
|
||||
<td width=54 valign=top style='width:54.5pt;border:solid #BFBFBF 1.0pt;
|
||||
padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:10.0pt;font-family:"Garamond",serif;color:black'>Imputation</span></b>
|
||||
</p>
|
||||
</td>
|
||||
<td width=236 valign=top style='width:176.85pt;border:solid #BFBFBF 1.0pt;
|
||||
border-left:none;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:10.0pt;font-family:"Garamond",serif;color:black'>Libellé pénalité(s)</span></b>
|
||||
</p>
|
||||
</td>
|
||||
<td width=52 valign=top style='width:52.55pt;border:solid #BFBFBF 1.0pt;
|
||||
border-left:none;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:10.0pt;font-family:"Garamond",serif;color:black'>Unité</span></b>
|
||||
</p>
|
||||
</td>
|
||||
<td width=28 valign=top style='width:28.55pt;border:solid #BFBFBF 1.0pt;
|
||||
border-left:none;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:10.0pt;font-family:"Garamond",serif;color:black'>Qté</span></b>
|
||||
</p>
|
||||
</td>
|
||||
<td width=63 valign=top style='width:63.3pt;border:solid #BFBFBF 1.0pt;
|
||||
border-left:none;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:10.0pt;font-family:"Garamond",serif;color:black'>Prix
|
||||
Unitaire</span></b></p>
|
||||
</td>
|
||||
<td width=25 valign=top style='width:25.3pt;border:solid #BFBFBF 1.0pt;
|
||||
border-left:none;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:10.0pt;font-family:"Garamond",serif;color:black'>Taux</span></b></p>
|
||||
</td>
|
||||
<td width=72 valign=top style='width:72.65pt;border:solid #BFBFBF 1.0pt;
|
||||
border-left:none;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><b><span
|
||||
style='font-size:10.0pt;font-family:"Garamond",serif;color:black'>Total</span></b>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@foreach($penalties as $penalty)
|
||||
<tr>
|
||||
<td width=64 valign=top style='width:54.5pt;border:solid #BFBFBF 1.0pt;
|
||||
border-top:none;background:#F2F2F2;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>{{$penalty->imputation}}</span></b></p>
|
||||
</td>
|
||||
<td width=236 valign=top style='width:176.85pt;border-top:none;border-left:
|
||||
none;border-bottom:solid #BFBFBF 1.0pt;border-right:solid #BFBFBF 1.0pt;
|
||||
background:#F2F2F2;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>{{$penalty->name}}</span></p>
|
||||
</td>
|
||||
|
||||
<td width=52 valign=top style='width:52.55pt;border-top:none;border-left:
|
||||
none;border-bottom:solid #BFBFBF 1.0pt;border-right:solid #BFBFBF 1.0pt;
|
||||
background:#F2F2F2;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>{{$penalty->n_order == 2 ? $penalty->unit : ''}}</span>
|
||||
</p>
|
||||
</td>
|
||||
<td width=28 valign=top style='width:28.55pt;border-top:none;border-left:
|
||||
none;border-bottom:solid #BFBFBF 1.0pt;border-right:solid #BFBFBF 1.0pt;
|
||||
background:#F2F2F2;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>{{$penalty->n_order == 2 ? $penalty->quantity : ''}}</span>
|
||||
</p>
|
||||
</td>
|
||||
<td width=63 valign=top style='width:63.3pt;border-top:none;border-left:none;
|
||||
border-bottom:solid #BFBFBF 1.0pt;border-right:solid #BFBFBF 1.0pt;
|
||||
background:#F2F2F2;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>{{$penalty->n_order == 2 ? $fmt->format($penalty->unit_price_no_formatted) : ''}}</span>
|
||||
</p>
|
||||
</td>
|
||||
<td width=25 valign=top style='width:25.3pt;border-top:none;border-left:none;
|
||||
border-bottom:solid #BFBFBF 1.0pt;border-right:solid #BFBFBF 1.0pt;
|
||||
background:#F2F2F2;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>{{$penalty->n_order == 1 ?$penalty->rate.'%' : ''}}</span>
|
||||
</p>
|
||||
</td>
|
||||
<td width=72 valign=top style='width:72.65pt;border-top:none;border-left:
|
||||
none;border-bottom:solid #BFBFBF 1.0pt;border-right:solid #BFBFBF 1.0pt;
|
||||
background:#F2F2F2;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=center style='text-align:center'><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'>{{$penalty->n_order == 1 ? $fmt->format($penalty->amount) : $fmt->format($penalty->tax_amount)}}</span>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
|
||||
<p class=MsoNormal><span style='font-size:5.0pt;font-family:"Garamond",serif;
|
||||
color:black'> </span>
|
||||
@endif
|
||||
<table class=MsoTable15Plain1 border=1 cellspacing=0 cellpadding=0
|
||||
style='border-collapse:collapse;border:none'>
|
||||
<tr>
|
||||
<td width=425 valign=top style='width:318.7pt;border:solid #BFBFBF 1.0pt;
|
||||
padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal><b><span style='font-family:"Garamond",serif;
|
||||
color:black'>TOTAL A PAYER</span></b></p>
|
||||
</td>
|
||||
<td width=208 valign=top style='width:205.7pt;border:solid #BFBFBF 1.0pt;
|
||||
border-left:none;padding:0in 5.4pt 0in 5.4pt'>
|
||||
<p class=MsoNormal align=right style='text-align:right'><b><span
|
||||
style='font-family:"Garamond",serif;color:black'>{{$amount}}</span></b>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p class=MsoNormal style='text-align:justify'><span style='font-size:
|
||||
6.0pt;font-family:"Garamond",serif;color:black'> </span></p>
|
||||
|
||||
<p class=MsoNormal style='text-align:justify'><span style='font-size:
|
||||
4.0pt;font-family:"Garamond",serif;color:black'> </span></p>
|
||||
|
||||
<p class=MsoNormal style='text-align:justify'><span style='font-size:
|
||||
10.0pt;font-family:"Garamond",serif;color:black'>Arrêté le présent avis à la
|
||||
somme de </span><b><span style='font-family:"Garamond",serif;
|
||||
color:black'>{{$amount}}</span></b></p>
|
||||
|
||||
<p class=MsoNormal style='text-align:justify ; margin-top: 10px'><span
|
||||
style='font-family:"Garamond",serif;color:black'><b><u>Date limite de paiement </u></b> : </span><b><span
|
||||
style='font-family:"Garamond",serif;color:black'> {{$payment_deadline_date}}</span></b></p>
|
||||
|
||||
<p class=MsoNormal style='text-align:justify'><span style='font-size:
|
||||
4.0pt;font-family:"Garamond",serif;color:black'> </span></p>
|
||||
|
||||
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>Les règlements s’effectuent à la <b>Perception Municipale d’Okala</b>
|
||||
sur présentation d’un(es) ordre(s) de recette(s) préalablement établi(s) au
|
||||
Service Finances et Comptabilité à l’Hôtel de Ville de la Mairie d’Akanda (heures
|
||||
d’ouverture de 09H-15H). En cas de règlement par chèque<b> (CERTIFIE)</b>, le
|
||||
libeller au nom du <b>Receveur municipale. </b></span></p>
|
||||
|
||||
<p class=MsoNormal style='text-align:justify'><span style='font-size:
|
||||
4.0pt;font-family:"Garamond",serif;color:black'> </span></p>
|
||||
|
||||
<p class=MsoNormal style='text-align:justify'><span style='font-size:
|
||||
9.0pt;font-family:"Garamond",serif;color:black'>Toute infraction aux
|
||||
dispositions de la présente délibération entraine l’application des sanctions
|
||||
prévues au code des impôts relatives à l’application des pénalités :</span></p>
|
||||
|
||||
<p class=MsoNormal style='margin-left:-21.3pt;text-align:justify'><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'> </span></p>
|
||||
|
||||
<p class=MsoListParagraphCxSpFirst style='margin-left:56.7pt;text-align:justify;
|
||||
text-indent:-14.15pt'><span style='font-size:9.0pt;color:black'>-<span
|
||||
style='font:7.0pt "Times New Roman"'>
|
||||
</span></span><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>Pénalité d’office de {{$officePenaltyPercent ?? 10}} % des droits éludés passé le délai de
|
||||
paiement ; </span></p>
|
||||
|
||||
<p class=MsoListParagraphCxSpMiddle style='margin-left:56.7pt;text-align:justify;
|
||||
text-indent:-14.15pt'><span style='font-size:9.0pt;color:black'>-<span
|
||||
style='font:7.0pt "Times New Roman"'>
|
||||
</span></span><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>{{$monthDelayPenaltyPercent ?? 3}} % par mois de retard ;</span></p>
|
||||
|
||||
<p class=MsoListParagraphCxSpMiddle style='margin-left:56.7pt;text-align:justify;
|
||||
text-indent:-14.15pt'><span style='font-size:9.0pt;color:black'>-<span
|
||||
style='font:7.0pt "Times New Roman"'>
|
||||
</span></span><span style='font-size:9.0pt;font-family:"Garamond",serif;
|
||||
color:black'>Enfin, en cas de contestation ou de réclamation, vous munir des
|
||||
pièces justificatives.</span></p>
|
||||
|
||||
<p class=MsoListParagraphCxSpLast style='margin-left:1.2pt;text-align:justify'><span
|
||||
style='font-size:9.0pt;font-family:"Garamond",serif;color:black'> </span></p>
|
||||
|
||||
<p class=MsoNormal><b><span style='font-family:"Garamond",serif;
|
||||
color:black'> </span></b></p>
|
||||
|
||||
</div>
|
||||
|
||||
<div style="-aw-headerfooter-type:footer-primary"><p style="margin-top:0pt; margin-bottom:0pt; font-size:9pt"><span
|
||||
style="font-family:'Times New Roman'; font-weight:bold">_____________________________________________________________________________________________________________________</span>
|
||||
</p>
|
||||
<p style="margin-top:0pt; margin-bottom:0pt; text-align:center; font-size:11pt"><span
|
||||
style="font-family:Garamond; font-size:9pt">Service </span><span
|
||||
style="font-family:Garamond; font-size:9pt">Comptabilité</span><span
|
||||
style="font-family:Garamond; font-size:9pt">, Fiscalité et recouvrement</span><span
|
||||
style="font-family:Garamond; font-size:9pt"> </span><span
|
||||
style="font-family:Garamond; font-weight:bold">I</span><span style="font-family:Garamond"> </span><span
|
||||
style="font-family:Garamond; font-size:9pt">Mairie d’Akanda-</span><span
|
||||
style="font-family:Garamond; font-size:9pt">Hôtel de </span><span
|
||||
style="font-family:Garamond; font-size:9pt">Ville</span><span
|
||||
style="font-family:Garamond; font-size:9pt"> </span></p>
|
||||
<p style="margin-top:0pt; margin-bottom:0pt; text-align:center; font-size:9pt"><span
|
||||
style="font-family:Garamond">Contacts</span><span style="font-family:Garamond"> </span><span
|
||||
style="font-family:Garamond">: +241 00 000 000 0 / +241 002 6660 50</span></p>
|
||||
<p style="margin-top:0pt; margin-bottom:0pt; font-size:12pt"><span
|
||||
style="font-family:'Times New Roman'"> </span></p></div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -50,8 +50,5 @@ $router->group(['prefix' => '', 'middleware' => 'auth'], function () use ($route
|
|||
$router->get('health-care-sheets/{id}', 'HealthCareSheetController@getOneHealthCareSheets');
|
||||
$router->put('health-care-sheets/{id}', 'HealthCareSheetController@updateHealthCareSheet');
|
||||
|
||||
//QRCode for agents
|
||||
$router->get('qrcode/generate/{id_user}', 'QRCodeController@generate');
|
||||
$router->get('qrcode/read/{id_user}', 'QRCodeController@read');
|
||||
$router->get('qrcode/image/{id_user}', 'QRCodeController@image');
|
||||
$router->get('generate-invoice', 'InvoiceController@generateInvoice');
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue