@extends('pdf.pdf_procedure_base')
@section('namereport','Procedure Report')
@section('td')
@endsection
@section('detail_right')
@php
$im = imagecreatefromjpeg (exfolder("store/$case->case_hn/$case->caseuniq.jpg"));
imagejpeg($im, 'pdf_pic/'.$_GET['id'].'.jpg');
$w[0] = array('photo_case',$_GET['id']);
$w[1] = array('photo_status', '!=','0');
$sql = DB::table('photo')->where($w)->get();
foreach ($sql as $row) {
$bg_path = 'pdf_pic/'.$_GET['id'].'.jpg';
$num_path = 'images/blue/blue_'.$row->photo_num_select.'.png';
$image_1 = imagecreatefromjpeg ($bg_path);
$image_2 = imagecreatefrompng($num_path);
$data = getimagesize($bg_path);
$xx = $data[0]*(($row->photo_x-3)/100);
$yy = $data[1]*(($row->photo_y-3)/100);
imagecopy($image_1, $image_2, $xx, $yy, 0, 0, 30, 30);
imagejpeg($image_1, 'pdf_pic/'.$_GET['id'].'.jpg');
}
@endphp
@php
$i = 0; //จำนวนรูป
$bb = 1; //กำหนดการเริ่มต้น
$w = 170; //ความกว้างรูป
@endphp
@foreach ($photoselect as $p)
@php $i++; @endphp
@if($i<=4)
@php
if($p->photo_status==1)
{
$border_color="black";
}
else
{
$border_color="black";
}
$path= picurl($casedata->hn."/".$p->photo_name);
@endphp
|
[ {{$i}} ] {{$p->mainpartsub_name}}
@if($p->photo_additional!="")
{{$p->photo_additional}}
@endif
@if($p->photo_gastrolesion!="")
{{$p->photo_gastrolesion}}
@endif
@if($p->photo_text!="")
{{$p->photo_text}}
@endif
|
@if($bb==1)
|
|
@else
|
@endif
@endif
@endforeach
|
@endsection
|