Commit 5e945340 authored by Marcos Albano's avatar Marcos Albano 💬

Alteracao das views cpfValidoSemTitulo, cpfInvalido...

parent 0a7c4f28
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
namespace App\Http\Controllers; namespace App\Http\Controllers;
use App\Models\Datepicker; use App\Models\Datepicker;
use Barryvdh\DomPDF\Facade as PDF;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Illuminate\Support\Facades\Redirect;
class DatepickerController extends Controller class DatepickerController extends Controller
{ {
...@@ -15,6 +15,7 @@ class DatepickerController extends Controller ...@@ -15,6 +15,7 @@ class DatepickerController extends Controller
public function datepicker(Request $request) public function datepicker(Request $request)
{ {
$datepicker = new Datepicker(); $datepicker = new Datepicker();
$datepicker->cpf = $request->get('cpf'); $datepicker->cpf = $request->get('cpf');
$datepicker->data = $request->get('data'); $datepicker->data = $request->get('data');
...@@ -30,4 +31,17 @@ class DatepickerController extends Controller ...@@ -30,4 +31,17 @@ class DatepickerController extends Controller
'hora' => $request->get('hora'), 'hora' => $request->get('hora'),
]); ]);
} }
// public function createPDF(Request $request) {
// // retreive all records from db
// $datepicker = new Datepicker();
// $datepicker->cpf = $request->get('cpf');
// // share data to view
// // view()->share('dadosAtendimento', $datepicker->cpf);
// $pdf = PDF::loadView('pdf', $datepicker->cpf);
// // download PDF file with download method
// return $pdf->download('pdf_file.pdf');
// }
} }
...@@ -11,6 +11,7 @@ use App\Models\Pessoa; ...@@ -11,6 +11,7 @@ use App\Models\Pessoa;
use App\Models\PessoaLote; use App\Models\PessoaLote;
use App\Models\Titulo; use App\Models\Titulo;
use App\Models\Tramite; use App\Models\Tramite;
use Illuminate\Http\Request; use Illuminate\Http\Request;
class TituloController extends Controller class TituloController extends Controller
...@@ -203,4 +204,6 @@ class TituloController extends Controller ...@@ -203,4 +204,6 @@ class TituloController extends Controller
]); ]);
} }
} }
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
"license": "MIT", "license": "MIT",
"require": { "require": {
"php": "^7.2.5", "php": "^7.2.5",
"barryvdh/laravel-dompdf": "^0.8.6",
"fideloper/proxy": "^4.2", "fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^1.0", "fruitcake/laravel-cors": "^1.0",
"guzzlehttp/guzzle": "^6.3", "guzzlehttp/guzzle": "^6.3",
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "4448c8ce55681718d2b6900978bc360c", "content-hash": "f88717a878af4c248c93be53d0f7384d",
"packages": [ "packages": [
{ {
"name": "almasaeed2010/adminlte", "name": "almasaeed2010/adminlte",
...@@ -97,6 +97,62 @@ ...@@ -97,6 +97,62 @@
], ],
"time": "2019-12-24T22:41:47+00:00" "time": "2019-12-24T22:41:47+00:00"
}, },
{
"name": "barryvdh/laravel-dompdf",
"version": "v0.8.6",
"source": {
"type": "git",
"url": "https://github.com/barryvdh/laravel-dompdf.git",
"reference": "d7108f78cf5254a2d8c224542967f133e5a6d4e8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/barryvdh/laravel-dompdf/zipball/d7108f78cf5254a2d8c224542967f133e5a6d4e8",
"reference": "d7108f78cf5254a2d8c224542967f133e5a6d4e8",
"shasum": ""
},
"require": {
"dompdf/dompdf": "^0.8",
"illuminate/support": "^5.5|^6|^7",
"php": ">=7"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "0.8-dev"
},
"laravel": {
"providers": [
"Barryvdh\\DomPDF\\ServiceProvider"
],
"aliases": {
"PDF": "Barryvdh\\DomPDF\\Facade"
}
}
},
"autoload": {
"psr-4": {
"Barryvdh\\DomPDF\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Barry vd. Heuvel",
"email": "barryvdh@gmail.com"
}
],
"description": "A DOMPDF Wrapper for Laravel",
"keywords": [
"dompdf",
"laravel",
"pdf"
],
"time": "2020-02-25T20:44:34+00:00"
},
{ {
"name": "brick/math", "name": "brick/math",
"version": "0.8.15", "version": "0.8.15",
...@@ -315,6 +371,72 @@ ...@@ -315,6 +371,72 @@
], ],
"time": "2020-05-25T17:44:05+00:00" "time": "2020-05-25T17:44:05+00:00"
}, },
{
"name": "dompdf/dompdf",
"version": "v0.8.5",
"source": {
"type": "git",
"url": "https://github.com/dompdf/dompdf.git",
"reference": "6782abfc090b132134cd6cea0ec6d76f0fce2c56"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/dompdf/dompdf/zipball/6782abfc090b132134cd6cea0ec6d76f0fce2c56",
"reference": "6782abfc090b132134cd6cea0ec6d76f0fce2c56",
"shasum": ""
},
"require": {
"ext-dom": "*",
"ext-mbstring": "*",
"phenx/php-font-lib": "^0.5.1",
"phenx/php-svg-lib": "^0.3.3",
"php": "^7.1"
},
"require-dev": {
"phpunit/phpunit": "^7.5",
"squizlabs/php_codesniffer": "^3.5"
},
"suggest": {
"ext-gd": "Needed to process images",
"ext-gmagick": "Improves image processing performance",
"ext-imagick": "Improves image processing performance"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-develop": "0.7-dev"
}
},
"autoload": {
"psr-4": {
"Dompdf\\": "src/"
},
"classmap": [
"lib/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"LGPL-2.1"
],
"authors": [
{
"name": "Fabien Ménager",
"email": "fabien.menager@gmail.com"
},
{
"name": "Brian Sweeney",
"email": "eclecticgeek@gmail.com"
},
{
"name": "Gabriel Bull",
"email": "me@gabrielbull.com"
}
],
"description": "DOMPDF is a CSS 2.1 compliant HTML to PDF converter",
"homepage": "https://github.com/dompdf/dompdf",
"time": "2020-02-20T03:52:51+00:00"
},
{ {
"name": "dragonmantank/cron-expression", "name": "dragonmantank/cron-expression",
"version": "v2.3.0", "version": "v2.3.0",
...@@ -1608,6 +1730,83 @@ ...@@ -1608,6 +1730,83 @@
], ],
"time": "2018-07-02T15:55:56+00:00" "time": "2018-07-02T15:55:56+00:00"
}, },
{
"name": "phenx/php-font-lib",
"version": "0.5.2",
"source": {
"type": "git",
"url": "https://github.com/PhenX/php-font-lib.git",
"reference": "ca6ad461f032145fff5971b5985e5af9e7fa88d8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/PhenX/php-font-lib/zipball/ca6ad461f032145fff5971b5985e5af9e7fa88d8",
"reference": "ca6ad461f032145fff5971b5985e5af9e7fa88d8",
"shasum": ""
},
"require-dev": {
"phpunit/phpunit": "^4.8.35 || ^5 || ^6 || ^7"
},
"type": "library",
"autoload": {
"psr-4": {
"FontLib\\": "src/FontLib"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"LGPL-3.0"
],
"authors": [
{
"name": "Fabien Ménager",
"email": "fabien.menager@gmail.com"
}
],
"description": "A library to read, parse, export and make subsets of different types of font files.",
"homepage": "https://github.com/PhenX/php-font-lib",
"time": "2020-03-08T15:31:32+00:00"
},
{
"name": "phenx/php-svg-lib",
"version": "v0.3.3",
"source": {
"type": "git",
"url": "https://github.com/PhenX/php-svg-lib.git",
"reference": "5fa61b65e612ce1ae15f69b3d223cb14ecc60e32"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/PhenX/php-svg-lib/zipball/5fa61b65e612ce1ae15f69b3d223cb14ecc60e32",
"reference": "5fa61b65e612ce1ae15f69b3d223cb14ecc60e32",
"shasum": ""
},
"require": {
"sabberworm/php-css-parser": "^8.3"
},
"require-dev": {
"phpunit/phpunit": "^5.5|^6.5"
},
"type": "library",
"autoload": {
"psr-4": {
"Svg\\": "src/Svg"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"LGPL-3.0"
],
"authors": [
{
"name": "Fabien Ménager",
"email": "fabien.menager@gmail.com"
}
],
"description": "A library to read, parse and export to PDF SVG files.",
"homepage": "https://github.com/PhenX/php-svg-lib",
"time": "2019-09-11T20:02:13+00:00"
},
{ {
"name": "phpoption/phpoption", "name": "phpoption/phpoption",
"version": "1.7.5", "version": "1.7.5",
...@@ -2157,6 +2356,51 @@ ...@@ -2157,6 +2356,51 @@
], ],
"time": "2020-07-28T16:51:01+00:00" "time": "2020-07-28T16:51:01+00:00"
}, },
{
"name": "sabberworm/php-css-parser",
"version": "8.3.1",
"source": {
"type": "git",
"url": "https://github.com/sabberworm/PHP-CSS-Parser.git",
"reference": "d217848e1396ef962fb1997cf3e2421acba7f796"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sabberworm/PHP-CSS-Parser/zipball/d217848e1396ef962fb1997cf3e2421acba7f796",
"reference": "d217848e1396ef962fb1997cf3e2421acba7f796",
"shasum": ""
},
"require": {
"php": ">=5.3.2"
},
"require-dev": {
"codacy/coverage": "^1.4",
"phpunit/phpunit": "~4.8"
},
"type": "library",
"autoload": {
"psr-0": {
"Sabberworm\\CSS": "lib/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Raphael Schweikert"
}
],
"description": "Parser for CSS Files written in PHP",
"homepage": "http://www.sabberworm.com/blog/2010/6/10/php-css-parser",
"keywords": [
"css",
"parser",
"stylesheet"
],
"time": "2020-06-01T09:10:00+00:00"
},
{ {
"name": "swiftmailer/swiftmailer", "name": "swiftmailer/swiftmailer",
"version": "v6.2.3", "version": "v6.2.3",
...@@ -5766,6 +6010,7 @@ ...@@ -5766,6 +6010,7 @@
"keywords": [ "keywords": [
"tokenizer" "tokenizer"
], ],
"abandoned": true,
"time": "2019-09-17T06:23:10+00:00" "time": "2019-09-17T06:23:10+00:00"
}, },
{ {
......
<?php
return array(
/*
|--------------------------------------------------------------------------
| Settings
|--------------------------------------------------------------------------
|
| Set some default values. It is possible to add all defines that can be set
| in dompdf_config.inc.php. You can also override the entire config file.
|
*/
'show_warnings' => false, // Throw an Exception on warnings from dompdf
'orientation' => 'portrait',
'defines' => array(
/**
* The location of the DOMPDF font directory
*
* The location of the directory where DOMPDF will store fonts and font metrics
* Note: This directory must exist and be writable by the webserver process.
* *Please note the trailing slash.*
*
* Notes regarding fonts:
* Additional .afm font metrics can be added by executing load_font.php from command line.
*
* Only the original "Base 14 fonts" are present on all pdf viewers. Additional fonts must
* be embedded in the pdf file or the PDF may not display correctly. This can significantly
* increase file size unless font subsetting is enabled. Before embedding a font please
* review your rights under the font license.
*
* Any font specification in the source HTML is translated to the closest font available
* in the font directory.
*
* The pdf standard "Base 14 fonts" are:
* Courier, Courier-Bold, Courier-BoldOblique, Courier-Oblique,
* Helvetica, Helvetica-Bold, Helvetica-BoldOblique, Helvetica-Oblique,
* Times-Roman, Times-Bold, Times-BoldItalic, Times-Italic,
* Symbol, ZapfDingbats.
*/
"font_dir" => storage_path('fonts/'), // advised by dompdf (https://github.com/dompdf/dompdf/pull/782)
/**
* The location of the DOMPDF font cache directory
*
* This directory contains the cached font metrics for the fonts used by DOMPDF.
* This directory can be the same as DOMPDF_FONT_DIR
*
* Note: This directory must exist and be writable by the webserver process.
*/
"font_cache" => storage_path('fonts/'),
/**
* The location of a temporary directory.
*
* The directory specified must be writeable by the webserver process.
* The temporary directory is required to download remote images and when
* using the PFDLib back end.
*/
"temp_dir" => sys_get_temp_dir(),
/**
* ==== IMPORTANT ====
*
* dompdf's "chroot": Prevents dompdf from accessing system files or other
* files on the webserver. All local files opened by dompdf must be in a
* subdirectory of this directory. DO NOT set it to '/' since this could
* allow an attacker to use dompdf to read any files on the server. This
* should be an absolute path.
* This is only checked on command line call by dompdf.php, but not by
* direct class use like:
* $dompdf = new DOMPDF(); $dompdf->load_html($htmldata); $dompdf->render(); $pdfdata = $dompdf->output();
*/
"chroot" => realpath(base_path()),
/**
* Whether to enable font subsetting or not.
*/
"enable_font_subsetting" => false,
/**
* The PDF rendering backend to use
*
* Valid settings are 'PDFLib', 'CPDF' (the bundled R&OS PDF class), 'GD' and
* 'auto'. 'auto' will look for PDFLib and use it if found, or if not it will
* fall back on CPDF. 'GD' renders PDFs to graphic files. {@link
* Canvas_Factory} ultimately determines which rendering class to instantiate
* based on this setting.
*
* Both PDFLib & CPDF rendering backends provide sufficient rendering
* capabilities for dompdf, however additional features (e.g. object,
* image and font support, etc.) differ between backends. Please see
* {@link PDFLib_Adapter} for more information on the PDFLib backend
* and {@link CPDF_Adapter} and lib/class.pdf.php for more information
* on CPDF. Also see the documentation for each backend at the links
* below.
*
* The GD rendering backend is a little different than PDFLib and
* CPDF. Several features of CPDF and PDFLib are not supported or do
* not make any sense when creating image files. For example,
* multiple pages are not supported, nor are PDF 'objects'. Have a
* look at {@link GD_Adapter} for more information. GD support is
* experimental, so use it at your own risk.
*
* @link http://www.pdflib.com
* @link http://www.ros.co.nz/pdf
* @link http://www.php.net/image
*/
"pdf_backend" => "CPDF",
/**
* PDFlib license key
*
* If you are using a licensed, commercial version of PDFlib, specify
* your license key here. If you are using PDFlib-Lite or are evaluating
* the commercial version of PDFlib, comment out this setting.
*
* @link http://www.pdflib.com
*
* If pdflib present in web server and auto or selected explicitely above,
* a real license code must exist!
*/
//"DOMPDF_PDFLIB_LICENSE" => "your license key here",
/**
* html target media view which should be rendered into pdf.
* List of types and parsing rules for future extensions:
* http://www.w3.org/TR/REC-html40/types.html
* screen, tty, tv, projection, handheld, print, braille, aural, all
* Note: aural is deprecated in CSS 2.1 because it is replaced by speech in CSS 3.
* Note, even though the generated pdf file is intended for print output,
* the desired content might be different (e.g. screen or projection view of html file).
* Therefore allow specification of content here.
*/
"default_media_type" => "screen",
/**
* The default paper size.
*
* North America standard is "letter"; other countries generally "a4"
*
* @see CPDF_Adapter::PAPER_SIZES for valid sizes ('letter', 'legal', 'A4', etc.)
*/
"default_paper_size" => "a4",
/**
* The default font family
*
* Used if no suitable fonts can be found. This must exist in the font folder.
* @var string
*/
"default_font" => "serif",
/**
* Image DPI setting
*
* This setting determines the default DPI setting for images and fonts. The
* DPI may be overridden for inline images by explictly setting the
* image's width & height style attributes (i.e. if the image's native
* width is 600 pixels and you specify the image's width as 72 points,
* the image will have a DPI of 600 in the rendered PDF. The DPI of
* background images can not be overridden and is controlled entirely
* via this parameter.
*
* For the purposes of DOMPDF, pixels per inch (PPI) = dots per inch (DPI).
* If a size in html is given as px (or without unit as image size),
* this tells the corresponding size in pt.
* This adjusts the relative sizes to be similar to the rendering of the
* html page in a reference browser.
*
* In pdf, always 1 pt = 1/72 inch
*
* Rendering resolution of various browsers in px per inch:
* Windows Firefox and Internet Explorer:
* SystemControl->Display properties->FontResolution: Default:96, largefonts:120, custom:?
* Linux Firefox:
* about:config *resolution: Default:96
* (xorg screen dimension in mm and Desktop font dpi settings are ignored)
*
* Take care about extra font/image zoom factor of browser.
*
* In images, <img> size in pixel attribute, img css style, are overriding
* the real image dimension in px for rendering.
*
* @var int
*/
"dpi" => 96,
/**
* Enable inline PHP
*
* If this setting is set to true then DOMPDF will automatically evaluate
* inline PHP contained within <script type="text/php"> ... </script> tags.
*
* Enabling this for documents you do not trust (e.g. arbitrary remote html
* pages) is a security risk. Set this option to false if you wish to process
* untrusted documents.
*
* @var bool
*/
"enable_php" => false,
/**
* Enable inline Javascript
*
* If this setting is set to true then DOMPDF will automatically insert
* JavaScript code contained within <script type="text/javascript"> ... </script> tags.
*
* @var bool
*/
"enable_javascript" => true,
/**
* Enable remote file access
*
* If this setting is set to true, DOMPDF will access remote sites for
* images and CSS files as required.
* This is required for part of test case www/test/image_variants.html through www/examples.php
*
* Attention!
* This can be a security risk, in particular in combination with DOMPDF_ENABLE_PHP and
* allowing remote access to dompdf.php or on allowing remote html code to be passed to
* $dompdf = new DOMPDF(, $dompdf->load_html(...,
* This allows anonymous users to download legally doubtful internet content which on
* tracing back appears to being downloaded by your server, or allows malicious php code
* in remote html pages to be executed by your server with your account privileges.
*
* @var bool
*/
"enable_remote" => true,
/**
* A ratio applied to the fonts height to be more like browsers' line height
*/
"font_height_ratio" => 1.1,
/**
* Use the more-than-experimental HTML5 Lib parser
*/
"enable_html5_parser" => false,
),
);
...@@ -16,11 +16,12 @@ ...@@ -16,11 +16,12 @@
</div> </div>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/timepicker/1.3.5/jquery.timepicker.min.css"> <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/timepicker/1.3.5/jquery.timepicker.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/timepicker/1.3.5/jquery.timepicker.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/timepicker/1.3.5/jquery.timepicker.min.js"></script>
<img style="display: flex;margin-right: auto;margin-left: auto;" src="{{ asset('img/logo-idace.png') }}"/> <img style="display: flex;margin-right: auto;margin-left: auto;" src="{{ asset('img/logo-idace.png') }}" />
<h1 style="text-align:center;margin-top: 50px;margin-bottom: 50px;">AGENDAMENTO DE TÍTULOS</h1>
<h2 style="text-align:center;margin-top: 50px;margin-bottom: 50px;"> <strong>AGENDAMENTO DE TÍTULOS</strong></h2>
<div class="card card-outline card-success"> <div class="card card-outline card-success">
<div class="card-header"> <div class="card-header">
<h3 class="card-title"><b>Listagem dos Títulos</b></h3> <h2 class="card-title"><b>Listagem dos Títulos</b></h2>
</div> </div>
<div class="card-body"> <div class="card-body">
<table class="table table-striped"> <table class="table table-striped">
...@@ -48,56 +49,40 @@ ...@@ -48,56 +49,40 @@
@endforeach @endforeach
</tbody> </tbody>
</table> </table>
</div> </div>
</div> </div>
<div class="card card-outline card-success half"> <div class="card card-outline card-success half">
<div class="card-header"> <div class="card-header">
<h3 class="card-title"></h3> <h3 class="card-title"></h3>
</div> </div>
<div class="card-body"> <div class="card-body">
<div class="container"> <div class="container">
<form method="post" id="form" <form method="post" id="form"
action="{{ route('datepicker', [$pessoaLote->pessoa->nome, $documentoPessoa->cpf, $agendamento->id]) }}" action="{{ route('datepicker', [$pessoaLote->pessoa->nome, $documentoPessoa->cpf, $agendamento->id]) }}"
enctype="multipart/form-data"> enctype="multipart/form-data">
@csrf @csrf
<div class="row"> <div class="row">
<div class="form-group "> <div class="form-group ">
<h4 style="text-align:center"><strong>Escolha data e hora do agendamento</strong></h4>
<strong>
<h4 style="text-align:center">Escolha uma data para agendamento</h4>
</strong>
<input class="text form-control" type="hidden" id="datepicker1" name="id" <input class="text form-control" type="hidden" id="datepicker1" name="id"
value="{{ $agendamento->id }}"> value="{{ $agendamento->id }}">
<strong>DATA: </strong><br> <strong>DATA: </strong><br>
<input style="margin-top: 5px;" class="data form-control" type="text" id="datepicker" name="data"> <input style="margin-top: 5px;" class="data form-control" type="text" id="datepicker"
name="data">
<input class="text form-control" type="hidden" id="datepicker1" name="detentor" <input class="text form-control" type="hidden" id="datepicker1" name="detentor"
value="{{ $pessoaLote->pessoa->nome }}"> value="{{ $pessoaLote->pessoa->nome }}">
<input class="text form-control" type="hidden" id="datepicker1" name="cpf" <input class="text form-control" type="hidden" id="datepicker1" name="cpf"
value="{{ $documentoPessoa->cpf }}"><br> value="{{ $documentoPessoa->cpf }}"><br>
<strong>HORA: </strong><br> <strong>HORA: </strong><br>
<input style="margin-top: 5px;margin-bottom: 20px;" class="form-control" type="text" id="timepicker" name="hora"><br> <input style="margin-top: 5px;margin-bottom: 20px;" class="form-control" type="text"
id="timepicker" name="hora"><br>
<button type="submit" class="btn btn-success" class="badge bg-green">AGENDAR</a></button> <button type="submit" class="btn btn-success" class="badge bg-green">AGENDAR</a></button>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
$('#datepicker').datepicker({ $('#datepicker').datepicker({
autoclose: true, autoclose: true,
...@@ -123,6 +108,4 @@ ...@@ -123,6 +108,4 @@
$('#form').trigger("reset"); $('#form').trigger("reset");
</script> </script>
@endsection @endsection
...@@ -3,22 +3,31 @@ ...@@ -3,22 +3,31 @@
@section('title', 'CPF Inválido') @section('title', 'CPF Inválido')
@section('content') @section('content')
<div class="card card-outline card-warning half">
<form action="" method="post" enctype="multipart/form-data" class="form"> <div class="card-header">
<h3 class="card-title"></h3>
<div class="row">
<div class="col-md-3">
</div> </div>
<div class="col-md-6 tela_cpf_invalido"> <div class="card-body">
<div class="container">
<form method="GET" id="form"
enctype="multipart/form-data">
@csrf
<div class="row">
<div class="form-group ">
<img class="logoidace" src="{{ asset('img/logo-idace.png') }}"> <img class="logoidace" src="{{ asset('img/logo-idace.png') }}">
<h3 class="titulo">Nenhum dado encontrado o CPF: {{ $cpf }}</h3> <ul class="list-group">
<h4 class="titulo2">Caso tenha alguma dúvida, entre em contato através do telefone: 85 0000-0000</h4> <li class="list-group-item list-group-item-warning"><strong>NENHUM DADO ENCONTRADO PARA ESTE CPF</strong></li>
<button href="/" type="button " style="margin-top:100px" <li class="list-group-item">CPF: <strong>{{ $cpf }}</strong></li>
class="btn btn-block btn-primary btn_pesquisa">Voltar</button> </ul>
</div> <hr>
<div class="col-md-3"> <p class="text-center">Caso tenha alguma dúvida, entre em contato através do telefone: 85 0000-0000
</p>
<a href="{{ route('pesquisaCpf') }}" type="button"
class="btn btn-block btn-primary btn_pesquisa">Voltar</a>
</div> </div>
</div> </div>
</form> </form>
</div>
</div>
</div>
@endsection @endsection
@extends('adminlte::page') @extends('adminlte::page')
@section('title', 'CPF Inválido') @section('title', 'Dados Atendimento')
@section('content') @section('content')
<div class="card card-outline card-danger half">
<form action="" method="post" enctype="multipart/form-data" class="form"> <div class="card-header">
<h3 class="card-title"></h3>
<div class="row">
<div class="col-md-3">
</div> </div>
<div class="col-md-6 tela_cpf_invalido"> <div class="card-body">
<div class="container">
<form method="GET" id="form"
enctype="multipart/form-data">
@csrf
<div class="row">
<div class="form-group ">
<img class="logoidace" src="{{ asset('img/logo-idace.png') }}"> <img class="logoidace" src="{{ asset('img/logo-idace.png') }}">
<h3 class="titulo">Nenhum Título pronto para entrega para o CPF: {{ $cpf }}</h3> <ul class="list-group">
<h3 class="titulo">Status do Título encontrado: {{ $nome }}</h3> <li class="list-group-item list-group-item-danger"><strong>NENHUM TÍTULO PRONTO PARA ESTE CPF</strong></li>
<h4 class="titulo2">Caso tenha alguma dúvida, entre em contato através do telefone: 85 0000-0000</h4> <li class="list-group-item">CPF: <strong>{{ $cpf }}</strong></li>
<button href="/" type="button " style="margin-top:100px" <li class="list-group-item">STATUS DO TÍTULO: <strong>{{ $nome }}</strong></li>
class="btn btn-block btn-primary btn_pesquisa">Voltar</button> </ul>
</div> <hr>
<div class="col-md-3"> <p class="text-center">Caso tenha alguma dúvida, entre em contato através do telefone: 85 0000-0000
</p>
<a href="{{ route('pesquisaCpf') }}" type="button"
class="btn btn-block btn-primary btn_pesquisa">Voltar</a>
</div> </div>
</div> </div>
</form> </form>
</div>
</div>
</div>
@endsection @endsection
...@@ -3,28 +3,38 @@ ...@@ -3,28 +3,38 @@
@section('title', 'Dados Atendimento') @section('title', 'Dados Atendimento')
@section('content') @section('content')
<div class="card card-outline card-success half">
<form enctype="multipart/form-data" class="form"> <div class="card-header">
<h3 class="card-title"></h3>
<div class="row">
<div class="col-md-3">
</div> </div>
<div class="col-md-6 tela_cpf_invalido"> <div class="card-body">
<div class="container">
<form method="GET" id="form" enctype="multipart/form-data">
@csrf
<div class="row">
<div class="form-group ">
<img class="logoidace" src="{{ asset('img/logo-idace.png') }}"> <img class="logoidace" src="{{ asset('img/logo-idace.png') }}">
<ul class="list-group">
<li class="list-group-item list-group-item-success"><strong>AGENDAMENTO REALIZADO COM
SUCESSO</strong></li>
<li class="list-group-item">Número do Agendamento: <strong>{{ $id + 1 }}</strong></li>
<li class="list-group-item">Data do Agendamento: <strong>{{ $data }}</strong></li>
<li class="list-group-item">Hora do Agendamento: <strong>{{ $hora }}</strong></li>
<li class="list-group-item">Detentor: <strong>{{ $detentor }}</strong></li>
<li class="list-group-item">CPF: <strong>{{ $cpf }}</strong></li>
</ul>
<hr>
<p class="text-center">Caso tenha alguma dúvida, entre em contato através do telefone: 85
0000-0000
</p>
<a href="{{ route('pesquisaCpf') }}" type="button"
class="btn btn-block btn-primary btn_pesquisa">Voltar</a>
<h3 class="titulo">Agendamento realizado com sucesso</h3>
<h5 class="titulo">NÚMERO DO ATENDIMENTO: {{ $id + 1 }}</h5>
<h5 class="titulo">DATA DO AGENDAMENTO: {{ $data }}</h5>
<h5 class="titulo">HORA DO AGENDAMENTO: {{ $hora }}</h5>
<h5 class="titulo">DETENTOR: {{ $detentor }}</h5>
<h5 class="titulo">CPF: {{ $cpf }}</h5>
<h5 class="titulo2">Caso tenha alguma dúvida, entre em contato através do telefone: 85 0000-0000</h5>
<button href="/" type="button " style="margin-top:100px"
class="btn btn-block btn-primary btn_pesquisa">Voltar</button>
</div>
<div class="col-md-3">
</div> </div>
{{-- <a class="btn btn-primary" href="{{ route('datepicker.createPDF') }}">Export to PDF</a> --}}
</div> </div>
</form> </form>
</div>
</div>
</div>
@endsection @endsection
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>PDF Demo in Laravel 7</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css">
</head>
<body>
<table class="table table-bordered">
<thead>
<tr class="table-danger">
<td>Name</td>
</tr>
</thead>
<tbody>
<tr>
<td>{{ $cpf }}</td>
</tr>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
...@@ -24,5 +24,4 @@ ...@@ -24,5 +24,4 @@
</div> </div>
</div> </div>
</div> </div>
@endsection @endsection
...@@ -23,6 +23,7 @@ Route::any('glebas/search', 'GlebaController@search')->name('glebas.search')->mi ...@@ -23,6 +23,7 @@ Route::any('glebas/search', 'GlebaController@search')->name('glebas.search')->mi
Route::get('datepicker','DatepickerController@create')->name('datepicker'); Route::get('datepicker','DatepickerController@create')->name('datepicker');
Route::post('datepicker','DatepickerController@datepicker')->name('datepicker.datepicker'); Route::post('datepicker','DatepickerController@datepicker')->name('datepicker.datepicker');
// Route::post('datepicker','DatepickerController@createPDF')->name('createPDF.createPDF');
Route::resource('teste', 'TesteController'); Route::resource('teste', 'TesteController');
...@@ -35,10 +36,6 @@ Route::get('/home', 'HomeController@index')->name('home'); ...@@ -35,10 +36,6 @@ Route::get('/home', 'HomeController@index')->name('home');
return view('pesquisaCpf'); return view('pesquisaCpf');
})->name('pesquisaCpf'); })->name('pesquisaCpf');
// Route::get('/', function () {
// return view('teste');
// });
Route::get('/dadosAtendimento', function () { Route::get('/dadosAtendimento', function () {
return view('dadosAtendimento'); return view('dadosAtendimento');
})->name('dadosAtendimento'); })->name('dadosAtendimento');
...@@ -51,7 +48,7 @@ Route::get('/cpfValidoSemTitulo', function () { ...@@ -51,7 +48,7 @@ Route::get('/cpfValidoSemTitulo', function () {
return view('cpfValidoSemTitulo'); return view('cpfValidoSemTitulo');
})->name('cpfValidoSemTitulo'); })->name('cpfValidoSemTitulo');
// Route::get('downloadPDF/{id}','TituloController@downloadPDF');
/* Route::put('titulos/{id}', 'TituloController@destroy')->name('titulos.destroy'); //Editar um registro - put /* Route::put('titulos/{id}', 'TituloController@destroy')->name('titulos.destroy'); //Editar um registro - put
Route::put('titulos/{id}', 'TituloController@update')->name('titulos.update'); //Editar um registro - put Route::put('titulos/{id}', 'TituloController@update')->name('titulos.update'); //Editar um registro - put
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment