@extends('layouts.app') @section('title', 'قوالب العقود') @section('content')

قوالب حسب القطاع

@foreach($templates as $key => $tpl)
{{ $tpl['icon'] }}
{{ $tpl['name'] }}
{{ $tpl['sector'] }}
{{ count($tpl['clauses']) }} بند — يشمل الراتب والبدلات، ساعات العمل، الإجازات، الإنهاء
@foreach(array_slice(array_keys($tpl['clauses']), 0, 4) as $clause) {{ $clause }} @endforeach @if(count($tpl['clauses']) > 4) +{{ count($tpl['clauses']) - 4 }} @endif
@if(Route::has('contracts.template-preview')) معاينة @endif @if(Route::has('contracts.use-template')) استخدام القالب @endif
@endforeach
@if($customTemplates->count())

القوالب المخصصة

@foreach($customTemplates as $ct) @endforeach
اسم القالب القطاع تاريخ الإنشاء
{{ $ct->name }} {{ $ct->sector ?? '—' }} {{ isset($ct->created_at) ? \Carbon\Carbon::parse($ct->created_at)->format('Y-m-d') : '—' }}
@endif @endsection